- Overview
- Getting Started
- Authentication
- Q&A
- Common Errors
- API Call Flow
- Instant Order Flow
- Boxme's RTO and RPO
- Changelog
- API References
- Location
- Pickup
- Product
- Shipment (ASN)
- Customer
- Orders
- Order API Overview
- Get Shipping Option (Fulfillment)
- Get Shipping Option (Dropship)
- Create B2C Order
- Create Delivery Order
- Create B2B Order
- Update Document
- Request Cancel Delivery Order
- Cancel Order
- Get Order Detail
- Get Order List
- Get Courier List
- Get Courier Service
- Get Packed Items
- Order Pack
- Get B2B Pickup TimeSlot
- Returns
- Finance (Dev)
- Location
- Webhooks
Create Returns Order
POST
https://s.boxme.asia/api/v2/orders/rma/create/{tracking_number}/
Last modified:2024-04-05 09:21:49
Request
Path Params
tracking_number
string
required
Example:
BMxxxxxxx
Header Params
Content-Type
string
optional
Example:
application/json
Authorization
string
optional
Example:
Token {{API_TOKEN}}
Body Params application/json
pickup_id
integer
required
return_note
string
required
reason_code
string
required
courier_tracking_number
string
required
origin_order_number
string
required
combine_id
string
optional
order_list
array[string]
optional
return_order_number
string
required
waiting_confirmation
boolean
required
items
array [object {2}]
required
quantity
integer
required
seller_sku
string
required
Example
{
"pickup_id": 341740,
"return_note": "// return reason ",
"reason_code": "OTHER",
"courier_tracking_number": "xxx",
"origin_order_number": "xxx",
"waiting_confirmation": false,
"items": [
{
"return_note": "// return reason ",
"quantity": 1,
"sku": "8809625241353"
},
{
"return_note": "// return reason ",
"quantity": 1,
"sku": "8809625241353"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://s.boxme.asia/api/v2/orders/rma/create/BMxxxxxxx/' \
--header 'Authorization: Token {{API_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"pickup_id" : 341740,
"return_note" : "// return reason ",
"reason_code" : "OTHER",
"courier_tracking_number" : "xxx",
"origin_order_number" : "xxx",
"waiting_confirmation": false,
"items" : [
{
"return_note" : "// return reason ",
"quantity" : 1,
"sku" : "8809625241353"
},
{
"return_note" : "// return reason ",
"quantity" : 1,
"sku" : "8809625241353"
}
]
}'
Responses
🟢200Success
application/json
Body
data
object
required
return_tracking_number
string
required
error
boolean
required
error_code
string
required
messages
string
required
request_id
string
required
Example
{
"data": {
"return_tracking_number": "",
"order_number": ""
},
"error": true,
"error_code": "string",
"messages": "string",
"request_id": 0
}
Modified at 2024-04-05 09:21:49