Shipments API

Get access to your shipments data through Cloudbox's v1 API.

Retrieving Shipments

Outbound (type sales) and inbound (type purchase) shipments with tracking.

Use GET /api/v1/shipments to page through every record in your organization, or GET /api/v1/shipments/{id} to fetch a single record. The id is a UUID, and a 404 means it doesn't exist in your organization.

API Endpoint

GET
/api/v1/shipments
GET
/api/v1/shipments/{id}

Required Headers

Every request must include the following:

Header Key
Description
org-api-key
Your Organization API key. Contact Cloudbox Support For Access: support@cloudboxapp.com.
user-api-key
Your User API Key

Requests missing either header will return 401 Unauthorized

Example Request

bash curl -X GET "https://app.cloudboxapp.com/api/v1/shipments?limit=100" \ -H "org-api-key: YOUR_ORG_API_KEY" \ -H "user-api-key: YOUR_USER_API_KEY" \ -H "Accept: application/json"

Response Schema

Column
Type
Description
id
string (uuid)
Unique ID
shipment_number
string
type
string
Filterable (exact)
direction
string, nullable
status
string
Filterable (exact)
sales_order_id
string (uuid), nullable
References SalesOrders. Filterable (exact)
purchase_order_id
string (uuid), nullable
References PurchaseOrders. Filterable (exact)
customer_account_id
string (uuid), nullable
References CustomerAccounts
customer_location_id
string (uuid), nullable
References CustomerLocations
vendor_id
string (uuid), nullable
References Vendors
location_id
string (uuid), nullable
Location (building/site) ID
carrier_id
string (uuid), nullable
References ShippingCarriers
ship_date
string (YYYY-MM-DD), nullable
Sortable
delivered_date
string (YYYY-MM-DD), nullable
tracking_number
string, nullable
Filterable (exact)
tracking_url
string, nullable
service_code
string, nullable
freight_cost
number
weight_lb
number, nullable
notes
string, nullable
created_at
string (ISO 8601)
Creation timestamp (UTC). Sortable
updated_at
string (ISO 8601)
Last update timestamp (UTC). Sortable

Filters

limitPage size (default 100, max 1000)
offsetNumber of records to skip (default 0)
sortOne of: ship_date, created_at, updated_at
orderasc | desc
typesales | purchase
statusShipment status
sales_order_idShipments for this sales order
purchase_order_idShipments for this purchase order
tracking_numberExact tracking number match
updated_sinceOnly records updated at or after this ISO 8601 timestamp
default sortcreated_at descending

Errors

Cloudbox uses standard HTTP status codes to indicate API success or failure:

  • 200–299 – Request succeeded
  • 400 – Bad request (missing parameters, invalid values)
  • 401 – Unauthorized (missing or invalid API keys)
  • 404 – Resource not found
  • 429 – Too many requests (rate limited)