API reference › Quotes

GET/metadata

Enum reference (countries, currencies, services, label formats, parcel limits, …)

Key scope
quotes:write
Idempotency-Key
Not used
URL
https://ids.express/api/v1/metadata

Call it

curl -s "https://ids.express/api/v1/metadata" \
  -H "Authorization: Bearer $IDS_KEY"

Answers

200 Metadata

Headers: X-Request-Id

application/json — Metadata

  • countries[]array of objectrequired
  • codestringrequired
  • labelstringrequired
  • currencies[]array of objectrequired
  • codestringrequired
  • labelstringrequired
  • quantityUnits[]array of objectrequired
  • codestringrequired
  • labelstringrequired
  • shipmentPurposes[]array of objectrequired
  • codestringrequired
  • labelstringrequired
  • incoterms[]array of objectrequired
  • codestringrequired
  • labelstringrequired
  • signatureTypes[]array of objectrequired
  • codestringrequired
  • labelstringrequired
  • serviceTypes[]array of stringrequired
  • labelFormats[]array of stringrequired
  • labelSizes[]array of stringrequired
  • weightUnits[]array of stringrequired
  • dimUnits[]array of stringrequired
  • parcelLimitsobjectrequired
  • weightobjectrequired
  • KGnumberrequired
  • LBnumberrequired
  • lengthobjectrequired
  • CMnumberrequired
  • INnumberrequired
  • lengthPlusGirthobjectrequired
  • CMnumberrequired
  • INnumberrequired
  • shipmentLimitsobjectrequired
  • maxPackagesintegerrequired
  • maxPackageRowsintegerrequired
  • specialGoodsobjectrequired
  • allowable[]array of stringrequired
  • dangerous[]array of stringrequired
  • coverageModes[]array of stringrequired
  • locales[]array of stringrequired

    CTR: the languages of buyerMessage (the quote request's locale).

  • buyerDocuments[]array of objectrequired

    BOOK (a platform's key): the IDS documents its buyer accepts at checkout and their current versions — platform.buyerAcceptance names them.

  • typestringrequired

    one of: terms · postal_conditions · privacy

  • versionstringrequired
  • requiredbooleanrequired
  • urlstring (uri)required

    The PDF of this version at a permanent address: link it at checkout and attach it to the order confirmation (a link alone is not a durable medium).

  • testScenariosobjectrequired

    TST: the scenarios a test key on the simulated carrier may ask for (testScenario of a quote or a booking); steps — the carrier status codes of each step of a booking scenario, step 0 being the label.

  • quote[]array of objectrequired
  • namestringrequired

    one of: route_not_served · address_invalid · address_unknown · pickup_unavailable · residential_pickup_unavailable · slow · carrier_error · carrier_error_retryable

  • descriptionstringrequired
  • booking[]array of objectrequired
  • namestringrequired

    one of: delivered · delivery_attempt_failed · returned_to_sender · pickup_point · adjustment · lost · duplicate_scan · out_of_order · pickup_failed · pickup_timeout · pickup_retryable · pickup_missed · slow · carrier_error · carrier_error_retryable

  • descriptionstringrequired
  • steps[]array of stringrequired
401 AUTHENTICATION_FAILED — missing, malformed, invalid, revoked or expired key

Headers: X-Request-Id

Codes: AUTHENTICATION_FAILED

The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.

403 API_ACCESS_DISABLED / API_ACCOUNT_DISABLED / API_KEY_IP_NOT_ALLOWED / API_TERMS_NOT_ACCEPTED / FORBIDDEN_SCOPE / API_OWNER_NOT_BILLABLE; a platform's key: PLATFORM_SUSPENDED (a quote, booking or test operation of a suspended platform) / PLATFORM_TARIFF_MISSING (a quote or booking before IDS set its tariff)

Headers: X-Request-Id

Codes: API_ACCESS_DISABLEDAPI_ACCOUNT_DISABLEDAPI_KEY_IP_NOT_ALLOWEDAPI_TERMS_NOT_ACCEPTEDFORBIDDEN_SCOPEAPI_OWNER_NOT_BILLABLEPLATFORM_SUSPENDEDPLATFORM_TARIFF_MISSING

The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.

429 RATE_LIMITED — per-key or per-IP limit exceeded; wait Retry-After seconds

Headers: X-Request-IdRetry-After

Codes: RATE_LIMITED

The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.

500 INTERNAL_ERROR

Headers: X-Request-Id

Codes: INTERNAL_ERROR

The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.

503 API_DISABLED (API switched off); CARRIER_NOT_CONFIGURED / CURRENCY_RATE_MISSING where a carrier or FX rate is used

Headers: X-Request-Id

Codes: API_DISABLEDCARRIER_NOT_CONFIGUREDCURRENCY_RATE_MISSING

The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.

Error codes of this operation

The codes the answers of this operation name. Always read error.retryable of the answer itself — «varies» means it differs per answer. The gates of every keyed request (401, 403, 429, 503) and the whole catalog: errors.

  • AUTHENTICATION_FAILEDHTTP 401retryable: no

    Missing, malformed, invalid, revoked or expired key; an environment tag that does not match. (An account switched off answers 403 API_ACCOUNT_DISABLED since SEC.)

  • API_ACCESS_DISABLEDHTTP 403retryable: no

    API access is switched off for this account.

  • API_ACCOUNT_DISABLEDHTTP 403retryable: no

    The IDS account of this key is switched off, not approved or closed (for an employee's key: its franchise owner's account) — the key stops with it; contact IDS.

  • API_KEY_IP_NOT_ALLOWEDHTTP 403retryable: no

    IDS keeps a list of IP addresses for this key and the request came from another one — send it from a listed address, or ask IDS to change the list.

  • API_TERMS_NOT_ACCEPTEDHTTP 403retryable: no

    The IDS account of this key has not accepted the API Terms of Use (/legal/api-terms) — its holder accepts them in the IDS cabinet (Integrations / API), or IDS records a signed agreement (for an employee's key: its franchise owner's account). Retrying does not help until then.

  • FORBIDDEN_SCOPEHTTP 403retryable: no

    The key lacks the scope of this operation (x-scope).

  • API_OWNER_NOT_BILLABLEHTTP 403retryable: no

    The account cannot be billed through the API (no pricing tier, or an admin account).

  • PLATFORM_SUSPENDEDHTTP 403retryable: no

    The platform of this key is suspended by IDS: quotes, bookings and test operations are refused until IDS resumes it; reads, the tracking refresh, a cancellation and a complaint still work. A retry of a booking finished before the suspension replays its answer.

  • PLATFORM_TARIFF_MISSINGHTTP 403retryable: no

    The platform has no tariff yet — IDS sets it; no quote or booking until then.

  • RATE_LIMITEDHTTP 429retryable: yes

    A limit per minute — the key's requests, its quotes, its platform's keys together, or the client IP (limitScope) — wait Retry-After seconds (retryAfterSec, limit).

  • INTERNAL_ERRORHTTP 500retryable: no

    Unexpected — for a booking, check GET /shipments before using a new key; quote the requestId.

  • API_DISABLEDHTTP 503retryable: no

    IDS switched the whole API off (/ping and /openapi.json keep answering).

  • CARRIER_NOT_CONFIGUREDHTTP 503retryable: no

    The carrier credentials of this environment are missing.

  • CURRENCY_RATE_MISSINGHTTP 503retryable: no

    IDS has no exchange rate for the balance currency.