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

โ€‹Labels (3.0.0)

Endpoints for managing shipping labels. Labels are printable documents that contain:

  • Shipping address information
  • Tracking barcodes
  • Carrier-specific routing data
  • Package details

Endpoint

โ€‹Create a shipping label

POST
https://eedefc50718545d6b3a6cd7ea38faf06_oas.api.mockbin.io
/labels

Creates a new shipping label for a shipment.

The generated label will be available for download through the returned URL for 24 hours.

โ€‹Create a shipping label โ€บ Request Body

  • shipmentId
    stringย ยทย uuidย ยทย required
  • format
    stringย ยทย enumย ยทย required
    Enum values:
    PDF
    PNG
    ZPL
  • id
    stringย ยทย uuidย ยทย readOnly
  • size
    stringย ยทย enum
    Enum values:
    4x6
    6x4
    8.5x11
  • url
    stringย ยทย uriย ยทย readOnly
  • createdAt
    stringย ยทย date-timeย ยทย readOnly
  • expiresAt
    stringย ยทย date-timeย ยทย readOnly

โ€‹Create a shipping label โ€บ Responses

    • shipmentId
      stringย ยทย uuidย ยทย required
    • format
      stringย ยทย enumย ยทย required
      Enum values:
      PDF
      PNG
      ZPL
    • id
      stringย ยทย uuidย ยทย readOnly
    • size
      stringย ยทย enum
      Enum values:
      4x6
      6x4
      8.5x11
    • url
      stringย ยทย uriย ยทย readOnly
    • createdAt
      stringย ยทย date-timeย ยทย readOnly
    • expiresAt
      stringย ยทย date-timeย ยทย readOnly

โ€‹Invalidate a shipping label

PUT
https://eedefc50718545d6b3a6cd7ea38faf06_oas.api.mockbin.io
/labels/{id}/invalidate

Invalidates a shipping label, making it no longer available for download.

โ€‹Invalidate a shipping label โ€บ path Parameters

  • id
    stringย ยทย uuidย ยทย required

    The ID of the label to invalidate

โ€‹Invalidate a shipping label โ€บ Responses

    No response specified

โ€‹Get tracking number

GET
https://eedefc50718545d6b3a6cd7ea38faf06_oas.api.mockbin.io
/labels/{id}/trackingnumber

Retrieves the tracking number associated with a shipping label.

โ€‹Get tracking number โ€บ path Parameters

  • id
    stringย ยทย uuidย ยทย required

    The ID of the shipping label

โ€‹Get tracking number โ€บ query Parameters

  • format
    stringย ยทย enum

    The format of the response

    Enum values:
    basic
    detailed
    carrier-specific
  • limit
    integerย ยทย min: 1ย ยทย max: 100

    Maximum number of tracking events to return

  • carrier
    stringย ยทย enum

    Filter tracking information by specific carrier

    Enum values:
    UPS
    USPS
    FedEx
    DHL
  • events_since
    stringย ยทย date-time

    Only return tracking events after this timestamp

  • sort
    stringย ยทย enum

    Sort order for tracking events

    Enum values:
    newest_first
    oldest_first

โ€‹Get tracking number โ€บ Responses

    • trackingNumber
      stringย ยทย required
    • carrier
      stringย ยทย required
    • trackingUrl
      stringย ยทย uri

โ€‹Get shipping label

GET
https://eedefc50718545d6b3a6cd7ea38faf06_oas.api.mockbin.io
/labels/{id}

Retrieves a shipping label by ID. The label can be requested in different formats.

โ€‹Get shipping label โ€บ path Parameters

  • id
    stringย ยทย uuidย ยทย required

    The ID of the shipping label

โ€‹Get shipping label โ€บ query Parameters

  • format
    stringย ยทย enum

    The desired format of the label

    Enum values:
    PDF
    PNG
    ZPL
    JPEG
    TIFF
    SVG
    EPS
    BMP

โ€‹Get shipping label โ€บ Responses

    • shipmentId
      stringย ยทย uuidย ยทย required
    • format
      stringย ยทย enumย ยทย required
      Enum values:
      PDF
      PNG
      ZPL
    • id
      stringย ยทย uuidย ยทย readOnly
    • size
      stringย ยทย enum
      Enum values:
      4x6
      6x4
      8.5x11
    • url
      stringย ยทย uriย ยทย readOnly
    • createdAt
      stringย ยทย date-timeย ยทย readOnly
    • expiresAt
      stringย ยทย date-timeย ยทย readOnly