Skip to main content
POST
/
api
/
shipments
/
{id}
/
submit
Submit a shipment to carrier
curl --request POST \
  --url https://clarus-api.com/api/shipments/{id}/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Clarus-Subdomain: <api-key>'
{
  "data": {
    "id": 123,
    "type": "<string>",
    "attributes": {}
  }
}

Behavior

  • Submits shipment to configured carrier API
  • Generates shipping label and tracking number
  • Returns updated shipment with carrier response

Prerequisites

  • Shipment must have carrier_id assigned
  • Carrier integration must be configured
  • Packages must have valid dimensions

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Path Parameters

id
integer
required

The unique identifier of the shipment to submit

Response

Shipment submitted successfully

Standard successful response wrapper following JSON:API format

data
object

The response payload