↩️ Get information for inspected return/undeliverable customs shipments
The Seven Senders Customs solution is providing information about the inspection conducted for return and undeliverable shipments via our API. In a given endpoint, we share information whether the inspection has been carried out, the articles found in the box, and their quantity. This enables you to initiate the reimbursement process as early as possible.
Precondition: The information is available for shipments which are created in Seven Senders database (usually created by POST Shipment or POST Label of type outbound or return). We are currently working on a solution to enable processing return shipments that were not created in our system (scenarios like: return label bought by recipient).
Before using the functionality check with your Seven Senders contact that this is enabled for your target country.
How to work with the API endpoint
- Endpoint:
GET /v2/customs/shipments - Full API doc: link
The endpoint has different parameters that you can use to obtain data about the shipments of your interest. Using more parameters will result in a more precise response. Available filters:
Parameter | Description |
|---|---|
| The manifest Id under which the inbound volume is getting cleared. |
| The Seven Senders shipment id. |
| The planned pickup date of the shipment. |
order_id | The order id of the shipment. |
| The type of shipment can be: outbound, undeliverable or return.
The |
| The |
| Can be |
| The shipment can have one of the following statuses:
|
| The date of processing indicates when the shipment is inspected by the return warehouse. By specifying the before and after dates, you will be able to search for a specific day or a broader range of dates. |
| The date of processing indicates when the shipment is inspected by the return warehouse. By specifying the before and after dates, you will be able to search for a specific day or a broader range of dates. |
To obtain data about the inspected return or undeliverable shipments we recommend to use the following parameters:
types: return and undeliverablereturn_inspected = truereturn_processed_date [before] - return_processed_date [after]as range of a week- use pagination* and
itemsPerPage = 100
* the GET Shipments endpoint has default page 1 and itemsPerPage = 50. The endpoint can support a maximum of 500 items per page. If exceeded, we will default to 500.
The response will contain one or many shipments matching the given parameters. The shipment body in the response uses the same structure (shipment and SKUs) as the one to create customs shipment. In addition, for each shipment we will respond with 2 more fields: return_inspected (true or false) and type (the shipment type).
If return_inspected = true then the shipment has been inspected and the articles present in the response are the ones that will be returned back to you. With this information, you can e.g. trigger the reimbursement process.
Updated 1 day ago