Shipsidekick LogoShipsidekick Docs
API/Shipments

Create a shipment

Create a new shipment directly by providing shipping details and selecting a carrier and service. This creates a shipping quote internally and purchases the label in one step.

POST
/shipments

Request Body

application/jsonRequired
shipToAddressRequiredobject

Destination shipping address

shipFromAddressRequiredobject

Origin shipping address

packagesRequiredarray<object>

Packages to ship

carrierCodeRequiredstring

Carrier code to use for shipping

serviceCodeRequiredstring

Service code to use for shipping

shippingDatestring

Date the shipment will be sent (defaults to current date/time)

Format: "date-time"
customsInputobject

Customs information for international shipments

labelFormatstring

Label format for the shipping label (pdf or zpl)

zplDpinumber

DPI setting for ZPL labels

curl -X POST "https://www.shipsidekick.com/api/v1/shipments" \
  -H "Content-Type: application/json" \
  -d '{
    "shipToAddress": {
      "name": "John Doe",
      "company": "Example Corp",
      "street1": "123 Main St",
      "street2": "Apt 4B",
      "city": "San Francisco",
      "state": "CA",
      "postalCode": "94102",
      "country": "US",
      "phone": "555-1234",
      "email": "john@example.com",
      "isResidential": true
    },
    "shipFromAddress": {
      "name": "Warehouse Team",
      "company": "ShipSidekick",
      "street1": "456 Industrial Way",
      "city": "Los Angeles",
      "state": "CA",
      "postalCode": "90210",
      "country": "US",
      "phone": "555-5678",
      "isResidential": false
    },
    "packages": [
      {
        "weight": 16,
        "weightUnit": "oz",
        "dimensions": {
          "length": 12,
          "width": 8,
          "height": 4
        },
        "dimensionsUnit": "in"
      }
    ],
    "carrierCode": "usps",
    "serviceCode": "priority",
    "shippingDate": "2024-01-15T10:00:00Z",
    "labelFormat": "zpl",
    "zplDpi": 203
  }'

Shipment created successfully

{
  "object": "shipment",
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
    "trackingCode": "string",
    "returnAddress": {
      "name": "string",
      "company": "string",
      "street1": "string",
      "street2": "string",
      "city": "string",
      "state": "string",
      "postalCode": "string",
      "country": "string",
      "phone": "string",
      "email": "string"
    },
    "carrierAccount": {
      "carrierCode": "string",
      "description": "string"
    },
    "shippingQuote": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
      "shipToAddress": {
        "name": "string",
        "company": "string",
        "street1": "string",
        "street2": "string",
        "city": "string",
        "state": "string",
        "postalCode": "string",
        "country": "string",
        "phone": "string",
        "email": "string",
        "facilityCode": "string",
        "isResidential": true,
        "isVerified": true,
        "taxIdentifier": "string"
      },
      "shipFromAddress": {
        "name": "string",
        "company": "string",
        "street1": "string",
        "street2": "string",
        "city": "string",
        "state": "string",
        "postalCode": "string",
        "country": "string",
        "phone": "string",
        "email": "string",
        "facilityCode": "string",
        "isResidential": true,
        "isVerified": true,
        "taxIdentifier": "string"
      },
      "shippingDate": "2019-08-24T14:15:22Z",
      "messages": [
        "string"
      ],
      "packages": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "weight": 0.1,
          "weightUnit": "string",
          "dimensions": {
            "length": 0.1,
            "width": 0.1,
            "height": 0.1
          },
          "dimensionsUnit": "string",
          "packaging": {
            "name": "string",
            "type": "string"
          }
        }
      ],
      "shippingRates": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "serviceCode": "string",
          "rateTotal": 0,
          "rateSurcharges": 0.1,
          "compareAtRate": 0,
          "currency": "string",
          "estDeliveryDays": 0,
          "estDeliveryDate": "2019-08-24T14:15:22Z",
          "deliveryDateGuaranteed": true,
          "message": "string",
          "carrierAccount": {
            "carrierCode": "string",
            "description": "string"
          }
        }
      ],
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    },
    "shippingRate": {
      "serviceCode": "string",
      "rateTotal": 0,
      "currency": "string",
      "estDeliveryDays": 0,
      "estDeliveryDate": "2019-08-24T14:15:22Z"
    },
    "tracker": {
      "status": "string",
      "statusDetail": "string",
      "estDeliveryDate": "2019-08-24T14:15:22Z",
      "trackingUrl": "string"
    },
    "order": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string"
    },
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}