HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Create Return Order

Create Return Order

Request Params

FieldTypeDescriptionExample
order_idString退貨訂單號碼6049dff0647ad00045eed112
recipient_nameStringRecipient Name
recipient_phoneStringRecipient Phone Number
delivery_optionHashDelivery Option
物流方式
countryStringCountry
地區
France
addressStringAddress
地址
Paris
payment_optionHash
subtotal_items.idString
subtotal_items.quantityInteger
returned_byStringadmin

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":"阿尔巴尼亚",
 "address":"address1",
 "payment_option":{"id":"60a22b55e03fec0042c3a4d7"},
 "subtotal_items":[{"id":"6049dff0647ad00045eed114",
 "quantity":1}],
 "returned_by":"admin"}'