↩️ 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

manifest_id

The manifest Id under which the inbound volume is getting cleared.

shipment_id

The Seven Senders shipment id.

planned_pickup_date

The planned pickup date of the shipment.

order_id

The order id of the shipment.

types

The type of shipment can be: outbound, undeliverable or return. The types parameter allows you to search more than one shipment type. The undeliverable shipment has the same shipment id as the outbound shipment and we have 2 records in the database for customs reason.

type

The type parameter allows you to search with one shipment type. The parameter is marked as depreciated and we recommend to use the types.

return_inspected

Can be true or false.

status

The shipment can have one of the following statuses:

  • received (received in Seven Senders Customs system)
  • lock (the shipment was announced on a manifest)
  • send (the shipment was send to the customs authorities for processing)

return_processed_date [before]

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.

return_processed_date [after]

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 undeliverable
  • return_inspected = true
  • return_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.