Returns one of the merchant's returns.
Security
BearerAuth
- Mock serverhttps://developers.hive.app/_mock/merchant-api-v1/mapi_v1_oas31/returns/{id}
- Production APIhttps://app.hive.app/merchant_api/v1/returns/{id}
- Staging APIhttps://staging.app.hive.app/merchant_api/v1/returns/{id}
curl -i -X GET \
'https://developers.hive.app/_mock/merchant-api-v1/mapi_v1_oas31/returns/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'The return
The items the customer announced through the Customer Portal. Empty if the return did not come through the Customer Portal.
The items that were handled at the warehouse. Empty until the return is handled.
Why the parcel came back. Can be null or an empty string when no reason is recorded.
Enum:"customer_return""not_picked_up""invalid_address""rejected_by_customer""customs_documents_missing""return_label_in_box""other"""null
The kind of return:
active: a customer return, the customer shipped the parcel back.passive: a carrier return, the customer never received the parcel and the carrier sent it back, for example because of an invalid address, a parcel not picked up, damage or missing customs documents.nullor an empty string: the return was created before it was processed and did not come through the Customer Portal. Customer Portal returns are alwaysactive.
Enum:"active""passive"""null
When processing of the return started at the warehouse.
The return status:
requested: requested through the Customer Portal and waiting for approval.on_the_way: on the way to the warehouse.arrived: arrived at the warehouse.processing: being processed.action_required: waiting for guidance from the merchant.handling_completed: processing is completed.cancelled: cancelled.
Enum:"requested""on_the_way""arrived""processing""action_required""handling_completed""cancelled"
Response
{ "id": 70047, "return_reason_type": "active", "return_reason": "customer_return", "status": "handling_completed", "tracking_code": "TC123456789", "tracking_url": "https://example.org/package?trackingNumber=TC123456789", "carrier": "ExampleCarrier", "created_at": "2023-05-18T09:38:18.999+02:00", "received_at": "2023-05-19T10:38:18.999+02:00", "started_processing_at": "2023-05-20T11:38:18.999+02:00", "completed_handling_at": "2023-05-21T12:38:18.999+02:00", "order": { "id": 1230221, "merchant_order_id": "60423b95-23b5-4e5b-aa1c-6a71bd90b106", "name": "#DE12345" }, "photos": [ { … } ], "return_items": [ { … } ], "return_line_items": [ { … } ] }