API reference › Schemas

ReturnQuote

Fields

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

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

  • checksobjectrequired

    ТЗ B10: four separate checks — one passing never stands in for another; a timeout is «unknown», never «not served».

  • addressobjectrequired
  • shipperobjectrequired

    valid: the carrier confirmed it; corrected: it confirmed it in another spelling (suggested); invalid: it could not be found as written; unknown: the carrier could not confirm or deny it (country without street data, no answer, a timeout) — never a refusal of the route; not_checked: not requested (include: ["addressValidation"]).

  • statusstringrequired

    one of: valid · corrected · invalid · unknown · not_checked

  • reasons[]array of stringrequired
  • classificationstringrequirednullable

    one of: BUSINESS · RESIDENTIAL · MIXED · UNKNOWN · null

  • suggestedobjectrequirednullable

    The carrier's spelling of the address (corrected / valid).

  • streetLines[]array of stringrequired
  • citystringrequirednullable
  • stateOrProvinceCodestringrequirednullable
  • postalCodestringrequirednullable
  • countryCodestringrequired
  • recipientobjectrequired

    Same shape as checks.address.shipper above.

    valid: the carrier confirmed it; corrected: it confirmed it in another spelling (suggested); invalid: it could not be found as written; unknown: the carrier could not confirm or deny it (country without street data, no answer, a timeout) — never a refusal of the route; not_checked: not requested (include: ["addressValidation"]).

  • serviceobjectrequired
  • statusstringrequired

    one of: available · unavailable

  • reasonstringrequirednullable

    one of: CARRIER_NO_RATES · FREIGHT_ONLY · ROUTE_NOT_SERVED · NO_SERVICE_FOR_EVERY_SHIPMENT · COVERAGE_LIMIT_EXCEEDED · SPECIAL_GOODS_NOT_ALLOWED · DANGEROUS_GOODS_NOT_SUPPORTED · null

  • priceobjectrequired
  • statusstringrequired

    one of: priced · unavailable

  • reasonstringrequirednullable

    one of: CARRIER_NO_RATES · FREIGHT_ONLY · ROUTE_NOT_SERVED · NO_SERVICE_FOR_EVERY_SHIPMENT · COVERAGE_LIMIT_EXCEEDED · SPECIAL_GOODS_NOT_ALLOWED · DANGEROUS_GOODS_NOT_SUPPORTED · null

  • pickupobjectrequired

    Can the carrier collect at the shipper's address (include: ["pickupOptions"]); unknown when it did not answer — not a «no».

  • statusstringrequired

    one of: available · unavailable · unknown · not_checked

  • reasonstringrequirednullable

    one of: NOT_REQUESTED · PICKUP_CHECK_UNAVAILABLE · NO_PICKUP_FOR_ADDRESS · PICKUP_ADDRESS_REFUSED · null

  • datestringrequirednullable

    The day checked, YYYY-MM-DD.

  • addressValidationobject

    Only with include: ["addressValidation"] and an answer from the carrier (otherwise warning ADDRESS_VALIDATION_UNAVAILABLE). checks.address says the same in four states.

  • shipperobjectrequired
  • isValidbooleanrequired
  • isDeliverablebooleanrequired
  • classificationstringrequired
  • suggestedobject
  • streetLines[]array of stringrequired
  • citystringrequired
  • stateOrProvinceCodestringnullable
  • postalCodestringrequired
  • countryCodestringrequired
  • recipientobjectrequired

    Same shape as addressValidation.shipper above.

  • pickupOptionsobject

    Only with include: ["pickupOptions"] and an answer from the carrier.

  • datestringrequired
  • options[]array of objectrequired
  • carrierstringrequired
  • availablebooleanrequired
  • cutOffTimestring
  • readyTimeOptions[]array of string
  • latestTimeOptions[]array of string
  • defaultReadyTimestring
  • defaultLatestTimestring
  • warnings[]array of objectrequired
  • codestringrequired
  • messagestringrequired
  • pathstring

    The request field the warning is about (label address warnings).

  • handoverobjectrequired
  • pickupobjectrequired
  • statusstringrequired

    one of: available · unavailable · unknown

    May a courier collect it at the buyer's address (the carrier's answer)? unknown: the carrier did not answer in time.

  • reasonstringrequirednullable

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

  • days[]array of stringrequired

    YYYY-MM-DD the carrier offers a pickup there (available only).

  • dropOffobjectrequired
  • statusstringrequired

    one of: available

    A drop-off at a carrier point is always possible.

  • points[]array of objectrequirednullable

    With include ["dropOffPoints"]: up to 10 points within 25 km of the buyer (null when not asked); send dropOffNear (the buyer's coordinates) where the carrier does not geocode the address.

  • idstringrequired
  • namestringrequirednullable
  • typestringrequired
  • addressobjectrequired
  • lines[]array of stringrequired
  • citystringrequirednullable
  • stateCodestringrequirednullable
  • postalCodestringrequirednullable
  • countryCodestringrequirednullable
  • distanceobjectrequirednullable
  • valuenumberrequired
  • unitsstringrequired
  • hours[]array of objectrequired
  • daystringrequired
  • hoursstringrequired
  • lockerbooleanrequirednullable
  • pointsStatusstringrequirednullable

    one of: found · none · unknown · null

  • buyerNoticeobjectrequired

    ТЗ B5.1: show it unaltered, in the buyer's language, where the buyer sees or pays the return price — a separate service with its own price; a consumer's withdrawal never depends on it. Where the seller or you bear the return, tell the buyer it is free for them instead.

  • localestringrequired
  • textstringrequired