Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.
curl -i -X PUT \
'https://your-instance.mirakl.net/api/returns?shop_id=0' \
-H 'Content-Type: application/json' \
-d '{
"returns": [
{
"id": "string",
"label_url": "string",
"rma": "string",
"tracking": {
"carrier_code": "string",
"carrier_name": "string",
"carrier_standard_code": "string",
"tracking_number": "string",
"tracking_url": "string"
}
}
]
}'
{ "return_errors": [ { … } ], "return_success": [ { … } ] }
Return id for filtering. This parameter can be supplied multiple times (return_id=58fd00d1-4ea4-453e-9a56-ec28c5c156ea&return_id=3071c162-dcd9-414b-a39d-ac3165f29453...).
Return state for filtering. This parameter can be supplied multiple times (return_state=WAITING_ACCEPTANCE&return_state=IN_PROGRESS...).
Order commercial id for filtering. This parameter can be supplied multiple times (order_commercial_id=OR01-A&order_commercial_id=OR02-A...).
Order line id for filtering. This parameter can be supplied multiple times (order_line_id=OR01-A-1&order_line_id=OR02-A-1...).
Return RMA for filtering. This parameter can be supplied multiple times (return_rma=RMA-1&return_rma=RMA-2...).
Customer id for filtering. This parameter can be supplied multiple times (customer_id=id1&customer_id=id2...).
Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.
curl -i -X GET \
'https://your-instance.mirakl.net/api/returns?customer_id=string&order_commercial_id=string&order_line_id=string&page_token=string&return_creation_date_from=2019-08-24T14%3A15%3A22Z&return_creation_date_to=2019-08-24T14%3A15%3A22Z&return_id=string&return_last_updated_from=2019-08-24T14%3A15%3A22Z&return_last_updated_to=2019-08-24T14%3A15%3A22Z&return_rma=string&return_state=string&shop_id=0&sort=string'
{ "data": [ { … } ], "next_page_token": "string", "previous_page_token": "string" }
curl -i -X PUT \
'https://your-instance.mirakl.net/api/returns/accept?shop_id=0' \
-H 'Content-Type: application/json' \
-d '{
"returns": [
{
"accepted": true,
"id": "string",
"rejection_reason_code": "string"
}
]
}'
{ "return_errors": [ { … } ], "return_success": [ { … } ] }
curl -i -X PUT \
'https://your-instance.mirakl.net/api/returns/receive?shop_id=0' \
-H 'Content-Type: application/json' \
-d '{
"returns": [
{
"id": "string"
}
]
}'
{ "return_errors": [ { … } ], "return_success": [ { … } ] }
curl -i -X PUT \
'https://your-instance.mirakl.net/api/returns/compliance?shop_id=0' \
-H 'Content-Type: application/json' \
-d '{
"returns": [
{
"id": "string",
"return_lines": [
{
"compliant": true,
"non_compliance_additional_info": "string",
"non_compliance_reason_code": "string",
"order_line_id": "string"
}
]
}
]
}'
{ "return_errors": [ { … } ], "return_success": [ { … } ] }