API reference › Quotes

GET/quotes/{id}

One of your quotes of this environment: its fixed prices, its label address and its state (active / expired / used, with the shipment)

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

Parameters

  • idpath · stringrequiredpattern ^qt_[0-9a-f]{32}$

Call it

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

Answers

200 The stored quote

Headers: X-Request-Id

application/json — StoredQuote

  • quoteIdstringrequiredpattern ^qt_[0-9a-f]{32}$

    Opaque and single use: nothing about the request is in it.

  • expiresAtstring (date-time)required
  • environmentstringrequired

    one of: sandbox · production

  • shipmentDirectionstringrequired

    one of: DOMESTIC · EU · INTERNATIONAL

  • currencystringrequired

    The payer's balance currency — the booking charges in it.

  • shipmentCountintegerrequired≥ 1
  • coverageobjectrequired
  • modestringrequired

    one of: none · auto

  • maxDeclaredValueobjectrequired

    The most one box may be declared at (IDR's conditions of postal services: 5000 RON).

  • amountnumberrequirednullable
  • amountMinorintegerrequirednullable

    The amount beside it in minor units (cents).

  • currencystringrequirednullable
  • dutiesobjectrequired

    ТЗ F12: never included in the price; on a route with an import they may be charged at destination to the recipient.

  • appliesbooleanrequired
  • payerstringrequirednullable

    one of: recipient · null

  • includedInPricebooleanrequired

    one of: false

  • notestringrequirednullable
  • packages[]array of objectrequired
  • packageNumberintegerrequired
  • contentValueobjectrequirednullable

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

    Same shape as packages[].contentValue above.

    Set by the booking's customs.commodities; a quote has none.

  • declaredValueobjectrequirednullable

    Same shape as packages[].contentValue above.

    The value declared for carriage — IDR's liability limit for the box, not an insurance contract.

  • specialGoods[]array of stringrequired
  • services[]array of objectrequired
  • serviceTypestringrequired
  • serviceNamestringrequirednullable

    IDS name, no carrier brand (ТЗ I3).

  • carrierCodestringrequired
  • serviceCodestringrequired
  • deliveryTypestringrequired

    one of: door

  • deliveryDatestringrequirednullable

    The carrier's local date and time of delivery (no offset), e.g. 2026-11-03T18:00:00.

  • deliveryDayOfWeekstringrequirednullable
  • transitDaysstringrequirednullable
  • transitBusinessDaysobjectrequirednullable
  • minintegerrequired
  • maxintegerrequired
  • estimatedPriceobjectrequired

    The FIXED price (API2): while the quote is valid, a booking from it with this service charges exactly total (amountMinor), whatever the carrier charges IDS at the booking. indicative is false.

  • netnumberrequired
  • vatnumberrequired
  • totalnumberrequired
  • currencystringrequired
  • netMinorintegerrequired

    The amount beside it in minor units (cents).

  • vatMinorintegerrequired

    The amount beside it in minor units (cents).

  • totalMinorintegerrequired

    The amount beside it in minor units (cents).

  • indicativebooleanrequired
  • amountMinorintegerrequired

    The amount beside it in minor units (cents).

  • coverageobjectrequirednullable

    What the declared value for carriage adds to the price (already inside estimatedPrice); null without a declared value.

  • priceobjectrequired

    net + vat = total exactly, in whole cents.

  • netnumberrequired
  • vatnumberrequired
  • totalnumberrequired
  • currencystringrequired
  • netMinorintegerrequired

    The amount beside it in minor units (cents).

  • vatMinorintegerrequired

    The amount beside it in minor units (cents).

  • totalMinorintegerrequired

    The amount beside it in minor units (cents).

  • weightobjectrequirednullable

    ТЗ B6 — the weights, never a rate: actual (Σ boxes), volumetric (IDS from your own dimensions with the divisor, each box to 0.1; null without dimensions), billable (what the carrier priced — it counts whole sides, so billable may be higher than volumetric for fractional sides; null when it did not say), basis, the volumetric divisor in cm³/kg derived from the carrier.

  • unitstringrequired

    one of: KG · LB

  • actualnumberrequired
  • volumetricnumberrequirednullable
  • billablenumberrequirednullable
  • basisstringrequirednullable

    one of: actual · volumetric · other · null

  • volumetricDivisorobjectrequirednullable
  • valuenumberrequired
  • unitstringrequired

    one of: cm3/kg

  • shipments[]array of objectrequired

    The plan (ТЗ I11): one entry per shipment the boxes go in, with its own price; a single shipment unless shipmentCount > 1.

  • packageNumbers[]array of integerrequired
  • estimatedPriceobjectrequired
  • netnumberrequired
  • vatnumberrequired
  • totalnumberrequired
  • currencystringrequired
  • netMinorintegerrequired

    The amount beside it in minor units (cents).

  • vatMinorintegerrequired

    The amount beside it in minor units (cents).

  • totalMinorintegerrequired

    The amount beside it in minor units (cents).

  • amountMinorintegerrequired

    The amount beside it in minor units (cents).

  • coverageobjectrequirednullable

    What the declared value for carriage adds to the price (already inside estimatedPrice); null without a declared value.

  • priceobjectrequired

    Same shape as services[].coverage.price above.

    net + vat = total exactly, in whole cents.

  • weightobjectrequirednullable

    Same shape as services[].weight above.

    ТЗ B6 — the weights, never a rate: actual (Σ boxes), volumetric (IDS from your own dimensions with the divisor, each box to 0.1; null without dimensions), billable (what the carrier priced — it counts whole sides, so billable may be higher than volumetric for fractional sides; null when it did not say), basis, the volumetric divisor in cm³/kg derived from the carrier.

  • unavailableServices[]array of objectrequired
  • serviceTypestringrequired
  • serviceCodestringrequired
  • carrierCodestringrequired
  • reasonstringrequired

    one of: NOT_AVAILABLE_FOR_EVERY_SHIPMENT

  • labelAddressesobjectrequired

    CTR (ТЗ B9): the shipper and the recipient as the label will print them.

  • shipperobjectrequired

    A party as the carrier's label prints it: Latin letters only (Cyrillic, Greek transliterated by named systems, diacritics dropped), the phone with +, the postal code in the country's form, the lengths the label prints (35 characters per line, at most 3 street lines). The original you sent is kept by IDS.

  • contactobjectrequirednullable

    null: no contact was sent with the quote, or an unused quote expired and its contacts were removed.

  • namestringrequired
  • companystringrequirednullable
  • phonestringrequired
  • emailstringrequirednullable
  • addressobjectrequired
  • streetLines[]array of stringrequireditems ≥ 1items ≤ 3
  • citystringrequired
  • stateCodestringrequirednullable
  • postalCodestringrequirednullable
  • countryCodestringrequiredlength 2–2
  • residentialbooleanrequirednullable
  • recipientobjectrequired

    A party as the carrier's label prints it: Latin letters only (Cyrillic, Greek transliterated by named systems, diacritics dropped), the phone with +, the postal code in the country's form, the lengths the label prints (35 characters per line, at most 3 street lines). The original you sent is kept by IDS.

  • contactobjectrequirednullable

    Same shape as labelAddresses.shipper.contact above.

    null: no contact was sent with the quote, or an unused quote expired and its contacts were removed.

  • addressobjectrequired

    Same shape as labelAddresses.shipper.address above.

  • returnOfobject

    RET: only a return quote (POST /shipments/{id}/return-quotes).

  • shipmentIdstring (uuid)required

    The original shipment.

  • masterTrackingNumberstringrequirednullable
  • reasonstringrequired

    one of: withdrawal · defect · damaged · not_delivered · other

  • reasonNotestringrequirednullable
  • returnToobjectrequired

    How the return address was chosen: your address or place, the return place of the original's pickup place, that place, or the original's shipper.

  • sourcestringrequired

    one of: request_address · request_place · original_return_place · original_place · original_shipper

  • placeExternalIdstringrequirednullable
  • pickupobjectrequired
  • statusstringrequired

    one of: available · unavailable · unknown

  • reasonstringrequirednullable

    one of: RESIDENTIAL_PICKUP_UNAVAILABLE · PICKUP_NOT_AVAILABLE · PICKUP_ADDRESS_REFUSED · CARRIER_DID_NOT_ANSWER · null

  • customsLinesintegerrequired≥ 0

    Across a border: how many customs lines its booking sends (0: documents, or one country).

  • statestringrequired

    one of: active · expired · used

  • usedAtstring (date-time)requirednullable
  • selectedServiceTypestringrequirednullable
  • shipmentIdstring (uuid)requirednullable
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.