We're announcing 🧑‍🚀 inter-galactic shipping ✨ for 3025!
Shipment API

Documentation

Endpoints for generating and retrieving shipment-related documents.


Endpoint

Get shipping label

GET
https://api.sh.example.com/v1
/shipments/{shipmentId}/label

Get the shipping label for a shipment in various formats. Supports both JSON and XML responses. XML format follows the EDIFACT D96A standard for shipping label interchange, while JSON is provided for modern API integrations.

Get shipping labelpath Parameters

  • shipmentId
    string
    required

Get shipping labelquery Parameters

  • format
    string

    Label format

Get shipping labelHeaders

  • Accept
    string

    Response format. Use application/xml for EDI-compliant responses following EDIFACT D96A standard.

Get shipping labelResponses

    • shipmentId
      string
    • format
      string
    • id
      string
      optional
    • url
      string
      optional
    • createdAt
      string
      optional
    • expiresAt
      string
      optional

Get commercial invoice

GET
https://api.sh.example.com/v1
/shipments/{shipmentId}/documents/v2/commercial-invoice

Generate an enhanced commercial invoice with digital signatures, multiple format support, and customs pre-clearance capabilities. Supports both standard formats and country-specific templates.

Get commercial invoicepath Parameters

  • shipmentId
    string
    required

Get commercial invoicequery Parameters

  • format
    string

    Document format. XML/EDI formats follow international customs standards.

  • template
    string

    Country-specific template to use

  • include
    string[]

    Additional documents to include

Get commercial invoiceResponses

    • documents
      object[]
      optional
    • customsStatus
      string
      optional
deprecated

Get commercial invoice (legacy)

GET
https://api.sh.example.com/v1
/shipments/{shipmentId}/documents/commercial-invoice

Generate a basic commercial invoice for an international shipment. This endpoint is deprecated, please use /shipments/{shipmentId}/documents/v2/commercial-invoice for enhanced features including digital signatures, multiple formats, and customs pre-clearance.

Get commercial invoice (legacy)path Parameters

  • shipmentId
    string
    required

Get commercial invoice (legacy)query Parameters

  • format
    string

Get commercial invoice (legacy)Responses

    • url
      string
      optional
    • expiresAt
      string
      optional