- Mock serverhttps://developers.hive.app/_mock/merchant-api-v2/mapi_v2_oas31/returns/{id}
- Production APIhttps://app.hive.app/merchant_api/v2/returns/{id}
- Staging APIhttps://staging.app.hive.app/merchant_api/v2/returns/{id}
curl -i -X GET \
'https://developers.hive.app/_mock/merchant-api-v2/mapi_v2_oas31/returns/{id}' \
-H 'Authorization: Bearer <YOUR_token_HERE>'A return
List of items announced by the customer (via the Customer Portal). Can be empty if the return is not a Customer Portal return.
List of items that were actually handled in the FC. Can be empty if return items have not been handled in the FC yet.
Details of the associated order
Example:
{ "id": 123456, "merchant_order_id": "ORD-1001", "customer_order_number": "CUST-ORD-2023-01" }
Any of:
Reason for the return. Possible values:
- customer_return: Customer initiated return
- customs_documents_missing: Missing customs documentation
- invalid_address: Invalid shipping address
- not_picked_up: Package was not picked up by customer
- other: Other reason not specified
- rejected_by_customer: Customer rejected the delivery
string(ReturnReason)
Enum:"customer_return""customs_documents_missing""invalid_address""not_picked_up""other""rejected_by_customer"
Any of:
Type of return categorization. Possible values:
- active: Customer return (end-customer actively shipped the return)
- passive: Carrier return (end-customer never received the parcel - shipped back by carrier for reasons like invalid address, not picked up, damages, missing customs documents, etc.)
string(ReturnReasonType)
Enum:"active""passive"
Status of the return. Possible values:
- action_required: Waiting for merchant guidance
- arrived: Arrived at fulfillment center
- handling_completed: Return processing completed
- on_the_way: On the way to fulfillment center
- processing: Return processing in progress
Enum:"action_required""arrived""handling_completed""on_the_way""processing"
Response
{ "id": 5555, "announced_items": [ { … } ], "carrier": "DHL", "completed_handling_at": "2023-10-10T15:00:00Z", "created_at": "2023-10-08T10:00:00Z", "handled_items": [ { … } ], "order": { "id": 123456, "merchant_order_id": "ORD-1001", "customer_order_number": "CUST-ORD-2023-01" }, "photos": [ { … } ], "received_at": null, "return_reason": "customer_return", "return_reason_type": "active", "started_processing_at": "2023-10-09T13:00:00Z", "status": "arrived", "tracking_code": "TRACK-RET-123", "tracking_url": "https://dhl.com/track/RET-123", "updated_at": "2023-10-10T15:00:00Z" }