API reference › Platforms & people

GET/platform

A platform's own settings as IDS applies them: status, payment mode, invoice recipient, countries, coverage, quote validity, special goods

For a platform's service-account key: the platform the key acts for (never named in a request — IDS takes it from the key and prices every quote and booking by the platform's tariff; no request field changes it). No tariff figures. A key that belongs to no platform: 404.

Key scope
platform:read
Idempotency-Key
Not used
URL
https://ids.express/api/v1/platform

Call it

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

Answers

200 The platform

Headers: X-Request-Id

application/json — Platform

  • codestringrequired
  • namestringrequired
  • statusstringrequired

    one of: active · suspended

    suspended: reads work, every write answers 403 PLATFORM_SUSPENDED.

  • environmentstringrequired

    one of: sandbox · production

  • sameLegalEntitybooleanrequired
  • paymentModestringrequired

    one of: balance · platform_collected

    The mode this key books in: platform_collected — a booking carries platform.payment; balance — it carries none. A test key of a platform of IDR itself (sameLegalEntity) always answers platform_collected: it rehearses the only live path such a platform has. Its live key answers balance until IDS switches the platform over, and until then its live bookings answer 409 PLATFORM_PAYMENT_MODE_UNAVAILABLE.

  • invoiceRecipientstringrequired

    one of: delivery_customer · platform

    Who receives the delivery invoice of the platform's orders.

  • lifecycleEmailsbooleanrequired

    Whether IDS e-mails the platform's people about a shipment's life (off: the platform informs them).

  • tariffSetbooleanrequired

    false: IDS has not set the platform's tariff yet — quotes and bookings answer 403 PLATFORM_TARIFF_MISSING.

  • countriesobjectrequired

    ISO codes the platform may ship from / to; an empty list = every country where a service is available.

  • origin[]array of stringrequired
  • destination[]array of stringrequired
  • coverageobjectrequired

    auto: every quote and booking is covered (coverage "auto", each box's contentValue required).

  • autobooleanrequired
  • maxDeclaredValuePerBoxobjectrequired

    Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.

  • amountnumberrequirednullable
  • amountMinorintegerrequirednullable

    The amount beside it in minor units (cents).

  • currencystringrequirednullable
  • quoteValidityMinutesintegerrequired

    How long a quote of this platform stays valid.

  • specialGoodsAllowed[]array of stringrequired

    Special-goods categories the platform may ship (GET /metadata specialGoods.allowable); dangerous goods never.

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.

404 NOT_FOUND — not visible to this key (other account or other environment)

Headers: X-Request-Id

Codes: NOT_FOUND

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.

  • NOT_FOUNDHTTP 404retryable: no

    Unknown path, or an object this key may not see (another account, the other environment).

  • 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.