Skip to main content
GET
Get the declaration data for a shipment
This API is enabled per merchant account by Global-e. If it is not enabled for your account, the request returns 403 Forbidden.
Typical integration sequence. These APIs may be used together when an export declaration or bonded reporting is required, but they are independent endpoints — none is a prerequisite for another.
  1. Get shipping documents — obtain the label and tracking number
  2. Submit bonded information — report bonded vs free-circulation status per product (when bonded reporting is required)
  3. Get shipment information — retrieve product, pricing and declaration header data (when you need the data Global-e holds)
  4. Create the export document — your side, not a Global-e API
  5. Upload shipment documents — upload the document and its reference to Global-e (when a document must be attached)
  6. Dispatch orders — End of Day
Only steps 1 and 6 are universal. Steps 2 to 5 depend on the shipment type, the destination and your configuration. Where they apply, complete steps 2 and 5 before End of Day / Dispatch orders.
An export declaration is required only when the shipment leaves the EU customs territory and either contains bonded goods or contains free-circulation goods with a total value of €1,000 or more. When no declaration is required, steps 3 to 5 do not apply.
Bonded vs free-circulation status is submitted separately, through Submit bonded information. This API does not return bonded status.
The response contains commercial values — customs values and commercial-invoice totals. It is returned with Cache-Control: no-store. Do not cache or store it beyond the immediate purpose of preparing the declaration.
Global-e never returns partial declaration data. If a value the declaration requires is not yet available, the call returns 409 with no exportDeclaration section. This is a permanent gap rather than a not-yet-ready state, so contact Global-e instead of retrying.

Path Parameters

trackingNumber
string
required

Tracking number identifying the shipment. This is the parcel's carrier tracking number when it has one, and otherwise the order's tracking number. Global-e returns the shipment only if it belongs to your merchant account.

Required string length: 1 - 50

Response

The shipment was found and all the data the declaration requires is available.

shipment
Shipment · object
required

The shipment, with its weights and its parcels.

exportDeclaration
ExportDeclaration · object
required

The export-declaration header. Together with each product's HS codes and customs value, this is what you need to prepare the declaration. The declaration is in a single currency, so no exchange rate is returned.