API reference

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.

Use the Carriyo Dashboard for shipping setup

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.

Serverhttps://api.carriyo.comAuthOAuth 2.0 + API KeySpecshipping-setup.yaml

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

post/carrier-accounts

Create carrier account

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Create a new carrier account for the merchant. The account holds the credentials and configuration Carriyo uses to book shipments with that carrier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: carrier-account-request
  • carrier_account_idstring
    Unique identifier of the carrier account.
  • parentobject
    Parent account reference for child (e.g. Click-n-Ship) accounts.
  • merchantsstring[]
    Merchant IDs allowed to use this account.
  • carrier_account_namestring
  • carrierstring
    Carrier code (e.g. QUIQUP, DHL).
  • account_countrystring
    ISO 3166-1 alpha-2 country code for the account.
  • account_currencystring
    ISO 4217 currency code for the account.
  • daily_capacity_idstring
  • in_flight_capacity_idstring
  • costing_profile_idstring
  • network_idstring
  • propertyobject
    Carrier-specific credential and configuration key-value pairs.
  • carrier_custom_attributesobject
  • document_mappingsobject
  • labelobject
  • service_scheduleobject
    Per-service pickup schedule configuration.
  • auto_ready_to_shipboolean
  • auto_return_confirmedboolean
  • auto_translate_to_englishboolean
  • use_carrier_costing_apiboolean
  • service_namestring
  • service_descriptionstring
  • delivery_promisestring
  • estimated_daysinteger
  • shipping_cost_markup_percentagenumberformat: double
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • deletedboolean
    Deprecated. Use status instead (DELETED).
  • generic_carrierboolean
  • packagingobject
  • unique_identifierstring
  • assetsobject

Responses

200Carrier account created.Schema: carrier-account-object
  • carrier_account_idstring
    Unique identifier of the carrier account.
  • parentobject
    Parent account reference for child (e.g. Click-n-Ship) accounts.
  • merchantsstring[]
    Merchant IDs allowed to use this account.
  • carrier_account_namestring
  • carrierstring
    Carrier code (e.g. QUIQUP, DHL).
  • account_countrystring
    ISO 3166-1 alpha-2 country code for the account.
  • account_currencystring
    ISO 4217 currency code for the account.
  • daily_capacity_idstring
  • in_flight_capacity_idstring
  • costing_profile_idstring
  • network_idstring
  • propertyobject
    Carrier-specific credential and configuration key-value pairs.
  • carrier_custom_attributesobject
  • document_mappingsobject
  • labelobject
  • service_scheduleobject
    Per-service pickup schedule configuration.
  • auto_ready_to_shipboolean
  • auto_return_confirmedboolean
  • auto_translate_to_englishboolean
  • use_carrier_costing_apiboolean
  • service_namestring
  • service_descriptionstring
  • delivery_promisestring
  • estimated_daysinteger
  • shipping_cost_markup_percentagenumberformat: double
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • deletedboolean
    Deprecated. Use status instead (DELETED).
  • generic_carrierboolean
  • packagingobject
  • unique_identifierstring
  • assetsobject
  • creation_datestringformat: date-time
  • update_datestringformat: date-time
  • deletion_datestringformat: date-time
  • integration_statusesobject
    Present when integration_status=true on GET. Maps capability name to integration check result.

Need the full machine-readable spec? Download the OpenAPI document →

get/carrier-accounts

List carrier accounts

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
statusarrayNoFilter by account status. Repeat the parameter or pass multiple values to match more than one status (e.g. `status=ACTIVE&status=INACTIVE`).
pageintegerNoPage number (1-based). Default `1`.
page_sizeintegerNoNumber of accounts per page. Default `10`.
paginationbooleanNoWhen `false`, all matching accounts are returned in `items` and `pagination.page` / `pagination.page_size` are `0`.
search_stringstringNoFree-text search across account name and related fields.
carrierarrayNoFilter by carrier code (e.g. `DHL`, `QUIQUP`).
carrier_idarrayNoFilter by carrier account ID.
account_namearrayNoFilter by carrier account display name.
account_countryarrayNoFilter by ISO 3166-1 alpha-2 account country.
is_livebooleanNoFilter by live vs test credentials in account properties.
sort_bystringNo
sort_directionstringNo

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Paginated carrier accounts. The response is an object with `items` and `pagination`, not a bare array.Schema: carrier-account-page
  • itemscarrier-account-object[]required
    carrier-account-object[] — carrier accounts for the current page (or all matches when pagination=false).
  • paginationobjectrequired

Need the full machine-readable spec? Download the OpenAPI document →

get/carrier-accounts/{carrier-account-id}

Get carrier account

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
carrier-account-idstringYes

Query parameters

NameTypeRequiredDescription
statisticsbooleanNoWhen `true`, the response includes carrier activity timestamps (last booking, last error, real-time and sync update dates).
integration_statusbooleanNoWhen `true`, the response includes `integration_statuses` with the result of live integration checks for the account.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Returns the requested carrier account.
404Carrier account not found.

Need the full machine-readable spec? Download the OpenAPI document →

put/carrier-accounts/{carrier-account-id}

Update carrier account

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Replace the configuration of a carrier account. The request body fully replaces the existing account; fields you omit are reset to defaults.

Path parameters

NameTypeRequiredDescription
carrier-account-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: carrier-account-request
  • carrier_account_idstring
    Unique identifier of the carrier account.
  • parentobject
    Parent account reference for child (e.g. Click-n-Ship) accounts.
  • merchantsstring[]
    Merchant IDs allowed to use this account.
  • carrier_account_namestring
  • carrierstring
    Carrier code (e.g. QUIQUP, DHL).
  • account_countrystring
    ISO 3166-1 alpha-2 country code for the account.
  • account_currencystring
    ISO 4217 currency code for the account.
  • daily_capacity_idstring
  • in_flight_capacity_idstring
  • costing_profile_idstring
  • network_idstring
  • propertyobject
    Carrier-specific credential and configuration key-value pairs.
  • carrier_custom_attributesobject
  • document_mappingsobject
  • labelobject
  • service_scheduleobject
    Per-service pickup schedule configuration.
  • auto_ready_to_shipboolean
  • auto_return_confirmedboolean
  • auto_translate_to_englishboolean
  • use_carrier_costing_apiboolean
  • service_namestring
  • service_descriptionstring
  • delivery_promisestring
  • estimated_daysinteger
  • shipping_cost_markup_percentagenumberformat: double
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • deletedboolean
    Deprecated. Use status instead (DELETED).
  • generic_carrierboolean
  • packagingobject
  • unique_identifierstring
  • assetsobject

Responses

200Carrier account updated.Schema: carrier-account-object
  • carrier_account_idstring
    Unique identifier of the carrier account.
  • parentobject
    Parent account reference for child (e.g. Click-n-Ship) accounts.
  • merchantsstring[]
    Merchant IDs allowed to use this account.
  • carrier_account_namestring
  • carrierstring
    Carrier code (e.g. QUIQUP, DHL).
  • account_countrystring
    ISO 3166-1 alpha-2 country code for the account.
  • account_currencystring
    ISO 4217 currency code for the account.
  • daily_capacity_idstring
  • in_flight_capacity_idstring
  • costing_profile_idstring
  • network_idstring
  • propertyobject
    Carrier-specific credential and configuration key-value pairs.
  • carrier_custom_attributesobject
  • document_mappingsobject
  • labelobject
  • service_scheduleobject
    Per-service pickup schedule configuration.
  • auto_ready_to_shipboolean
  • auto_return_confirmedboolean
  • auto_translate_to_englishboolean
  • use_carrier_costing_apiboolean
  • service_namestring
  • service_descriptionstring
  • delivery_promisestring
  • estimated_daysinteger
  • shipping_cost_markup_percentagenumberformat: double
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • deletedboolean
    Deprecated. Use status instead (DELETED).
  • generic_carrierboolean
  • packagingobject
  • unique_identifierstring
  • assetsobject
  • creation_datestringformat: date-time
  • update_datestringformat: date-time
  • deletion_datestringformat: date-time
  • integration_statusesobject
    Present when integration_status=true on GET. Maps capability name to integration check result.

Need the full machine-readable spec? Download the OpenAPI document →

delete/carrier-accounts/{carrier-account-id}

Delete carrier account

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
carrier-account-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Carrier account deleted. Response body is empty.

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

post/automation-rulesets

Create automation ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: automation-ruleset-with-rules-request
  • automation_rulesetruleset-requestrequired
  • automation_rulesautomation-rule-request[]

Responses

200Automation ruleset and rules created.Schema: automation-ruleset-with-rules-response
  • automation_rulesetruleset-responserequired
  • automation_rulesautomation-rule-response[]

Need the full machine-readable spec? Download the OpenAPI document →

get/automation-rulesets

List automation rulesets

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
merchantstringNomerchant id
entity-typestringNoShipment entity type FORWARD or REVERSE

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Matching automation rulesets.
  • tenantstring
  • rule_set_idstring
  • namestring
  • entity_typestring
    Values:FORWARDREVERSE
  • merchantsstring[]
    List of Merchant ids used in Ruleset. Use ["_ANY"] for all merchants
  • countriesstring[]
    List of country iso2 codes used in Ruleset. Use ["_ANY"] for all countries
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
  • update_datestringformat: date-time

Need the full machine-readable spec? Download the OpenAPI document →

get/automation-rulesets/{automation-ruleset-id}

Get automation ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return a single automation ruleset by its automation-ruleset-id.

Path parameters

NameTypeRequiredDescription
automation-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Returns the requested automation ruleset.Schema: ruleset-response
  • tenantstring
  • rule_set_idstring
  • namestring
  • entity_typestring
    Values:FORWARDREVERSE
  • merchantsstring[]
    List of Merchant ids used in Ruleset. Use ["_ANY"] for all merchants
  • countriesstring[]
    List of country iso2 codes used in Ruleset. Use ["_ANY"] for all countries
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
  • update_datestringformat: date-time

Need the full machine-readable spec? Download the OpenAPI document →

put/automation-rulesets/{automation-ruleset-id}

Replace automation ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
automation-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: automation-ruleset-with-rules-request
  • automation_rulesetruleset-requestrequired
  • automation_rulesautomation-rule-request[]

Responses

200Automation ruleset and rules updated.Schema: automation-ruleset-with-rules-response
  • automation_rulesetruleset-responserequired
  • automation_rulesautomation-rule-response[]

Need the full machine-readable spec? Download the OpenAPI document →

patch/automation-rulesets/{automation-ruleset-id}

Update automation ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
automation-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: ruleset-request
  • namestringrequired
  • entity_typestringrequired
    Values:FORWARDREVERSE
  • merchantsstring[]required
    List of Merchant ids used in Ruleset. Use ["_ANY"] for all merchants
  • countriesstring[]required
    List of country iso2 codes used in Ruleset. Use ["_ANY"] for all countries
  • statusstringrequired
    Values:ACTIVEINACTIVEDELETED

Responses

200Automation ruleset updated.Schema: ruleset-response
  • tenantstring
  • rule_set_idstring
  • namestring
  • entity_typestring
    Values:FORWARDREVERSE
  • merchantsstring[]
    List of Merchant ids used in Ruleset. Use ["_ANY"] for all merchants
  • countriesstring[]
    List of country iso2 codes used in Ruleset. Use ["_ANY"] for all countries
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
  • update_datestringformat: date-time

Need the full machine-readable spec? Download the OpenAPI document →

delete/automation-rulesets/{automation-ruleset-id}

Delete automation ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
automation-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Automation ruleset deleted.

Need the full machine-readable spec? Download the OpenAPI document →

post/automation-rulesets/{automation-ruleset-id}/rules

Create automation rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
automation-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: automation-rule-request
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent automation ruleset.
  • rule_namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantstring-condition-field
    Match shipment.merchant.
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • payment_typestring-condition-field
    Match shipment.payment.type.
  • delivery_typestring-condition-field
    Match shipment.delivery_type.
  • order_typestring-condition-field
    Match shipment.order_type.
  • dangerous_goodsstring
    Filter on shipment.items[].dangerous_goods. Values: ANY, ONLY, NONE.
  • customer_address_verifiedstring
    Filter on shipment.dropoff.address_verified. Values: ANY, VERIFIED, UNVERIFIED.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • chargeable_weightnumber-area-condition-field
    Match shipment parcels chargeable weight.
  • parcel_countnumber-area-condition-field
    Match shipment parcel count.
  • order_valuenumber-area-condition-field
    Match shipment.payment.total_amount.
  • item_valuenumber-area-condition-field
    Match shipment.items[].price aggregated value.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies: recurring working_days / working_hours, optional working_period, blackout_days, and schedule_by (reference date). Omitted or empty working_days = always.
  • carrier_accountscarrier-account-bean[]
    Carrier accounts the rule selects from (CarrierAccountBean).
  • carrier_choicestring
    Flat enum (CarrierChoice), not an object. CHEAPEST_CARRIER selects the lowest-cost account; ROUND_ROBIN uses round_robin_carriers quotas.
    Values:CHEAPEST_CARRIERROUND_ROBIN
  • round_robin_carriersround-robin-carrier[]
    Quota entries when carrier_choice is ROUND_ROBIN.
  • daily_limitdaily-limit
    Optional per-rule daily cap.

Responses

200Automation rules created.Schema: automation-rule-response
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent automation ruleset.
  • rule_namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantstring-condition-field
    Match shipment.merchant.
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • payment_typestring-condition-field
    Match shipment.payment.type.
  • delivery_typestring-condition-field
    Match shipment.delivery_type.
  • order_typestring-condition-field
    Match shipment.order_type.
  • dangerous_goodsstring
    Filter on shipment.items[].dangerous_goods. Values: ANY, ONLY, NONE.
  • customer_address_verifiedstring
    Filter on shipment.dropoff.address_verified. Values: ANY, VERIFIED, UNVERIFIED.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • chargeable_weightnumber-area-condition-field
    Match shipment parcels chargeable weight.
  • parcel_countnumber-area-condition-field
    Match shipment parcel count.
  • order_valuenumber-area-condition-field
    Match shipment.payment.total_amount.
  • item_valuenumber-area-condition-field
    Match shipment.items[].price aggregated value.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies: recurring working_days / working_hours, optional working_period, blackout_days, and schedule_by (reference date). Omitted or empty working_days = always.
  • carrier_accountscarrier-account-bean[]
    Carrier accounts the rule selects from (CarrierAccountBean).
  • carrier_choicestring
    Flat enum (CarrierChoice), not an object. CHEAPEST_CARRIER selects the lowest-cost account; ROUND_ROBIN uses round_robin_carriers quotas.
    Values:CHEAPEST_CARRIERROUND_ROBIN
  • round_robin_carriersround-robin-carrier[]
    Quota entries when carrier_choice is ROUND_ROBIN.
  • daily_limitdaily-limit
    Optional per-rule daily cap.
  • tenantstring
    Tenant identifier.
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

get/automation-rulesets/{automation-ruleset-id}/rules

List automation rules

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

List the rules in the specified ruleset, ordered by their configured sequence.

Path parameters

NameTypeRequiredDescription
automation-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Matching automation rules.
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent automation ruleset.
  • rule_namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantstring-condition-field
    Match shipment.merchant.
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • payment_typestring-condition-field
    Match shipment.payment.type.
  • delivery_typestring-condition-field
    Match shipment.delivery_type.
  • order_typestring-condition-field
    Match shipment.order_type.
  • dangerous_goodsstring
    Filter on shipment.items[].dangerous_goods. Values: ANY, ONLY, NONE.
  • customer_address_verifiedstring
    Filter on shipment.dropoff.address_verified. Values: ANY, VERIFIED, UNVERIFIED.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • chargeable_weightnumber-area-condition-field
    Match shipment parcels chargeable weight.
  • parcel_countnumber-area-condition-field
    Match shipment parcel count.
  • order_valuenumber-area-condition-field
    Match shipment.payment.total_amount.
  • item_valuenumber-area-condition-field
    Match shipment.items[].price aggregated value.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies: recurring working_days / working_hours, optional working_period, blackout_days, and schedule_by (reference date). Omitted or empty working_days = always.
  • carrier_accountscarrier-account-bean[]
    Carrier accounts the rule selects from (CarrierAccountBean).
  • carrier_choicestring
    Flat enum (CarrierChoice), not an object. CHEAPEST_CARRIER selects the lowest-cost account; ROUND_ROBIN uses round_robin_carriers quotas.
    Values:CHEAPEST_CARRIERROUND_ROBIN
  • round_robin_carriersround-robin-carrier[]
    Quota entries when carrier_choice is ROUND_ROBIN.
  • daily_limitdaily-limit
    Optional per-rule daily cap.
  • tenantstring
    Tenant identifier.
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

patch/automation-rulesets/{ruleset-id}/rules/sequences

Update automation sequence

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: sequences-request
  • rule_idstring
  • sequencenumber

Responses

200Automation rules sequence updated.Schema: sequences-request
  • rule_idstring
  • sequencenumber

Need the full machine-readable spec? Download the OpenAPI document →

get/automation-rulesets/{ruleset-id}/rules/{automation-rule-id}

Get automation rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return a single automation rule by its automation-rule-id within the ruleset.

Path parameters

NameTypeRequiredDescription
ruleset-idstringYes
automation-rule-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Returns the requested automation rule.Schema: automation-rule-response
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent automation ruleset.
  • rule_namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantstring-condition-field
    Match shipment.merchant.
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • payment_typestring-condition-field
    Match shipment.payment.type.
  • delivery_typestring-condition-field
    Match shipment.delivery_type.
  • order_typestring-condition-field
    Match shipment.order_type.
  • dangerous_goodsstring
    Filter on shipment.items[].dangerous_goods. Values: ANY, ONLY, NONE.
  • customer_address_verifiedstring
    Filter on shipment.dropoff.address_verified. Values: ANY, VERIFIED, UNVERIFIED.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • chargeable_weightnumber-area-condition-field
    Match shipment parcels chargeable weight.
  • parcel_countnumber-area-condition-field
    Match shipment parcel count.
  • order_valuenumber-area-condition-field
    Match shipment.payment.total_amount.
  • item_valuenumber-area-condition-field
    Match shipment.items[].price aggregated value.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies: recurring working_days / working_hours, optional working_period, blackout_days, and schedule_by (reference date). Omitted or empty working_days = always.
  • carrier_accountscarrier-account-bean[]
    Carrier accounts the rule selects from (CarrierAccountBean).
  • carrier_choicestring
    Flat enum (CarrierChoice), not an object. CHEAPEST_CARRIER selects the lowest-cost account; ROUND_ROBIN uses round_robin_carriers quotas.
    Values:CHEAPEST_CARRIERROUND_ROBIN
  • round_robin_carriersround-robin-carrier[]
    Quota entries when carrier_choice is ROUND_ROBIN.
  • daily_limitdaily-limit
    Optional per-rule daily cap.
  • tenantstring
    Tenant identifier.
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

put/automation-rulesets/{ruleset-id}/rules/{automation-rule-id}

Update automation rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
ruleset-idstringYes
automation-rule-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: automation-rule-request
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent automation ruleset.
  • rule_namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantstring-condition-field
    Match shipment.merchant.
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • payment_typestring-condition-field
    Match shipment.payment.type.
  • delivery_typestring-condition-field
    Match shipment.delivery_type.
  • order_typestring-condition-field
    Match shipment.order_type.
  • dangerous_goodsstring
    Filter on shipment.items[].dangerous_goods. Values: ANY, ONLY, NONE.
  • customer_address_verifiedstring
    Filter on shipment.dropoff.address_verified. Values: ANY, VERIFIED, UNVERIFIED.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • chargeable_weightnumber-area-condition-field
    Match shipment parcels chargeable weight.
  • parcel_countnumber-area-condition-field
    Match shipment parcel count.
  • order_valuenumber-area-condition-field
    Match shipment.payment.total_amount.
  • item_valuenumber-area-condition-field
    Match shipment.items[].price aggregated value.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies: recurring working_days / working_hours, optional working_period, blackout_days, and schedule_by (reference date). Omitted or empty working_days = always.
  • carrier_accountscarrier-account-bean[]
    Carrier accounts the rule selects from (CarrierAccountBean).
  • carrier_choicestring
    Flat enum (CarrierChoice), not an object. CHEAPEST_CARRIER selects the lowest-cost account; ROUND_ROBIN uses round_robin_carriers quotas.
    Values:CHEAPEST_CARRIERROUND_ROBIN
  • round_robin_carriersround-robin-carrier[]
    Quota entries when carrier_choice is ROUND_ROBIN.
  • daily_limitdaily-limit
    Optional per-rule daily cap.

Responses

200Automation rule updated.Schema: automation-rule-response
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent automation ruleset.
  • rule_namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantstring-condition-field
    Match shipment.merchant.
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • payment_typestring-condition-field
    Match shipment.payment.type.
  • delivery_typestring-condition-field
    Match shipment.delivery_type.
  • order_typestring-condition-field
    Match shipment.order_type.
  • dangerous_goodsstring
    Filter on shipment.items[].dangerous_goods. Values: ANY, ONLY, NONE.
  • customer_address_verifiedstring
    Filter on shipment.dropoff.address_verified. Values: ANY, VERIFIED, UNVERIFIED.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • chargeable_weightnumber-area-condition-field
    Match shipment parcels chargeable weight.
  • parcel_countnumber-area-condition-field
    Match shipment parcel count.
  • order_valuenumber-area-condition-field
    Match shipment.payment.total_amount.
  • item_valuenumber-area-condition-field
    Match shipment.items[].price aggregated value.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies: recurring working_days / working_hours, optional working_period, blackout_days, and schedule_by (reference date). Omitted or empty working_days = always.
  • carrier_accountscarrier-account-bean[]
    Carrier accounts the rule selects from (CarrierAccountBean).
  • carrier_choicestring
    Flat enum (CarrierChoice), not an object. CHEAPEST_CARRIER selects the lowest-cost account; ROUND_ROBIN uses round_robin_carriers quotas.
    Values:CHEAPEST_CARRIERROUND_ROBIN
  • round_robin_carriersround-robin-carrier[]
    Quota entries when carrier_choice is ROUND_ROBIN.
  • daily_limitdaily-limit
    Optional per-rule daily cap.
  • tenantstring
    Tenant identifier.
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

delete/automation-rulesets/{ruleset-id}/rules/{automation-rule-id}

Delete automation rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
ruleset-idstringYes
automation-rule-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Automation rule deleted.

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

post/service-level-rulesets

Create service level ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: service-level-ruleset-with-rules-request
  • service_level_rulesetruleset-requestrequired
  • service_level_rulesservice-level-rule-request[]

Responses

200Service level ruleset and rules created.Schema: service-level-ruleset-with-rules-response
  • service_level_rulesetruleset-responserequired
  • service_level_rulesservice-level-rule-response[]

Need the full machine-readable spec? Download the OpenAPI document →

get/service-level-rulesets

List service level rulesets

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
merchantstringNomerchant id
entity-typestringNoShipment entity type FORWARD or REVERSE

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Matching service level rulesets.
  • tenantstring
  • rule_set_idstring
  • namestring
  • entity_typestring
    Values:FORWARDREVERSE
  • merchantsstring[]
    List of Merchant ids used in Ruleset. Use ["_ANY"] for all merchants
  • countriesstring[]
    List of country iso2 codes used in Ruleset. Use ["_ANY"] for all countries
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
  • update_datestringformat: date-time

Need the full machine-readable spec? Download the OpenAPI document →

get/service-level-rulesets/{service-level-ruleset-id}

Get service level ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return a single service-level ruleset by its service-level-ruleset-id.

Path parameters

NameTypeRequiredDescription
service-level-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Returns the requested service level ruleset.Schema: ruleset-response
  • tenantstring
  • rule_set_idstring
  • namestring
  • entity_typestring
    Values:FORWARDREVERSE
  • merchantsstring[]
    List of Merchant ids used in Ruleset. Use ["_ANY"] for all merchants
  • countriesstring[]
    List of country iso2 codes used in Ruleset. Use ["_ANY"] for all countries
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
  • update_datestringformat: date-time

Need the full machine-readable spec? Download the OpenAPI document →

put/service-level-rulesets/{service-level-ruleset-id}

Replace service level ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
service-level-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: service-level-ruleset-with-rules-request
  • service_level_rulesetruleset-requestrequired
  • service_level_rulesservice-level-rule-request[]

Responses

200Service level ruleset and rules updated.Schema: service-level-ruleset-with-rules-response
  • service_level_rulesetruleset-responserequired
  • service_level_rulesservice-level-rule-response[]

Need the full machine-readable spec? Download the OpenAPI document →

patch/service-level-rulesets/{service-level-ruleset-id}

Update service level ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
service-level-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: ruleset-request
  • namestringrequired
  • entity_typestringrequired
    Values:FORWARDREVERSE
  • merchantsstring[]required
    List of Merchant ids used in Ruleset. Use ["_ANY"] for all merchants
  • countriesstring[]required
    List of country iso2 codes used in Ruleset. Use ["_ANY"] for all countries
  • statusstringrequired
    Values:ACTIVEINACTIVEDELETED

Responses

200Service level ruleset updated.Schema: ruleset-response
  • tenantstring
  • rule_set_idstring
  • namestring
  • entity_typestring
    Values:FORWARDREVERSE
  • merchantsstring[]
    List of Merchant ids used in Ruleset. Use ["_ANY"] for all merchants
  • countriesstring[]
    List of country iso2 codes used in Ruleset. Use ["_ANY"] for all countries
  • statusstring
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
  • update_datestringformat: date-time

Need the full machine-readable spec? Download the OpenAPI document →

delete/service-level-rulesets/{service-level-ruleset-id}

Delete service level ruleset

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
service-level-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Service level ruleset deleted.

Need the full machine-readable spec? Download the OpenAPI document →

post/service-level-rulesets/{service-level-ruleset-id}/rules

Create service level rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
service-level-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: service-level-rule-request
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent service-level ruleset.
  • namestringrequired
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceintegerrequired
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • config_typestringrequired
    SLA stage the rule applies to (ConfigType): fulfillment processing, shipping/collection, delivery attempt, or customer promise.
    Values:FULFILLMENTSHIPPINGDELIVERYPROMISED
  • statusstringrequired
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantsstring-condition-field
    Match shipment.merchant (StringCondition with operator and value).
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • delivery_typesstring-condition-field
    Match shipment.delivery_type.
  • order_typesstring-condition-field
    Match shipment.order_type.
  • carrier_idsstring-condition-field
    Match carrier account IDs (carrier_id on assigned accounts).
  • carrier_accountsstring-condition-field
    Match carrier account IDs.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies. Same shape as automation rule schedule. Omitted = always.
  • lead_slaestimation-slarequired
    Lead-time SLA (EstimationSLA) — TIME_BASED or DAY_BASED.

Responses

200Service level rules created.Schema: service-level-rule-response
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent service-level ruleset.
  • namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • config_typestring
    SLA stage the rule applies to (ConfigType): fulfillment processing, shipping/collection, delivery attempt, or customer promise.
    Values:FULFILLMENTSHIPPINGDELIVERYPROMISED
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantsstring-condition-field
    Match shipment.merchant (StringCondition with operator and value).
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • delivery_typesstring-condition-field
    Match shipment.delivery_type.
  • order_typesstring-condition-field
    Match shipment.order_type.
  • carrier_idsstring-condition-field
    Match carrier account IDs (carrier_id on assigned accounts).
  • carrier_accountsstring-condition-field
    Match carrier account IDs.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies. Same shape as automation rule schedule. Omitted = always.
  • lead_slaestimation-sla
    Lead-time SLA (EstimationSLA) — TIME_BASED or DAY_BASED.

Need the full machine-readable spec? Download the OpenAPI document →

get/service-level-rulesets/{service-level-ruleset-id}/rules

List service level rules

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

List the rules in the specified service-level ruleset, ordered by their configured sequence.

Path parameters

NameTypeRequiredDescription
service-level-ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Matching service level rules.
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent service-level ruleset.
  • namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • config_typestring
    SLA stage the rule applies to (ConfigType): fulfillment processing, shipping/collection, delivery attempt, or customer promise.
    Values:FULFILLMENTSHIPPINGDELIVERYPROMISED
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantsstring-condition-field
    Match shipment.merchant (StringCondition with operator and value).
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • delivery_typesstring-condition-field
    Match shipment.delivery_type.
  • order_typesstring-condition-field
    Match shipment.order_type.
  • carrier_idsstring-condition-field
    Match carrier account IDs (carrier_id on assigned accounts).
  • carrier_accountsstring-condition-field
    Match carrier account IDs.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies. Same shape as automation rule schedule. Omitted = always.
  • lead_slaestimation-sla
    Lead-time SLA (EstimationSLA) — TIME_BASED or DAY_BASED.

Need the full machine-readable spec? Download the OpenAPI document →

patch/service-level-rulesets/{ruleset-id}/rules/sequences

Update service level sequence

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
ruleset-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: sequences-request
  • rule_idstring
  • sequencenumber

Responses

200Service level rules sequence updated.Schema: sequences-request
  • rule_idstring
  • sequencenumber

Need the full machine-readable spec? Download the OpenAPI document →

get/service-level-rulesets/{ruleset-id}/rules/{service-level-rule-id}

Get service level rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return a single service-level rule by its service-level-rule-id within the ruleset.

Path parameters

NameTypeRequiredDescription
ruleset-idstringYes
service-level-rule-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Returns the requested service level rule.Schema: service-level-rule-response
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent service-level ruleset.
  • namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • config_typestring
    SLA stage the rule applies to (ConfigType): fulfillment processing, shipping/collection, delivery attempt, or customer promise.
    Values:FULFILLMENTSHIPPINGDELIVERYPROMISED
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantsstring-condition-field
    Match shipment.merchant (StringCondition with operator and value).
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • delivery_typesstring-condition-field
    Match shipment.delivery_type.
  • order_typesstring-condition-field
    Match shipment.order_type.
  • carrier_idsstring-condition-field
    Match carrier account IDs (carrier_id on assigned accounts).
  • carrier_accountsstring-condition-field
    Match carrier account IDs.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies. Same shape as automation rule schedule. Omitted = always.
  • lead_slaestimation-sla
    Lead-time SLA (EstimationSLA) — TIME_BASED or DAY_BASED.

Need the full machine-readable spec? Download the OpenAPI document →

put/service-level-rulesets/{ruleset-id}/rules/{service-level-rule-id}

Update service level rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
ruleset-idstringYes
service-level-rule-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: service-level-rule-request
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent service-level ruleset.
  • namestringrequired
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceintegerrequired
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • config_typestringrequired
    SLA stage the rule applies to (ConfigType): fulfillment processing, shipping/collection, delivery attempt, or customer promise.
    Values:FULFILLMENTSHIPPINGDELIVERYPROMISED
  • statusstringrequired
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantsstring-condition-field
    Match shipment.merchant (StringCondition with operator and value).
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • delivery_typesstring-condition-field
    Match shipment.delivery_type.
  • order_typesstring-condition-field
    Match shipment.order_type.
  • carrier_idsstring-condition-field
    Match carrier account IDs (carrier_id on assigned accounts).
  • carrier_accountsstring-condition-field
    Match carrier account IDs.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies. Same shape as automation rule schedule. Omitted = always.
  • lead_slaestimation-slarequired
    Lead-time SLA (EstimationSLA) — TIME_BASED or DAY_BASED.

Responses

200Service level rule updated.Schema: service-level-rule-response
  • rule_idstring
    Server-assigned rule identifier. Provide on update; omit on create.
  • rule_set_idstring
    ID of the parent service-level ruleset.
  • namestring
    Human-readable name for the rule.
  • descriptionstring
    Optional notes about the rule.
  • sequenceinteger
    Rule evaluation order within the ruleset. Lower values evaluate first.
  • config_typestring
    SLA stage the rule applies to (ConfigType): fulfillment processing, shipping/collection, delivery attempt, or customer promise.
    Values:FULFILLMENTSHIPPINGDELIVERYPROMISED
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • merchantsstring-condition-field
    Match shipment.merchant (StringCondition with operator and value).
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • delivery_typesstring-condition-field
    Match shipment.delivery_type.
  • order_typesstring-condition-field
    Match shipment.order_type.
  • carrier_idsstring-condition-field
    Match carrier account IDs (carrier_id on assigned accounts).
  • carrier_accountsstring-condition-field
    Match carrier account IDs.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • scheduleschedule-dto
    When the rule applies. Same shape as automation rule schedule. Omitted = always.
  • lead_slaestimation-sla
    Lead-time SLA (EstimationSLA) — TIME_BASED or DAY_BASED.

Need the full machine-readable spec? Download the OpenAPI document →

delete/service-level-rulesets/{ruleset-id}/rules/{service-level-rule-id}

Delete service level rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Remove a single rule from its service-level ruleset. The rest of the ruleset is unchanged.

Path parameters

NameTypeRequiredDescription
ruleset-idstringYes
service-level-rule-idstringYes

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Service level rule deleted.

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

post/networks

Create carrier network

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: carrier-network-dtorequired
  • network_idstring
    Carriyo-issued identifier for the network. Server-assigned on create.
  • tenantstring
    Tenant identifier (set from the request tenant-id header).
  • namestring
    Human-readable name for the network.
  • network_v2country-states-v2[]
    Country / state / city / area entries that define the geographic scope of the network.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • carrier_account_idsstring[]
    Carrier account IDs assigned to this network.
  • statusstring
    Network status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Responses

201Created.Schema: carrier-network-dto
  • network_idstring
    Carriyo-issued identifier for the network. Server-assigned on create.
  • tenantstring
    Tenant identifier (set from the request tenant-id header).
  • namestring
    Human-readable name for the network.
  • network_v2country-states-v2[]
    Country / state / city / area entries that define the geographic scope of the network.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • carrier_account_idsstring[]
    Carrier account IDs assigned to this network.
  • statusstring
    Network status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

get/networks

List carrier networks

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return all carrier networks defined for the tenant.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Success.
  • network_idstring
    Carriyo-issued identifier for the network. Server-assigned on create.
  • tenantstring
    Tenant identifier (set from the request tenant-id header).
  • namestring
    Human-readable name for the network.
  • network_v2country-states-v2[]
    Country / state / city / area entries that define the geographic scope of the network.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • carrier_account_idsstring[]
    Carrier account IDs assigned to this network.
  • statusstring
    Network status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

get/networks/{id}

Get carrier network

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return a single carrier network by its id.

Path parameters

NameTypeRequiredDescription
idstringYesCarrier network identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Success.Schema: carrier-network-dto
  • network_idstring
    Carriyo-issued identifier for the network. Server-assigned on create.
  • tenantstring
    Tenant identifier (set from the request tenant-id header).
  • namestring
    Human-readable name for the network.
  • network_v2country-states-v2[]
    Country / state / city / area entries that define the geographic scope of the network.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • carrier_account_idsstring[]
    Carrier account IDs assigned to this network.
  • statusstring
    Network status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

post/networks/{id}/assign

Assign carriers to network

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
idstringYesCarrier network identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonrequired

Responses

200Success.Schema: carrier-network-dto
  • network_idstring
    Carriyo-issued identifier for the network. Server-assigned on create.
  • tenantstring
    Tenant identifier (set from the request tenant-id header).
  • namestring
    Human-readable name for the network.
  • network_v2country-states-v2[]
    Country / state / city / area entries that define the geographic scope of the network.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • carrier_account_idsstring[]
    Carrier account IDs assigned to this network.
  • statusstring
    Network status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need 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

post/costing-rules

Create costing profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Create a shipment costing profile and its rules. The body is a ShipmentCostingDto wrapper with costing_profile and costing_rules.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: shipment-costing-dtorequired
  • costing_profileshipment-costing-profile-dtorequired
    A shipment costing profile defines how carrier charges are computed for shipments routed through specific carrier accounts. The profile holds the default cost and breakdown; per-shipment rules can override the cost based on conditions.
  • costing_rulesshipment-costing-rule-dto[]required
    Full rule set for the profile (replaces existing rules on PUT).

Responses

201Created.Schema: shipment-costing-dto
  • costing_profileshipment-costing-profile-dtorequired
    A shipment costing profile defines how carrier charges are computed for shipments routed through specific carrier accounts. The profile holds the default cost and breakdown; per-shipment rules can override the cost based on conditions.
  • costing_rulesshipment-costing-rule-dto[]required
    Full rule set for the profile (replaces existing rules on PUT).

Need the full machine-readable spec? Download the OpenAPI document →

get/costing-rules

List costing profiles

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return all shipment costing profiles configured for the tenant.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Success.
  • profile_idstring
    Carriyo-issued identifier for the costing profile. Server-assigned on create.
  • profile_namestring
    Human-readable name for the profile.
  • carrier_billing_currencystring
    ISO 4217 currency code in which the carrier bills (e.g. USD, AED, EUR).
  • default_shipment_costnumber
    Default per-shipment cost in carrier_billing_currency. Used when no rule matches.
  • tax_ratenumber
    Tax rate (percentage, e.g. 5.0 for 5%) applied on top of the computed cost.
  • breakdownbreakdown-item[]
    Default cost breakdown lines (base fee, fuel surcharge, etc.).
  • carrier_account_idsstring[]
    Carrier account IDs to which this profile applies.
  • statusstring
    Profile status.
    Values:ACTIVEINACTIVEDELETED

Need the full machine-readable spec? Download the OpenAPI document →

get/costing-rules/{id}

Get costing profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return a single shipment costing profile by its id, including its costing rules.

Path parameters

NameTypeRequiredDescription
idstringYesCosting profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Success.Schema: shipment-costing-profile-dto
  • profile_idstring
    Carriyo-issued identifier for the costing profile. Server-assigned on create.
  • profile_namestring
    Human-readable name for the profile.
  • carrier_billing_currencystring
    ISO 4217 currency code in which the carrier bills (e.g. USD, AED, EUR).
  • default_shipment_costnumber
    Default per-shipment cost in carrier_billing_currency. Used when no rule matches.
  • tax_ratenumber
    Tax rate (percentage, e.g. 5.0 for 5%) applied on top of the computed cost.
  • breakdownbreakdown-item[]
    Default cost breakdown lines (base fee, fuel surcharge, etc.).
  • carrier_account_idsstring[]
    Carrier account IDs to which this profile applies.
  • statusstring
    Profile status.
    Values:ACTIVEINACTIVEDELETED

Need the full machine-readable spec? Download the OpenAPI document →

put/costing-rules/{id}

Update costing profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
idstringYesCosting profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: shipment-costing-dtorequired
  • costing_profileshipment-costing-profile-dtorequired
    A shipment costing profile defines how carrier charges are computed for shipments routed through specific carrier accounts. The profile holds the default cost and breakdown; per-shipment rules can override the cost based on conditions.
  • costing_rulesshipment-costing-rule-dto[]required
    Full rule set for the profile (replaces existing rules on PUT).

Responses

200Success.Schema: shipment-costing-dto
  • costing_profileshipment-costing-profile-dtorequired
    A shipment costing profile defines how carrier charges are computed for shipments routed through specific carrier accounts. The profile holds the default cost and breakdown; per-shipment rules can override the cost based on conditions.
  • costing_rulesshipment-costing-rule-dto[]required
    Full rule set for the profile (replaces existing rules on PUT).

Need the full machine-readable spec? Download the OpenAPI document →

delete/costing-rules/{id}

Delete costing profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Permanently delete the costing profile and its rules. Carrier accounts that were using this profile fall back to live rating where available.

Path parameters

NameTypeRequiredDescription
idstringYesCosting profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

204Deleted.

Need the full machine-readable spec? Download the OpenAPI document →

post/costing-rules/{profile_id}/rules

Add costing rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Add a new costing rule to an existing shipment costing profile.

Path parameters

NameTypeRequiredDescription
profile_idstringYesCosting profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: shipment-costing-rule-dtorequired
  • rule_idstring
    Carriyo-issued rule identifier.
  • costing_profile_idstring
    ID of the parent costing profile.
  • namestring
    Human-readable name for the rule.
  • entity_typestring
    Shipment entity type the rule applies to.
    Values:FORWARDREVERSECONSOLIDATED
  • sequenceinteger
    Rule evaluation order within the profile. Lower values evaluate first.
  • cost_structureshipment-cost-structure
    Per-rule cost model (ShipmentCostStructure) when the profile default does not apply.
  • cost_per_shipmentnumber
    Convenience override of just the per-shipment cost (in profile currency). When set together with cost_structure, the structure wins.
  • effective_datestringformat: date-time
    Date from which the rule is effective.
  • expiry_datestringformat: date-time
    Date after which the rule no longer applies.
  • scheduleschedule-dto
    Rule schedule (ScheduleDto). Used on automation rules, service-level rules, and costing rules. Empty or omitted working_days means the rule applies at any time.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • delivery_typestring-condition-field
    Match shipment delivery_type.
  • order_typestring-condition-field
    Match shipment order_type.
  • payment_typestring-condition-field
    Match shipment.payment.type.
  • dangerous_goodsstring
    Filter on shipment.items[].dangerous_goods. Values: ANY, ONLY, NONE.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Responses

201Created.Schema: shipment-costing-rule-dto
  • rule_idstring
    Carriyo-issued rule identifier.
  • costing_profile_idstring
    ID of the parent costing profile.
  • namestring
    Human-readable name for the rule.
  • entity_typestring
    Shipment entity type the rule applies to.
    Values:FORWARDREVERSECONSOLIDATED
  • sequenceinteger
    Rule evaluation order within the profile. Lower values evaluate first.
  • cost_structureshipment-cost-structure
    Per-rule cost model (ShipmentCostStructure) when the profile default does not apply.
  • cost_per_shipmentnumber
    Convenience override of just the per-shipment cost (in profile currency). When set together with cost_structure, the structure wins.
  • effective_datestringformat: date-time
    Date from which the rule is effective.
  • expiry_datestringformat: date-time
    Date after which the rule no longer applies.
  • scheduleschedule-dto
    Rule schedule (ScheduleDto). Used on automation rules, service-level rules, and costing rules. Empty or omitted working_days means the rule applies at any time.
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • delivery_typestring-condition-field
    Match shipment delivery_type.
  • order_typestring-condition-field
    Match shipment order_type.
  • payment_typestring-condition-field
    Match shipment.payment.type.
  • dangerous_goodsstring
    Filter on shipment.items[].dangerous_goods. Values: ANY, ONLY, NONE.
  • volumetric_weightnumber-area-condition-field
    Match shipment parcels volumetric weight.
  • gross_weightnumber-area-condition-field
    Match shipment parcels gross weight.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is AND-combined.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need 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

post/capacities

Create capacity profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: capacity-profile-requestrequired
  • capacity_profilecapacity-profile-dto
    A capacity profile groups capacity rules and applies them to one or more carrier accounts. DAILY capacity caps shipments per UTC day; IN_FLIGHT capacity caps shipments currently in the carrier network.
  • capacity_rulescapacity-rule-dto[]

Responses

201Created.Schema: capacity-profile-dto
  • profile_idstring
    Carriyo-issued identifier for the capacity profile. Server-assigned on create.
  • profile_namestring
    Human-readable name for the profile.
  • capacity_typestring
    Capacity-counting mode: DAILY resets at the configured daily start time; IN_FLIGHT counts shipments not yet delivered.
    Values:DAILYIN_FLIGHT
  • daily_capacity_start_timestring
    For DAILY profiles: HH:mm time at which the daily window resets (24-hour, UTC). Ignored for IN_FLIGHT.
  • carrier_account_idsstring[]
    Carrier account IDs that this profile applies to.
  • statusstring
    Profile status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

get/capacities

List capacity profiles

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return all capacity profiles configured for the tenant.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Success.
  • profile_idstring
    Carriyo-issued identifier for the capacity profile. Server-assigned on create.
  • profile_namestring
    Human-readable name for the profile.
  • capacity_typestring
    Capacity-counting mode: DAILY resets at the configured daily start time; IN_FLIGHT counts shipments not yet delivered.
    Values:DAILYIN_FLIGHT
  • daily_capacity_start_timestring
    For DAILY profiles: HH:mm time at which the daily window resets (24-hour, UTC). Ignored for IN_FLIGHT.
  • carrier_account_idsstring[]
    Carrier account IDs that this profile applies to.
  • statusstring
    Profile status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

get/capacities/{id}

Get capacity profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return a single capacity profile by its id, including its capacity rules.

Path parameters

NameTypeRequiredDescription
idstringYesCapacity profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Success.Schema: capacity-profile-dto
  • profile_idstring
    Carriyo-issued identifier for the capacity profile. Server-assigned on create.
  • profile_namestring
    Human-readable name for the profile.
  • capacity_typestring
    Capacity-counting mode: DAILY resets at the configured daily start time; IN_FLIGHT counts shipments not yet delivered.
    Values:DAILYIN_FLIGHT
  • daily_capacity_start_timestring
    For DAILY profiles: HH:mm time at which the daily window resets (24-hour, UTC). Ignored for IN_FLIGHT.
  • carrier_account_idsstring[]
    Carrier account IDs that this profile applies to.
  • statusstring
    Profile status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

put/capacities/{id}

Update capacity profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
idstringYesCapacity profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: capacity-profile-requestrequired
  • capacity_profilecapacity-profile-dto
    A capacity profile groups capacity rules and applies them to one or more carrier accounts. DAILY capacity caps shipments per UTC day; IN_FLIGHT capacity caps shipments currently in the carrier network.
  • capacity_rulescapacity-rule-dto[]

Responses

200Success.Schema: capacity-profile-dto
  • profile_idstring
    Carriyo-issued identifier for the capacity profile. Server-assigned on create.
  • profile_namestring
    Human-readable name for the profile.
  • capacity_typestring
    Capacity-counting mode: DAILY resets at the configured daily start time; IN_FLIGHT counts shipments not yet delivered.
    Values:DAILYIN_FLIGHT
  • daily_capacity_start_timestring
    For DAILY profiles: HH:mm time at which the daily window resets (24-hour, UTC). Ignored for IN_FLIGHT.
  • carrier_account_idsstring[]
    Carrier account IDs that this profile applies to.
  • statusstring
    Profile status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

patch/capacities/{id}

Patch capacity profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
idstringYesCapacity profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: capacity-profile-dtorequired
  • profile_idstring
    Carriyo-issued identifier for the capacity profile. Server-assigned on create.
  • profile_namestring
    Human-readable name for the profile.
  • capacity_typestring
    Capacity-counting mode: DAILY resets at the configured daily start time; IN_FLIGHT counts shipments not yet delivered.
    Values:DAILYIN_FLIGHT
  • daily_capacity_start_timestring
    For DAILY profiles: HH:mm time at which the daily window resets (24-hour, UTC). Ignored for IN_FLIGHT.
  • carrier_account_idsstring[]
    Carrier account IDs that this profile applies to.
  • statusstring
    Profile status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Responses

200Success.Schema: capacity-profile-dto
  • profile_idstring
    Carriyo-issued identifier for the capacity profile. Server-assigned on create.
  • profile_namestring
    Human-readable name for the profile.
  • capacity_typestring
    Capacity-counting mode: DAILY resets at the configured daily start time; IN_FLIGHT counts shipments not yet delivered.
    Values:DAILYIN_FLIGHT
  • daily_capacity_start_timestring
    For DAILY profiles: HH:mm time at which the daily window resets (24-hour, UTC). Ignored for IN_FLIGHT.
  • carrier_account_idsstring[]
    Carrier account IDs that this profile applies to.
  • statusstring
    Profile status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

delete/capacities/{id}

Delete capacity profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
idstringYesCapacity profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

204Deleted.

Need the full machine-readable spec? Download the OpenAPI document →

post/capacities/{id}/assign

Assign carrier accounts to capacity profile

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
idstringYesCapacity profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonrequired

Responses

200Success.Schema: capacity-profile-dto
  • profile_idstring
    Carriyo-issued identifier for the capacity profile. Server-assigned on create.
  • profile_namestring
    Human-readable name for the profile.
  • capacity_typestring
    Capacity-counting mode: DAILY resets at the configured daily start time; IN_FLIGHT counts shipments not yet delivered.
    Values:DAILYIN_FLIGHT
  • daily_capacity_start_timestring
    For DAILY profiles: HH:mm time at which the daily window resets (24-hour, UTC). Ignored for IN_FLIGHT.
  • carrier_account_idsstring[]
    Carrier account IDs that this profile applies to.
  • statusstring
    Profile status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).

Need the full machine-readable spec? Download the OpenAPI document →

post/capacities/{profile_id}/rules

Add capacity rule

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Add a new capacity rule to an existing capacity profile.

Path parameters

NameTypeRequiredDescription
profile_idstringYesCapacity profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: capacity-rule-dtorequired
  • capacity_idstring
    Carriyo-issued identifier for the capacity rule. Server-assigned on create.
  • capacity_profile_idstring
    ID of the parent capacity profile.
  • namestring
    Human-readable name for the rule.
  • entity_typestring
    Shipment entity type the rule applies to.
    Values:FORWARDREVERSECONSOLIDATED
  • sequenceinteger
    Rule evaluation order within the profile. Lower values evaluate first.
  • thresholdinteger
    Maximum number of shipments allowed under this rule before capacity is considered full.
  • daily_capacity_start_timestring
    Overrides the profile-level start time for this rule (HH:mm, UTC). Only meaningful when the parent profile is DAILY.
  • daysarray
    Days of the week when the rule applies.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • delivery_typestring-condition-field
    Match shipment delivery_type.
  • order_typestring-condition-field
    Match shipment order_type.
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is one custom-attribute condition; all entries are AND-combined.
  • special_start_datestringformat: date-time
    Optional special capacity window start (ISO 8601).
  • special_end_datestringformat: date-time
    Optional special capacity window end (ISO 8601).
  • creation_datestringformat: date-time
  • update_datestringformat: date-time

Responses

201Created.Schema: capacity-rule-dto
  • capacity_idstring
    Carriyo-issued identifier for the capacity rule. Server-assigned on create.
  • capacity_profile_idstring
    ID of the parent capacity profile.
  • namestring
    Human-readable name for the rule.
  • entity_typestring
    Shipment entity type the rule applies to.
    Values:FORWARDREVERSECONSOLIDATED
  • sequenceinteger
    Rule evaluation order within the profile. Lower values evaluate first.
  • thresholdinteger
    Maximum number of shipments allowed under this rule before capacity is considered full.
  • daily_capacity_start_timestring
    Overrides the profile-level start time for this rule (HH:mm, UTC). Only meaningful when the parent profile is DAILY.
  • daysarray
    Days of the week when the rule applies.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • delivery_typestring-condition-field
    Match shipment delivery_type.
  • order_typestring-condition-field
    Match shipment order_type.
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is one custom-attribute condition; all entries are AND-combined.
  • special_start_datestringformat: date-time
    Optional special capacity window start (ISO 8601).
  • special_end_datestringformat: date-time
    Optional special capacity window end (ISO 8601).
  • creation_datestringformat: date-time
  • update_datestringformat: date-time

Need the full machine-readable spec? Download the OpenAPI document →

get/capacities/{profile_id}/rules

List capacity rules

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

List the capacity rules in the specified capacity profile.

Path parameters

NameTypeRequiredDescription
profile_idstringYesCapacity profile ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Success.
  • capacity_idstring
    Carriyo-issued identifier for the capacity rule. Server-assigned on create.
  • capacity_profile_idstring
    ID of the parent capacity profile.
  • namestring
    Human-readable name for the rule.
  • entity_typestring
    Shipment entity type the rule applies to.
    Values:FORWARDREVERSECONSOLIDATED
  • sequenceinteger
    Rule evaluation order within the profile. Lower values evaluate first.
  • thresholdinteger
    Maximum number of shipments allowed under this rule before capacity is considered full.
  • daily_capacity_start_timestring
    Overrides the profile-level start time for this rule (HH:mm, UTC). Only meaningful when the parent profile is DAILY.
  • daysarray
    Days of the week when the rule applies.
  • statusstring
    Rule status.
    Values:ACTIVEINACTIVEDELETED
  • dropoff_v2geography-condition-field
    Match shipment dropoff country / state / city / area.
  • dropoff_partner_location_idsstring-condition-field
    Match shipment dropoff partner location IDs.
  • dropoff_postcodestring-condition-field
    Match shipment dropoff postcode.
  • pickup_v2geography-condition-field
    Match shipment pickup country / state / city / area.
  • pickup_partner_location_idsstring-condition-field
    Match shipment pickup partner location IDs.
  • pickup_postcodestring-condition-field
    Match shipment pickup postcode.
  • delivery_typestring-condition-field
    Match shipment delivery_type.
  • order_typestring-condition-field
    Match shipment order_type.
  • creation_source_typestring-condition-field
    Match shipment.creation_source.source_type.
  • update_source_typestring-condition-field
    Match shipment.update_source.source_type.
  • custom_conditions_v2custom-attributes-condition-field[]
    Match against shipment.custom_attributes. Each entry is one custom-attribute condition; all entries are AND-combined.
  • special_start_datestringformat: date-time
    Optional special capacity window start (ISO 8601).
  • special_end_datestringformat: date-time
    Optional special capacity window end (ISO 8601).
  • creation_datestringformat: date-time
  • update_datestringformat: date-time

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

post/document-settings

Create document setting

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: document-requestrequired
  • namestring
    Human-readable name for the document setting.
  • formatstring
    Output format of the rendered document.
    Values:PDFZPLJSONHTML
  • typestring
    Sub-type of the document (e.g. 4x6, A4, THERMAL).
  • shipment_typestring
    Shipment entity type the document applies to.
    Values:FORWARDREVERSECONSOLIDATED
  • document_typestring
    High-level document category.
    Values:LABELPACKING_LISTCOMMERCIAL_INVOICEMANIFESTRETURN_AUTHORIZATIONCUSTOM
  • entity_typestring
    Entity the document applies to (DocumentEntityType). Only SHIPMENT and RETURN_REQUEST are supported.
    Values:SHIPMENTRETURN_REQUEST
  • template_namestring
    Name of the rendering template stored in the document service.
  • assigned_documentsstring[]
    Identifiers of related document settings that should be rendered alongside this one.
  • quick_print_enabledboolean
    True to expose this document on the dashboard's quick-print menu.
  • uploaded_documentboolean
    True when the template was uploaded by the user rather than supplied by Carriyo.
  • statusstring
    Document setting status.
    Values:ACTIVEINACTIVEDELETED

Responses

201Created.Schema: document-settings
  • tenant_idstring
    Tenant identifier.
  • document_idstring
    Carriyo-issued identifier for the document setting.
  • namestring
    Human-readable name.
  • formatstring
    Output format.
    Values:PDFZPLJSONHTML
  • typestring
    Sub-type (e.g. 4x6, A4).
  • shipment_typestring
    Shipment entity type.
    Values:FORWARDREVERSECONSOLIDATED
  • document_typestring
    Document category.
    Values:LABELPACKING_LISTCOMMERCIAL_INVOICEMANIFESTRETURN_AUTHORIZATIONCUSTOM
  • entity_typestring
    Entity the document applies to (DocumentEntityType). Only SHIPMENT and RETURN_REQUEST are supported.
    Values:SHIPMENTRETURN_REQUEST
  • template_namestring
    Rendering template name.
  • assigned_documentsstring[]
    Identifiers of related document settings.
  • quick_print_enabledboolean
    True if exposed on the dashboard quick-print menu.
  • uploaded_documentboolean
    True if user-uploaded.
  • statusstring
    Document setting status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).
  • updated_by_userstring
    User identifier (typically email) of the last updater.

Need the full machine-readable spec? Download the OpenAPI document →

get/document-settings

List document settings

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Return all document settings configured for the tenant.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Success.
  • tenant_idstring
    Tenant identifier.
  • document_idstring
    Carriyo-issued identifier for the document setting.
  • namestring
    Human-readable name.
  • formatstring
    Output format.
    Values:PDFZPLJSONHTML
  • typestring
    Sub-type (e.g. 4x6, A4).
  • shipment_typestring
    Shipment entity type.
    Values:FORWARDREVERSECONSOLIDATED
  • document_typestring
    Document category.
    Values:LABELPACKING_LISTCOMMERCIAL_INVOICEMANIFESTRETURN_AUTHORIZATIONCUSTOM
  • entity_typestring
    Entity the document applies to (DocumentEntityType). Only SHIPMENT and RETURN_REQUEST are supported.
    Values:SHIPMENTRETURN_REQUEST
  • template_namestring
    Rendering template name.
  • assigned_documentsstring[]
    Identifiers of related document settings.
  • quick_print_enabledboolean
    True if exposed on the dashboard quick-print menu.
  • uploaded_documentboolean
    True if user-uploaded.
  • statusstring
    Document setting status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).
  • updated_by_userstring
    User identifier (typically email) of the last updater.

Need the full machine-readable spec? Download the OpenAPI document →

put/document-settings/{documentId}

Update document setting

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

Replace a document setting's configuration. The request body fully replaces the existing setting; fields you omit are reset to defaults.

Path parameters

NameTypeRequiredDescription
documentIdstringYesDocument setting ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: document-requestrequired
  • namestring
    Human-readable name for the document setting.
  • formatstring
    Output format of the rendered document.
    Values:PDFZPLJSONHTML
  • typestring
    Sub-type of the document (e.g. 4x6, A4, THERMAL).
  • shipment_typestring
    Shipment entity type the document applies to.
    Values:FORWARDREVERSECONSOLIDATED
  • document_typestring
    High-level document category.
    Values:LABELPACKING_LISTCOMMERCIAL_INVOICEMANIFESTRETURN_AUTHORIZATIONCUSTOM
  • entity_typestring
    Entity the document applies to (DocumentEntityType). Only SHIPMENT and RETURN_REQUEST are supported.
    Values:SHIPMENTRETURN_REQUEST
  • template_namestring
    Name of the rendering template stored in the document service.
  • assigned_documentsstring[]
    Identifiers of related document settings that should be rendered alongside this one.
  • quick_print_enabledboolean
    True to expose this document on the dashboard's quick-print menu.
  • uploaded_documentboolean
    True when the template was uploaded by the user rather than supplied by Carriyo.
  • statusstring
    Document setting status.
    Values:ACTIVEINACTIVEDELETED

Responses

200Success.Schema: document-settings
  • tenant_idstring
    Tenant identifier.
  • document_idstring
    Carriyo-issued identifier for the document setting.
  • namestring
    Human-readable name.
  • formatstring
    Output format.
    Values:PDFZPLJSONHTML
  • typestring
    Sub-type (e.g. 4x6, A4).
  • shipment_typestring
    Shipment entity type.
    Values:FORWARDREVERSECONSOLIDATED
  • document_typestring
    Document category.
    Values:LABELPACKING_LISTCOMMERCIAL_INVOICEMANIFESTRETURN_AUTHORIZATIONCUSTOM
  • entity_typestring
    Entity the document applies to (DocumentEntityType). Only SHIPMENT and RETURN_REQUEST are supported.
    Values:SHIPMENTRETURN_REQUEST
  • template_namestring
    Rendering template name.
  • assigned_documentsstring[]
    Identifiers of related document settings.
  • quick_print_enabledboolean
    True if exposed on the dashboard quick-print menu.
  • uploaded_documentboolean
    True if user-uploaded.
  • statusstring
    Document setting status.
    Values:ACTIVEINACTIVEDELETED
  • creation_datestringformat: date-time
    Creation timestamp (ISO 8601).
  • update_datestringformat: date-time
    Last update timestamp (ISO 8601).
  • updated_by_userstring
    User identifier (typically email) of the last updater.

Need the full machine-readable spec? Download the OpenAPI document →

delete/document-settings/{documentId}

Delete document setting

Setup endpoint
Manage this in the Carriyo Dashboard, not the API.

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

NameTypeRequiredDescription
documentIdstringYesDocument setting ID.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

204Deleted.

Need the full machine-readable spec? Download the OpenAPI document →