Shipping Setup API
The Carriyo Shipping Setup API manages the configuration the shipping engine reads on every booking: carrier accounts, shipping rules, service levels, carrier networks, and costing profiles. These resources are set up once per merchant and updated infrequently.
Setting up carriers, service levels, networks, costing, and automation rules is infrequent, low-volume work — for most merchants, it’s one-time onboarding plus occasional changes. Consider using the Carriyo Dashboard instead: it validates inputs, surfaces required fields contextually, shows live previews of routing decisions, and protects you from the most common misconfigurations.
See the Guides section for step-by-step setup guides.
Carrier Accounts
A carrier account in Carriyo holds the settings for a given account with your chosen carrier. The information in the carrier account varies by carrier and usually includes details such as the account number, the API credentials (API key, username, password), and the chosen service type.
If you're a business that uses multiple carriers for shipping, you'll have multiple carrier accounts. For instance, if you have an account with DHL and UPS, you'll create two carrier accounts in Carriyo (one for each carrier) with the mandatory settings needed to book and track your shipments. You can also configure multiple carrier accounts in Carriyo for the same carrier when you hold multiple accounts with them across service types or countries.
5 operations · 0 objects
/carrier-accountsCreate carrier account
Create a new carrier account for the merchant. The account holds the credentials and configuration Carriyo uses to book shipments with that carrier.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: carrier-account-requestResponses
carrier-account-objectNeed the full machine-readable spec? Download the OpenAPI document →
/carrier-accountsList carrier accounts
List carrier accounts configured for your tenant. The response is a paginated wrapper
(items plus pagination), not a JSON array at the root.
By default, active and inactive accounts are included. Pass status (e.g. ACTIVE) to
narrow the list. Only ACTIVE accounts can be used to book shipments.
Use page and page_size to page through results. Set pagination=false to return all
matches in a single response (pagination metadata will show page and page_size as 0).
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| status | array | No | Filter by account status. Repeat the parameter or pass multiple values to match more than one status (e.g. `status=ACTIVE&status=INACTIVE`). |
| page | integer | No | Page number (1-based). Default `1`. |
| page_size | integer | No | Number of accounts per page. Default `10`. |
| pagination | boolean | No | When `false`, all matching accounts are returned in `items` and `pagination.page` / `pagination.page_size` are `0`. |
| search_string | string | No | Free-text search across account name and related fields. |
| carrier | array | No | Filter by carrier code (e.g. `DHL`, `QUIQUP`). |
| carrier_id | array | No | Filter by carrier account ID. |
| account_name | array | No | Filter by carrier account display name. |
| account_country | array | No | Filter by ISO 3166-1 alpha-2 account country. |
| is_live | boolean | No | Filter by live vs test credentials in account properties. |
| sort_by | string | No | — |
| sort_direction | string | No | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/carrier-accounts/{carrier-account-id}Get carrier account
Return a single carrier account by its carrier-account-id. By default the response
matches a configured account (carrier-account-object). Pass
statistics=true to receive activity timestamps (carrier-account-statistics-object).
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| carrier-account-id | string | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| statistics | boolean | No | When `true`, the response includes carrier activity timestamps (last booking, last error, real-time and sync update dates). |
| integration_status | boolean | No | When `true`, the response includes `integration_statuses` with the result of live integration checks for the account. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/carrier-accounts/{carrier-account-id}Update carrier account
Replace the configuration of a carrier account. The request body fully replaces the existing account; fields you omit are reset to defaults.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| carrier-account-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: carrier-account-requestResponses
carrier-account-objectNeed the full machine-readable spec? Download the OpenAPI document →
/carrier-accounts/{carrier-account-id}Delete carrier account
Soft-delete the specified carrier account. The account moves to deleted status and is
no longer returned by GET /carrier-accounts unless you pass status=deleted. Active
bookings on the account are not affected.
The request is rejected with 400 if the account is referenced by any automation rule
or service-level rule. Remove the references first, then retry.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| carrier-account-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Shipping Rules
Carriyo lets merchants automate carrier selection using shipping rules. Rules are grouped into rule sets, which can be assigned to merchant / country combinations. For example, a merchant can define one set of rules for the United States and a different set for Canada.
Each rule has a set of conditions that assign an inbound shipment to a chosen carrier when the conditions match. Rules have a sequence (priority), and the first rule to match the shipment determines the carrier. Conditions are flexible: you can match on the pickup or dropoff location, the delivery type, parcel weight, dimensions, or any other attribute of the shipment, and you can also cap the number of shipments routed to a carrier.
12 operations · 0 objects
/automation-rulesetsCreate automation ruleset
Create an automation ruleset. The ruleset is the container for the routing rules Carriyo evaluates at booking time to pick a carrier account for each shipment. You can optionally pass an initial set of rules on the request; rules can also be added later.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: automation-ruleset-with-rules-requestResponses
Need the full machine-readable spec? Download the OpenAPI document →
/automation-rulesetsList automation rulesets
List automation rulesets. Pass merchant to filter to one merchant, or omit it to
return rulesets across all merchants. Pass entity-type (FORWARD or REVERSE) to
narrow to forward-shipment or reverse-shipment rulesets.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | No | merchant id |
| entity-type | string | No | Shipment entity type FORWARD or REVERSE |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{automation-ruleset-id}Get automation ruleset
Return a single automation ruleset by its automation-ruleset-id.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automation-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
ruleset-responseNeed the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{automation-ruleset-id}Replace automation ruleset
Replace the ruleset and the rules it contains. The request body overwrites both; any
rule not in the request is removed. To change just the ruleset's own metadata (name,
merchants, entity type) without touching its rules, use PATCH instead.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automation-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: automation-ruleset-with-rules-requestResponses
Need the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{automation-ruleset-id}Update automation ruleset
Update the ruleset's own metadata (name, merchants, entity type) without touching the
rules it contains. To replace the rules as well, use PUT.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automation-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: ruleset-requestResponses
ruleset-responseNeed the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{automation-ruleset-id}Delete automation ruleset
Delete the ruleset and every rule it contains. Active bookings are unaffected, but from this point forward new bookings will fall through to any remaining rulesets, or return an error if no other ruleset matches.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automation-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{automation-ruleset-id}/rulesCreate automation rule
Add a new rule to an existing ruleset. The rule's position in the evaluation order is managed separately via Update automation sequence.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automation-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: automation-rule-requestResponses
automation-rule-responseNeed the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{automation-ruleset-id}/rulesList automation rules
List the rules in the specified ruleset, ordered by their configured sequence.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automation-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{ruleset-id}/rules/sequencesUpdate automation sequence
Set the evaluation order of rules within the ruleset. Carriyo evaluates rules in this order at booking time and stops at the first matching rule, so sequence drives which rule wins when more than one would match the shipment.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: sequences-requestResponses
Need the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{ruleset-id}/rules/{automation-rule-id}Get automation rule
Return a single automation rule by its automation-rule-id within the ruleset.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ruleset-id | string | Yes | — |
| automation-rule-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
automation-rule-responseNeed the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{ruleset-id}/rules/{automation-rule-id}Update automation rule
Replace the rule's configuration. The request body fully replaces the existing rule; fields you omit are reset to defaults. The rule's position in the evaluation sequence is unchanged and is managed separately via Update automation sequence.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ruleset-id | string | Yes | — |
| automation-rule-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: automation-rule-requestResponses
automation-rule-responseNeed the full machine-readable spec? Download the OpenAPI document →
/automation-rulesets/{ruleset-id}/rules/{automation-rule-id}Delete automation rule
Remove a single rule from its ruleset. The rest of the ruleset is unchanged. New bookings that would have matched this rule fall through to the next matching rule in the ruleset.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ruleset-id | string | Yes | — |
| automation-rule-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Service Levels
A service level in Carriyo lets merchants define the expected timeline for a shipment. Service levels can be applied to each stage of the shipment journey: processing (preparing the shipment in the warehouse or store), collection (the carrier collecting the shipment), and delivery (the carrier delivering it once collected). You can also set up the customer promise: the end-to-end timeline from the moment the customer places the order.
Service levels work like shipping rules: they have a priority sequence and conditions, so you can define different expected timelines for different types of shipments.
12 operations · 0 objects
/service-level-rulesetsCreate service level ruleset
Create a service-level ruleset. Service-level rules drive the delivery promise (estimated delivery date and any cut-off windows) Carriyo computes for each shipment. You can optionally include an initial set of rules on the request; rules can also be added later.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: service-level-ruleset-with-rules-requestResponses
Need the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesetsList service level rulesets
List service-level rulesets. Pass merchant to filter to one merchant, or omit it to
return rulesets across all merchants. Pass entity-type (FORWARD or REVERSE) to
narrow to forward-shipment or reverse-shipment rulesets.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | No | merchant id |
| entity-type | string | No | Shipment entity type FORWARD or REVERSE |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{service-level-ruleset-id}Get service level ruleset
Return a single service-level ruleset by its service-level-ruleset-id.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| service-level-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
ruleset-responseNeed the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{service-level-ruleset-id}Replace service level ruleset
Replace the ruleset and the rules it contains. The request body overwrites both; any
rule not in the request is removed. To change just the ruleset's own metadata without
touching its rules, use PATCH instead.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| service-level-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: service-level-ruleset-with-rules-requestResponses
Need the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{service-level-ruleset-id}Update service level ruleset
Update the ruleset's own metadata (name, merchants, entity type) without touching the
rules it contains. To replace the rules as well, use PUT.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| service-level-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: ruleset-requestResponses
ruleset-responseNeed the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{service-level-ruleset-id}Delete service level ruleset
Delete the ruleset and every rule it contains. Without an applicable service-level ruleset, Carriyo falls back to carrier-provided estimates for new shipments.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| service-level-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{service-level-ruleset-id}/rulesCreate service level rule
Add a new rule to an existing service-level ruleset. The rule's position in the evaluation order is managed separately via Update service level sequence.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| service-level-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: service-level-rule-requestResponses
service-level-rule-responseNeed the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{service-level-ruleset-id}/rulesList service level rules
List the rules in the specified service-level ruleset, ordered by their configured sequence.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| service-level-ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{ruleset-id}/rules/sequencesUpdate service level sequence
Set the evaluation order of rules within the service-level ruleset. Carriyo evaluates rules in this order and stops at the first matching rule, so sequence drives which rule wins when more than one would match the shipment.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ruleset-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: sequences-requestResponses
Need the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{ruleset-id}/rules/{service-level-rule-id}Get service level rule
Return a single service-level rule by its service-level-rule-id within the ruleset.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ruleset-id | string | Yes | — |
| service-level-rule-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
service-level-rule-responseNeed the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{ruleset-id}/rules/{service-level-rule-id}Update service level rule
Replace the rule's configuration. The request body fully replaces the existing rule; fields you omit are reset to defaults. The rule's position in the evaluation sequence is unchanged.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ruleset-id | string | Yes | — |
| service-level-rule-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: service-level-rule-requestResponses
service-level-rule-responseNeed the full machine-readable spec? Download the OpenAPI document →
/service-level-rulesets/{ruleset-id}/rules/{service-level-rule-id}Delete service level rule
Remove a single rule from its service-level ruleset. The rest of the ruleset is unchanged.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ruleset-id | string | Yes | — |
| service-level-rule-id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Carrier Networks
Carrier networks group carriers for routing decisions across geographic regions.
4 operations · 0 objects
/networksCreate carrier network
Create a new carrier network. A network groups carriers and their geographic or postcode coverage so it can be referenced as a condition in automation rules.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: carrier-network-dtorequiredResponses
carrier-network-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/networksList carrier networks
Return all carrier networks defined for the tenant.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/networks/{id}Get carrier network
Return a single carrier network by its id.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Carrier network identifier. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
carrier-network-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/networks/{id}/assignAssign carriers to network
Replace the list of carrier accounts associated with the network. The request body is the full set; accounts not in the list are removed from the network.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Carrier network identifier. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonrequiredResponses
carrier-network-dtoNeed the full machine-readable spec? Download the OpenAPI document →
Carrier Costing
Costing profiles and rules define cost structures for carriers based on shipment characteristics.
6 operations · 0 objects
/costing-rulesCreate costing profile
Create a shipment costing profile and its rules. The body is a ShipmentCostingDto
wrapper with costing_profile and costing_rules.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: shipment-costing-dtorequiredResponses
shipment-costing-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/costing-rulesList costing profiles
Return all shipment costing profiles configured for the tenant.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/costing-rules/{id}Get costing profile
Return a single shipment costing profile by its id, including its costing rules.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Costing profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
shipment-costing-profile-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/costing-rules/{id}Update costing profile
Replace the costing profile and all of its rules. The body is a ShipmentCostingDto
wrapper with costing_profile and costing_rules; any rule not in costing_rules is
removed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Costing profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: shipment-costing-dtorequiredResponses
shipment-costing-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/costing-rules/{id}Delete costing profile
Permanently delete the costing profile and its rules. Carrier accounts that were using this profile fall back to live rating where available.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Costing profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/costing-rules/{profile_id}/rulesAdd costing rule
Add a new costing rule to an existing shipment costing profile.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| profile_id | string | Yes | Costing profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: shipment-costing-rule-dtorequiredResponses
shipment-costing-rule-dtoNeed the full machine-readable spec? Download the OpenAPI document →
Carrier Capacity
Capacity profiles define shipment-volume thresholds and constraints per carrier across regions and time windows.
9 operations · 0 objects
/capacitiesCreate capacity profile
Create a capacity profile. The profile holds a set of rules that cap the number of shipments Carriyo will book against the assigned carrier accounts within a time window, so capacity-constrained carriers don't get overwhelmed.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: capacity-profile-requestrequiredResponses
capacity-profile-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/capacitiesList capacity profiles
Return all capacity profiles configured for the tenant.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/capacities/{id}Get capacity profile
Return a single capacity profile by its id, including its capacity rules.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Capacity profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
capacity-profile-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/capacities/{id}Update capacity profile
Replace the capacity profile and its rules. The request body fully replaces the
existing profile; any rule not in the request is removed. To change only the profile's
own metadata without touching rules, use PATCH.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Capacity profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: capacity-profile-requestrequiredResponses
capacity-profile-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/capacities/{id}Patch capacity profile
Update the capacity profile's own metadata without touching the rules it contains.
Only the supplied fields are changed; omitted fields are left as-is. To replace the
rules as well, use PUT.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Capacity profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: capacity-profile-dtorequiredResponses
capacity-profile-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/capacities/{id}Delete capacity profile
Permanently delete the capacity profile and its rules. Carrier accounts that were assigned to this profile no longer have capacity caps enforced through it.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Capacity profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/capacities/{id}/assignAssign carrier accounts to capacity profile
Replace the list of carrier accounts assigned to the capacity profile. The request body is the full set; accounts not in the list are unassigned.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Capacity profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonrequiredResponses
capacity-profile-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/capacities/{profile_id}/rulesAdd capacity rule
Add a new capacity rule to an existing capacity profile.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| profile_id | string | Yes | Capacity profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: capacity-rule-dtorequiredResponses
capacity-rule-dtoNeed the full machine-readable spec? Download the OpenAPI document →
/capacities/{profile_id}/rulesList capacity rules
List the capacity rules in the specified capacity profile.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| profile_id | string | Yes | Capacity profile ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Document Settings
Document settings configure templates and formats for shipment documents (labels, manifests, proofs of delivery).
4 operations · 0 objects
/document-settingsCreate document setting
Create a document setting for the tenant. A document setting registers a document type (commercial invoice, packing list, label, manifest, POD) along with its format, template, and whether it can be uploaded to the carrier. Document uploads on shipments must match an existing setting.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: document-requestrequiredResponses
document-settingsNeed the full machine-readable spec? Download the OpenAPI document →
/document-settingsList document settings
Return all document settings configured for the tenant.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/document-settings/{documentId}Update document setting
Replace a document setting's configuration. The request body fully replaces the existing setting; fields you omit are reset to defaults.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| documentId | string | Yes | Document setting ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: document-requestrequiredResponses
document-settingsNeed the full machine-readable spec? Download the OpenAPI document →
/document-settings/{documentId}Delete document setting
Permanently delete a document setting. Existing shipment documents tied to this setting are not removed retroactively, but new uploads referencing it are no longer accepted.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| documentId | string | Yes | Document setting ID. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →