Create Return Order
Create Return Order
(支援部分退貨 Support partial refund)
Request Params
Field | Type | Description | Example |
|---|---|---|---|
order_id |
| 退貨訂單號碼 |
|
recipient_name |
| Recipient Name |
|
recipient_phone |
| Recipient Phone Number |
|
recipient_phone_country_code |
| Recipient Phone Country Code |
|
delivery_option |
| Delivery Option | |
country |
| Country Code |
|
city |
| City |
|
district |
| District |
|
address_1 |
| Address1 |
|
address_2 |
| Address2 |
|
postcode |
| Postcode |
|
state |
| State |
|
payment_option |
| Payment Option |
|
subtotal_items.id |
| Subtotal Item ID |
|
subtotal_items.return_reason_key |
| Subtotal Item Return Reason Key Available Values:
|
|
subtotal_items.return_remark |
| Subtotal Item Return Remark This field is only allowed to be filled in when the value of return_reason_key is "other". | |
subtotal_items.quantity |
| Subtotal Item Quantity |
|
bank_account |
| Bank Account |
|
returned_by |
| Return By |
|
Response Body
{
"created_at" : "2021-06-02T12:18:29.606+00:00",
"customer_email" : "[email protected]",
"customer_id" : "5f86b66201afcd0c83557f18",
"customer_name" : "asd",
"delivery_address" : {
"address_1" : "",
"address_2" : "",
"city" : "",
"country" : "",
"country_code" : "",
"district" : null,
"key" : null,
"layer1" : null,
"layer2" : null,
"layer3" : null,
"logistic_codes" : null,
"postcode" : "",
"recipient_name" : "asd",
"recipient_phone" : "+12345677",
"remarks" : null,
"state" : null
},
"delivery_data" : {
"hk_sfplus_home_region" : null,
"location_code" : null,
"location_name" : null,
"name_translations" : {},
"scheduled_delivery_date" : null,
"store_address" : null,
"time_slot_key" : null,
"tracking_number" : null,
"url" : null
},
"id" : "60b77715808cd8004387c6ed",
"inspect_status" : null,
"items" : [],
"max_return_total" : {
"cents" : 0,
"currency_iso" : "HKD",
"currency_symbol" : "HK$",
"dollars" : 0,
"label" : "HK$0.00"
},
"order" : null,
"order_delivery" : null,
"order_delivery_status" : null,
"order_id" : "6049dff0647ad00045eed112",
"order_payment" : null,
"order_payment_status" : null,
"promotion_items" : [],
"return_order_number" : "2021060212182917",
"returned_by" : "admin",
"status" : "confirmed",
"total" : {
"cents" : 120502,
"currency_iso" : "HKD",
"currency_symbol" : "HK$",
"dollars" : 1205.02,
"label" : "HK$1,205.02"
},
"updated_at" : "2021-06-02T12:18:29.813+00:00"
}Request Sample
curl --location --request POST '<<api_domain>>/v1/return_orders/' \
--header 'Authorization: Bearer ${token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id":"6049dff0647ad00045eed112",
"recipient_name":"asd",
"recipient_phone":"+12345677",
"delivery_option":{"id":"60a2189b8b89ac0045c15551"},
"country":"TW",
"address_1":"address1",
"payment_option":{"id":"60a22b55e03fec0042c3a4d7", "key": "tw_711_c2b_nopay"},
"subtotal_items":[{"id":"6049dff0647ad00045eed114",
"quantity":1}],
"returned_by":"admin"}'Updated 13 days ago