We're announcing ๐Ÿง‘โ€๐Ÿš€ inter-galactic shipping โœจ for 3025!
Shipment API

โ€‹Shipment Management

Endpoints for creating, tracking, updating, and managing shipments.


Endpoint

โ€‹Create a new shipment

POST
https://api.sh.example.com/v1
/shipments

Creates a new shipment with the provided details

โ€‹Create a new shipment โ€บ Headers

  • X-Correlation-IDstring ยท uuid

    Unique identifier for tracking requests across multiple services

  • Idempotency-Keystring ยท uuid

    Unique key to ensure idempotency of the request

  • X-API-Versionstring ยท enum

    API version requested by the client

    Enum values:
    2024-01
    2023-12
  • X-Request-Prioritystring ยท enum

    Priority level for processing the shipment request

    Enum values:
    high
    normal
    low

โ€‹Create a new shipment โ€บ Request Body

  • recipientAddressobject ยท required
  • senderAddressobject ยท required
  • packagesobject[] ยท minItems: 1 ยท maxItems: 50 ยท unique ยท required
  • idstring ยท uuid
  • recipientEmailstring ยท email
  • statusstring | null ยท enum
    Enum values:
    CREATED
    IN_TRANSIT
    DELIVERED
    EXCEPTION
  • trackingNumberstring ยท pattern: ^[A-Z0-9]{10,20}$
  • createdAtstring ยท date-time
  • commentsobject[] ยท enum ยท maxItems: 100
    Enum values:
    PENDING
    APPROVED
    REJECTED
  • tagsstring[]
    Enum values:
    FRAGILE
    EXPRESS
    INTERNATIONAL
    CUSTOMS_REQUIRED
  • facilitiesstring[]
    Enum values:
    LAX1
    JFK2
    ORD3
    DFW4
    SEA5

โ€‹Create a new shipment โ€บ Responses

    • recipientAddressobject ยท required
    • senderAddressobject ยท required
    • packagesobject[] ยท minItems: 1 ยท maxItems: 50 ยท unique ยท required
    • idstring ยท uuid
    • recipientEmailstring ยท email
    • statusstring | null ยท enum
      Enum values:
      CREATED
      IN_TRANSIT
      DELIVERED
      EXCEPTION
    • trackingNumberstring ยท pattern: ^[A-Z0-9]{10,20}$
    • createdAtstring ยท date-time
    • commentsobject[] ยท enum ยท maxItems: 100
      Enum values:
      PENDING
      APPROVED
      REJECTED
    • tagsstring[]
      Enum values:
      FRAGILE
      EXPRESS
      INTERNATIONAL
      CUSTOMS_REQUIRED
    • facilitiesstring[]
      Enum values:
      LAX1
      JFK2
      ORD3
      DFW4
      SEA5

โ€‹Track a shipment

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

Get the current status and tracking information for a shipment

โ€‹Track a shipment โ€บ path Parameters

  • trackingNumberstring ยท required

โ€‹Track a shipment โ€บ Headers

  • X-Correlation-IDstring ยท uuid

    Unique identifier for tracking requests across multiple services

  • X-API-Versionstring ยท enum

    API version requested by the client

    Enum values:
    2024-01
    2023-12
  • X-Cache-Controlstring ยท enum

    Caching behavior for the tracking response

    Enum values:
    no-cache
    max-age=60

โ€‹Track a shipment โ€บ Responses

    • recipientAddressobject ยท required
    • senderAddressobject ยท required
    • packagesobject[] ยท minItems: 1 ยท maxItems: 50 ยท unique ยท required
    • idstring ยท uuid
    • recipientEmailstring ยท email
    • statusstring | null ยท enum
      Enum values:
      CREATED
      IN_TRANSIT
      DELIVERED
      EXCEPTION
    • trackingNumberstring ยท pattern: ^[A-Z0-9]{10,20}$
    • createdAtstring ยท date-time
    • commentsobject[] ยท enum ยท maxItems: 100
      Enum values:
      PENDING
      APPROVED
      REJECTED
    • tagsstring[]
      Enum values:
      FRAGILE
      EXPRESS
      INTERNATIONAL
      CUSTOMS_REQUIRED
    • facilitiesstring[]
      Enum values:
      LAX1
      JFK2
      ORD3
      DFW4
      SEA5

โ€‹Cancel shipment

DELETE
https://api.sh.example.com/v1
/shipments/{trackingNumber}

Cancel a shipment that hasn't been picked up yet

โ€‹Cancel shipment โ€บ path Parameters

  • trackingNumberstring ยท required

โ€‹Cancel shipment โ€บ Responses

    • statusstring ยท enum
      Enum values:
      CANCELLED
    • refundAmountnumber ยท float
    • currencystring

โ€‹Hold shipment

PUT
https://api.sh.example.com/v1
/shipments/{shipmentId}/hold

Place a shipment on hold at a facility

โ€‹Hold shipment โ€บ path Parameters

  • shipmentIdstring ยท uuid ยท required

โ€‹Hold shipment โ€บ query Parameters

  • holdDurationstring ยท date-time

    Duration to hold the shipment

โ€‹Hold shipment โ€บ Headers

  • X-Hold-Operatorstring ยท enum

    Operator requesting the hold

    Enum values:
    SYSTEM
    ADMIN
    CUSTOMER
    AGENT

โ€‹Hold shipment โ€บ cookie Parameters

  • preferredLocationstring

    User's preferred facility location

โ€‹Hold shipment โ€บ Request Body

  • holdUntilstring ยท date-time ยท required
  • reasonstring ยท enum
    Enum values:
    RECIPIENT_REQUEST
    CUSTOMS_HOLD
    WEATHER_DELAY
    ADDRESS_VERIFICATION
    PAYMENT_PENDING
  • facilityIdstring ยท enum
    Enum values:
    LAX1
    JFK2
    ORD3
    DFW4
    SEA5

โ€‹Hold shipment โ€บ Responses

    • statusstring ยท enum
      Enum values:
      ON_HOLD
      HOLD_PENDING
      HOLD_REJECTED
    • holdLocationstring ยท enum
      Enum values:
      LAX1 - Los Angeles Hub
      JFK2 - New York Hub
      ORD3 - Chicago Hub
      DFW4 - Dallas Hub
      SEA5 - Seattle Hub
    • holdUntilstring ยท enum ยท date-time
      Enum values:
      2025-01-15T17:00:00Z
      2025-01-16T09:00:00Z
      2025-01-17T14:00:00Z

โ€‹Update shipment priority

PUT
https://api.sh.example.com/v1
/shipments/{shipmentId}/priority

Update the priority level of a shipment

โ€‹Update shipment priority โ€บ path Parameters

  • shipmentIdstring ยท uuid ยท required

โ€‹Update shipment priority โ€บ Request Body

  • prioritystring ยท enum ยท required

    New priority level for the shipment

    Enum values:
    URGENT
    HIGH
    NORMAL
    LOW

โ€‹Get available service levels

GET
https://api.sh.example.com/v1
/shipments/{shipmentId}/service-levels

Get all available service levels for a shipment with their details

โ€‹Get available service levels โ€บ path Parameters

  • shipmentIdstring ยท uuid ยท required

โ€‹Get available service levels โ€บ Responses

    • serviceLevelsobject[]