Skip to content

Order API

Get multiple orders information in a list

Retrieve a single order information

Properties of order information

.
Item name Description
id Transaction ID
771829
status Transaction Status
"new"
  • new: order received
  • product_sent: Shipped
  • canceled: canceled
  • product_received: Delivered to purchaser
  • waiting_on_payment
  • waiting_on_payment: provisional order
  • forcibly_canceled: forced cancellation
  • .
seller_id Seller ID
100000
customer_id Purchaser ID
123123
customer Purchaser
{
    "id": 123123,
    "first_name": "taro",
    "last_name": "tanaka",
    "first_name_kana": "taro",
    "last_name_kana": "tanaka",
    "first_name_kanji": "Taro",
    "last_name_kanji": "Tanaka",
    "nickname": "Taro Tanaka"
}
product Product
{
    "id": 543821,
    "reference_number": "ABC0001",
    "name": "【Immediate】GUCCI Women's Bifold Wallet [Domestic]",
    "comments": "Thank you for your interest in our products."
}
This is the product information you purchased.
  • id: Product ID
  • reference_number: Product control number
  • name: Product name
  • comments: Product comments
shipping_deadline Shipping deadline date
"2019-11-08 14:42:57 +0900"
recipient Shipping to
{
    "first_name": "taro",
    "last_name": "tanaka",
    "first_name_kana": "taro",
    "last_name_kana": "tanaka",
    "first_name_kanji": "Taro",
    "last_name_kanji": "Tanaka",
    "country": "Japan",
    "country_kanji": "Japan",
    "zip_code": "124-0023",
    "address_1": "1-1-1 MNF building 6F",
    "address_2": "Minami Aoyama,",
    "address_3": "Minato-ku",
    "address_4": "Tokyo",
    "address_kanji_1": "Tokyo,",
    "address_kanji_2": "Minato-ku Minami-Aoyama",
    "address_kanji_3": "1-1-1 MNF Building 6F",
    "phone_number": "090-1111-1111"
}
Shipping address information.
Returns null for any transaction status other than new: order received, product_sent: shipped.
  • first_name: First name (Roman alphabet)
  • last_name: Last name
  • first_name_kana: First name (Katakana)
  • last_name_kana: Last name (Katakana)
  • first_name_kanji: First name (Kanji)
  • last_name_kanji: Family name (Kanji)
  • country: Country (English)
  • country_kanji: Country name (Kanji)
  • zip_code: postal code
  • address_1: Address, building name, room number (Roman alphabet)
  • address_2: Town/letter (Roman alphabet)
  • address_3: City, ward
  • address_4: Prefecture
  • address_kanji_1: Prefecture (Kanji)
  • address_kanji_2: City (Kanji)
  • address_kanji_3: Street address, building name, room number (in Chinese characters)
  • phone_number: Phone number
unit_price Unit Price
12000
subtotal_price Subtotal
24000
amount Quantity
2
coupon Coupon
{
    "id": 1090,
    "price": 2000,
    "code": "GALERSBN"
}
Seller-issued coupon information that was used for the purchase.
  • id: Coupon ID
  • price: Price
  • code: Coupon code
request_shipment Shipping method selected
{
    "service_name": "Japan Post - Yu-pack a",
    "is_domestic": true,
    "payment_type": "cash_on_delivery",
    "tracking": true,
    "delivery_period_from": 1,
    "delivery_period_to": 2,
    "cash_on_delivery_cost_from": 1000,
    "cash_on_delivery_cost_to": 2000,
    "description": "Japan Post, Tracked, Pay-on-Delivery.",
    "is_anonymous": true
}
This is the shipping method information you selected during purchase.
  • service_name: Shipping method name
  • is_domestic: Domestic shipping flag
  • payment_type: Shipping type (cash-on-delivery / prepaid: included)
  • tracking: tracking flag
  • delivery_period_from: lower limit of estimated arrival time
  • delivery_period_to: upper limit of estimated time to arrive
  • cash_on_delivery_cost_from: Lower limit of delivery cost (if you choose to pay on delivery)
  • cash_on_delivery_cost_to: Upper limit of the delivery cost (if you choose to pay on delivery)
  • description: Description
  • is_anonymous: Anonymous delivery flag
pre_ordered_at Pre-Ordered Date and Time
"2019-10-08 14:42:57 +0900"
payment_deadline Payment deadline
"2019-10-12 14:42:57 +0900"
ordered_at Ordered_at
"2019-10-10 14:42:57 +0900"
color_size_text Color size text
"White/10 cm"
order_message Contact the Seller
"Please add a gift wrapping case. \fnDroid Sans Fallback}Please help me."
order_shipment Shipping method for shipping
{
    "service_name": "Japan Post - Yu-pack a",
    "tracking": true,
    "tracking_number_input_url": "https://example.com",
    "tracking_number_url": "https://example.com",
    "tracking_number": "12293920-1-20303333-21",
    "receipt_number": "12293920-1-20303333-21",
    "message": "Thank you very much for your purchase.",
    "shipped_at": "2019-10-11 14:42:57 +0900",
    "received_at": "2019-10-17 14:42:57 +0900"
}
Shipping information when the item was shipped by the seller.
  • service_name: Shipping method name
  • tracking: Flag with tracking
  • tracking_number_input_url: URL for tracking (manual input)
  • tracking_number_url: Tracking URL (automatically generated)
  • tracking_number: tracking number
  • receipt_number: Voucher number or receipt number
  • message: Comment to the purchaser
  • shipped_at: shipping date
  • received_at: Arrival date
buyer_notes Seller Notes
"Packed."
This can be used as a note that will not be made public to buyers.

Shipping address

If the purchaser chooses anonymous shipping, the anonymous shipping flag (is_anonymous) of the selected shipping method (request_shipment) will be set to true and, The recipient parameter will be set to null.
For more information about anonymous shipping, please visit our BUYMA Guide .


GET /api/v1/orders.json

Returns a list of orders. Only transactions with the status new: order, product_sent: shipped, or waiting_on_payment: temporary order will be returned. The output is in the order of ordered_at: order date/time (descending order), id: transaction ID (descending order).

API Request

GET /api/v1/orders.json

Query Parameters

You can search for order information by specifying the query parameters.
It is also possible to manipulate the pagination. (Pagination details)

Property Description
status

Filter orders by their status.

(default: open)
  • open: Show only open orders. (new/product_sent/waiting_on_payment)
  • new: Show only new orders.
  • product_sent: Show only orders that have been shipped.
  • canceled: Show only canceled orders.
  • product_received: Show only orders that have been delivered to purchaser.
  • waiting_on_payment: Show only provisional orders.
  • forcibly_canceled: Show only forced canceled orders.
  • any: Show orders of any status.
pre_ordered_at_min Show orders pre ordered at or after date.
pre_ordered_at_max Show orders pre ordered at or before date.
ordered_at_min Show orders ordered at or after date.
ordered_at_max Show orders ordered at or before date.
shipped_at_min Show orders shipped at or after date.
shipped_at_max Show orders shipped at or before date.
received_at_min Show orders received at or after date.
received_at_max Show orders received at or before date.

API Response

It is possible to retrieve links to related pages from the Link header. (Pagination Details)

Success

HTTP/1.1 200 OK
[
  {
    "status": "new",
    "id": 771829,
    "seller_id": 100000,
    "customer_id": 123123,
    "customer": {
      "id": 123123,
      "first_name": "taro",
      "last_name": "tanaka",
      "first_name_kana": "taro",
      "last_name_kana": "tanaka",
      "first_name_kanji": "Taro",
      "last_name_kanji": "Tanaka",
      "nickname": "Taro Tanaka"
    },
    "product": {
      "id": 543821,
      "reference_number": "ABC0001",
      "name":"【Immediate】GUCCI Women's Bifold Wallet [Domestic]",
      "comments": "Thank you for your interest in our products."
    },
    "shipping_deadline": "2019-11-08 14:42:57 +0900",
    "recipient": {
      "first_name": "taro",
      "last_name": "tanaka",
      "first_name_kana": "taro",
      "last_name_kana": "tanaka",
      "first_name_kanji": "Taro",
      "last_name_kanji": "Tanaka",
      "country": "Japan",
      "country_kanji": "Japan",
      "zip_code": "124-0025",
      "address_1": "1-1-1 MNF building 6F",
      "address_2": "Minami Aoyama,",
      "address_3": "Minato-ku",
      "address_4": "Tokyo",
      "address_kanji_1": "Tokyo,",
      "address_kanji_2": "Minato-ku Minami-Aoyama",
      "address_kanji_3": "1-1-1 MNF Building 6F",
      "phone_number": "090-1111-1111"
    },
    "unit_price": 12000,
    "subtotal_price": 24000,
    "coupon": {
      "price": 2000,
      "id": 1090,
      "code": "GALERSBN"
    },
    "amount": 2,
    "request_shipment": {
      "service_name": "Japan Post - Yu-pack a",
      "is_domestic": true,
      "payment_type": "cash_on_delivery",
      "tracking": true,
      "delivery_period_from": 1 ,
      "delivery_period_to": 2 ,
      "cash_on_delivery_cost_from": 1000,
      "cash_on_delivery_cost_to": 2000,
      "description": "Japan Post, Tracked, Pay-on-Delivery." ,
      "is_anonymous": false
    },
    "pre_ordered_at": "2019-10-08 14:42:57 +0900",
    "payment_deadline": "2019-10-12 14:42:57 +0900",
    "ordered_at": "2019-10-10 14:42:57 +0900",
    "color_size_text": "white/10 cm",
    "order_message": "Please add a gift wrapping case. \Thank you very much." ,
    "order_shipment": {
      "service_name": "Japan Post - Yu-Pack",
      "tracking": true,
      "tracking_number_input_url": "https://example.com",
      "tracking_number_url": "https://example.com",
      "tracking_number": "12293920-1-20303333-21",
      "receipt_number": "12293920-1-20303333-21",
      "message": "Thank you very much for your purchase." ,
      "shipped_at": "2019-10-11 14:42:57 +0900",
      "received_at": "2019-10-17 14:42:57 +0900"
    },
    "buyer_notes": "Packed."
  }
]

GET /api/v1/orders/:order_id.json

Returns the order information specified by order_id.

API request

GET /api/v1/orders/:order_id.json

API Response

Success

HTTP/1.1 200 OK
{
  "status": "new",
  "id": 771829,
  "seller_id": 100000,
  "customer_id": 123123,
  "customer": {
    "id": 123123,
    "first_name": "taro",
    "last_name": "tanaka",
    "first_name_kana": "taro",
    "last_name_kana": "tanaka",
    "first_name_kanji": "Taro",
    "last_name_kanji": "Tanaka",
    "nickname": "Taro Tanaka"
  },
  "product": {
    "id": 543821,
    "reference_number": "ABC0001",
    "name":"【Immediate】GUCCI Women's Bifold Wallet [Domestic]",
    "comments": "Thank you for your interest in our products."
  },
  "shipping_deadline": "2019-11-08 14:42:57 +0900",
  "recipient": {
    "first_name": "taro",
    "last_name": "tanaka",
    "first_name_kana": "taro",
    "last_name_kana": "tanaka",
    "first_name_kanji": "Taro",
    "last_name_kanji": "Tanaka",
    "country": "Japan",
    "country_kanji": "Japan",
    "zip_code": "124-0025",
    "address_1": "1-1-1 MNF building 6F",
    "addrehss_2": "Minami Aoyama,",
    "address_3": "Minato-ku",
    "address_4": "Tokyo",
    "address_kanji_1": "Tokyo,",
    "address_kanji_2": "Minato-ku Minami-Aoyama",
    "address_kanji_3": "1-1-1 MNF Building 6F",
    "phone_number": "090-1111-1111"
  },
  "unit_price": 12000,
  "subtotal_price": 24000,
  "coupon": {
    "price": 2000,
    "id": 1090,
    "code": "GALERSBN"
  },
  "amount": 2,
  "request_shipment": {
    "service_name": "Japan Post - Yu-pack a",
    "is_domestic": true,
    "payment_type": "cash_on_delivery",
    "tracking": true,
    "delivery_period_from": 1 ,
    "delivery_period_to": 2 ,
    "cash_on_delivery_cost_from": 1000,
    "cash_on_delivery_cost_to": 2000,
    "description": "Japan Post, Tracked, Pay-on-Delivery." ,
    "is_anonymous": false
  },
  "pre_ordered_at": "2019-10-08 14:42:57 +0900",
  "payment_deadline": "2019-10-12 14:42:57 +0900",
  "ordered_at": "2019-10-10 14:42:57 +0900",
  "color_size_text": "white/10 cm",
  "order_message": "Please add a gift wrapping case. \Thank you very much." ,
  "order_shipment": {
    "service_name": "Japan Post - Yu-Pack",
    "tracking": true,
    "tracking_number_input_url": "https://example.com",
    "tracking_number_url": "https://example.com",
    "tracking_number": "12293920-1-20303333-21",
    "receipt_number": "12293920-1-20303333-21",
    "message": "Thank you very much for your purchase." ,
    "shipped_at": "2019-10-11 14:42:57 +0900",
    "received_at": "2019-10-17 14:42:57 +0900"
  },
  "buyer_notes": "Packed."
}

failed

HTTP/1.1 404 NotFound