Order API
Get multiple orders information in a list
Retrieve a single order information
Properties of order information¶
| Item name | Description |
|---|---|
| id |
Transaction ID
|
| status |
Transaction Status
|
| seller_id |
Seller ID
|
| customer_id |
Purchaser ID
|
| customer |
Purchaser
|
| product |
Product
|
| shipping_deadline |
Shipping deadline date
|
| recipient |
Shipping to
Returns null for any transaction status other than new: order received, product_sent: shipped.
|
| unit_price |
Unit Price
|
| subtotal_price |
Subtotal
|
| amount |
Quantity
|
| coupon |
Coupon
|
| request_shipment |
Shipping method selected
|
| pre_ordered_at |
Pre-Ordered Date and Time
|
| payment_deadline |
Payment deadline
|
| ordered_at |
Ordered_at
|
| color_size_text |
Color size text
|
| order_message |
Contact the Seller
|
| order_shipment |
Shipping method for shipping
|
| buyer_notes |
Seller Notes
|
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)
|
| 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