API reference › Returns

POST/shipments/{id}/return-quotes

RET: the exact price of a return of this shipment — its own price, never the outbound's

A return goes from the buyer (default: the original's recipient) back to the seller's return address (default: the return place of the original's pickup place — PUT /pickup-locations returns —, else that place, else the original's shipper; or returnTo). It is rated as the carrier's own return label (FedEx: a printed return label associated with the original's tracking number), so its price includes the carrier's return-label charge and is fixed like any quote (single use, expiresAt). Across a border it carries the customs lines of what goes back (default: the original's) and the customs reason of the return (reason withdrawal → REJECTED, defect → FAULTY_ITEM, else OTHER); duties and taxes at import are never included and never promised back (duties): FedEx bills a return label's import duties and taxes to the account that books it — IDS's (it takes no other payer; customs.dutiesPayment on the booking → 400), so a return across the EU's customs border answers 422 RETURN_IMPORT_DUTIES_UNSET until IDS sets who bears them (returns within the EU are not affected); relief or repayment of duties (returned goods, rejected goods) is claimed by the importer through its customs broker — IDS does not apply for it or guarantee it. handover.pickup says whether a courier can collect it at the buyer's address (the carrier's answer for a home address — the buyer's address counts as a home unless shipper.address.residential is false; where the carrier does not collect at homes the parcel is handed in at a carrier point); reasonNote is printed with the label in Latin (another script → 400 LATIN_SPELLING_REQUIRED); include ["dropOffPoints"] lists points near the buyer. buyerNotice is the sentence to show the buyer next to the price. The original must be yours, of this environment, booked and paid, not cancelled and not a return itself; at most 10 live returns per original. Needs quotes:write and shipments:read (the answer carries the original's buyer as the label prints it).

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

Parameters

  • idpath · stringrequired

    Shipment UUID or its master tracking number

Request body

Unknown fields are rejected (400 VALIDATION_FAILED, details[].path names the field).

application/json — ReturnQuoteRequest

  • payerstring

    one of: buyer · seller · platform

    Who will pay the return, when you know it already (INV). A platform IDS invoices to its buyers: the price carries the VAT of the buyer's VAT scenario only when the buyer pays; seller or platform — the route's VAT rule. Named here, the booking must name the same payer (else 422 QUOTE_MISMATCH); not named — priced as paid by the buyer.

  • reasonstringrequired

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

    Why the parcel goes back — the scenarios are kept apart: withdrawal (a withdrawal from the purchase, no defect), defect (a defect of the goods), damaged (damaged in carriage), not_delivered (the buyer did not receive it), other (with reasonNote). It sets the carrier's return reason and, across a border, the customs reason; it never decides who pays.

  • reasonNotestringlength 1–200pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029<>]+$

    A short description (required with reason other); printed in the carrier's return reference.

  • returnToobject

    Where it goes. Default: the return place of the original's pickup place (PUT /pickup-locations returns), else that place, else the original's shipper.

  • locationExternalIdstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$

    One of your pickup places (PUT /pickup-locations/{externalId}) — the return goes to its address.

  • contactobject

    With address: the seller's contact the label prints (name, phone).

  • namestringrequiredlength 1–100
  • companystringlength ≤ 100
  • phonestringrequiredlength 1–20
  • emailstring (email)length ≤ 255
  • addressobject

    Or the address the return goes to.

  • line1stringrequiredlength 1–100
  • line2stringlength ≤ 100
  • citystringrequiredlength 1–100
  • stateCodestringlength ≤ 20
  • postalCodestringlength ≤ 20
  • countryCodestringrequiredlength 2–2
  • residentialboolean
  • shipperobject

    The buyer the return comes from. Default: the original's recipient (as the carrier got it). Whether a courier can collect there is judged as for a home address (the carrier may not pick up at homes) unless shipper.address.residential is false.

  • contactobject

    Same shape as returnTo.contact above.

  • addressobjectrequired

    Same shape as returnTo.address above.

  • packages[]array of objectitems ≥ 1items ≤ 40

    The boxes that go back (one shipment). Default: the original's boxes.

  • weightnumberrequired> 0≤ 1000
  • weightUnitstringdefault KG

    one of: KG · LB

  • lengthnumber> 0≤ 1000
  • widthnumber> 0≤ 1000
  • heightnumber> 0≤ 1000
  • dimUnitstring

    one of: CM · IN

  • declaredValueobject
  • amountnumberrequired≥ 0
  • currencystringrequiredlength 3–3
  • contentValueobject
  • amountnumberrequired≥ 0≤ 100000000
  • currencystringrequiredlength 3–3
  • specialGoodsobject

    Special goods in this box, declared from the items packed in it (the seller classifies each item by its manufacturer's documents: the safety data sheet; for a battery, its UN 38.3 test summary and its marking). Absent: ordinary goods. Nothing is allowed by default: a declared category the account may not ship — an allowable one IDS did not allow, or any other dangerous goods (all except a lithium battery in or with its device) — answers 422 PRICING_UNAVAILABLE with details.reason SPECIAL_GOODS_NOT_ALLOWED or DANGEROUS_GOODS_NOT_SUPPORTED and the refused boxes. Categories: GET /metadata specialGoods; a platform's allowed ones: GET /platform specialGoodsAllowed.

  • batteryobject

    A battery in the box. Category lithium_<type>_<installation> or non_lithium_battery (installation is not considered for non_lithium). Lithium batteries in or with equipment are dangerous goods carried, within the carrier's limits, under a reduced regime: IDS books them, and non_lithium, only for an account it allowed the category (GET /platform specialGoodsAllowed for a platform) — a lithium one is then declared to the carrier with the quote and the booking. Lithium batteries alone are refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED).

  • typestringrequired

    one of: lithium_ion · lithium_metal · non_lithium

    lithium_ion: lithium-ion or lithium-polymer cells (rechargeable LIR coin cells included); lithium_metal: lithium-metal or lithium-alloy cells, mostly non-rechargeable (CR coin cells included); non_lithium: a dry alkaline, zinc-carbon, NiMH or NiCd battery. Lead-acid (spillable or not), sodium-ion and other wet batteries are dangerous goods: declare their unNumber (refused).

  • installationstringrequired

    one of: in_equipment · with_equipment · alone

    in_equipment: installed in the device; with_equipment: packed in the same box as the device it powers; alone: batteries without the device. A power bank is always alone, even in the same box as a device.

  • liquidboolean

    true: the box holds a liquid that is not dangerous goods (its safety data sheet names no UN number). Category liquid — booked only for an account IDS allowed it; nothing is sent to the carrier. A flammable or otherwise dangerous liquid is not a liquid here: declare it by hazardClass or unNumber (refused).

  • aerosolboolean

    true: the box holds an aerosol (spray can). Dangerous goods — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED).

  • perfumeboolean

    true: the box holds perfume, eau de toilette or another fragrance. IDS treats them as dangerous goods (most are flammable liquids, UN 1266) — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED).

  • hazardClassstringpattern ^[1-9](\.[1-6])?$

    The UN hazard class the item's documents name (3, 2.1, 8, …). Any value makes the box dangerous goods — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED). A lithium battery in or with its device is declared by battery, not here.

  • unNumberstringpattern ^UN\d{4}$

    The UN number the item's documents name (UN1266, UN1993, …). Any value makes the box dangerous goods — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED). A lithium battery in or with its device is declared by battery, not here.

  • serviceobject
  • typestringlength ≤ 60
  • packagingstringlength ≤ 60
  • signaturestring

    one of: SERVICE_DEFAULT · DIRECT · ADULT

  • coveragestring

    one of: none · auto

  • customsobject

    Across a border: the customs lines of what goes back (a partial return). Default: the original's lines.

  • documentsOnlyboolean
  • commodities[]array of objectitems ≥ 1items ≤ 100
  • descriptionstringrequiredlength 1–450
  • quantityintegerrequired> 0≤ 99999
  • quantityUnitsstringlength ≤ 10
  • weightnumberrequired> 0≤ 1000
  • weightUnitstring

    one of: KG · LB

  • customsValuenumberrequired> 0
  • customsValueCurrencystringrequiredlength 3–3
  • countryOfManufacturestringlength 2–2
  • harmonizedCodestringlength ≤ 30
  • include[]array of stringitems ≤ 3
  • dropOffNearobject

    With include dropOffPoints: the buyer's coordinates, when you have them — the carrier's point search by coordinates (FedEx does not geocode every country's street addresses, e.g. Romania's; without them the search is by the address).

  • latitudenumberrequired≥ -90≤ 90
  • longitudenumberrequired≥ -180≤ 180
  • pickupobject

    The day from which a courier pickup at the buyer is checked (default today).

  • datestringrequiredpattern ^\d{4}-\d{2}-\d{2}$
  • localestringlength ≤ 35

    The language of buyerNotice and details.buyerMessage (en, ro, ru, uk, sr, hu, bg, el, zh).

  • testScenariostring

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

    Test keys on the simulated carrier only (GET /metadata testScenarios.quote).

Call it

curl -s -X POST "https://ids.express/api/v1/shipments/$ID/return-quotes" \
  -H "Authorization: Bearer $IDS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "withdrawal"
}'

Answers

200 The return quote

Headers: X-Request-Id

application/json — ReturnQuote

  • 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
400 VALIDATION_FAILED — the body, reasonNote missing for reason other, boxes that are not one shipment, a return across a border without customs lines, an address the label cannot print

Headers: X-Request-Id

Codes: VALIDATION_FAILED

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

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.

409 RETURN_ORIGINAL_CANCELLED / RETURN_ORIGINAL_NOT_SHIPPED / RETURN_LIMIT_REACHED

Headers: X-Request-Id

Codes: RETURN_ORIGINAL_CANCELLEDRETURN_ORIGINAL_NOT_SHIPPEDRETURN_LIMIT_REACHED

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

422 RETURN_OF_RETURN / RETURN_PLACE_NOT_FOUND / RETURN_PLACE_UNAVAILABLE / RETURN_IMPORT_DUTIES_UNSET / PRICING_UNAVAILABLE (with details.buyerMessage, as on POST /quotes) / CARRIER_ERROR / PACKAGE_EXCEEDS_PARCEL_LIMITS

Headers: X-Request-Id

Codes: RETURN_OF_RETURNRETURN_PLACE_NOT_FOUNDRETURN_PLACE_UNAVAILABLERETURN_IMPORT_DUTIES_UNSETPRICING_UNAVAILABLECARRIER_ERRORPACKAGE_EXCEEDS_PARCEL_LIMITS

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.

  • VALIDATION_FAILEDHTTP 400retryable: nodetails: ValidationIssuesdetails: ServiceRefusal

    The request is invalid: a field (details[].path), an unknown field, a missing Idempotency-Key, a body that is not JSON, an address the label cannot print. Fix it; repeating it unchanged fails again.

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

  • RETURN_ORIGINAL_CANCELLEDHTTP 409retryable: no

    The original shipment was cancelled — there is nothing to return.

  • RETURN_ORIGINAL_NOT_SHIPPEDHTTP 409retryable: no

    The original shipment is not booked and paid yet — a return is for a shipment that was sent.

  • RETURN_LIMIT_REACHEDHTTP 409retryable: no

    The original already has as many returns that are not cancelled as IDS allows (10) — cancel an unused one first.

  • RETURN_OF_RETURNHTTP 422retryable: no

    The shipment named is itself a return — book the return of its original shipment.

  • RETURN_PLACE_NOT_FOUNDHTTP 422retryable: nodetails: ValidationIssues

    returnTo.locationExternalId is not one of your pickup places in this environment — PUT /pickup-locations/{externalId} first, or send an address.

  • RETURN_PLACE_UNAVAILABLEHTTP 422retryable: nodetails: ValidationIssues

    The return place (yours, or the return place of the original's pickup place) is switched off or suspended — name another place or an address (returnTo).

  • RETURN_IMPORT_DUTIES_UNSETHTTP 422retryable: no

    A return across the EU's customs border (a buyer outside the EU, or a seller outside it) is not offered yet: the carrier bills a return label's import duties and taxes to IDS's account, and IDS has not set who bears them. Returns within the EU are not affected — contact IDS.

  • PRICING_UNAVAILABLEHTTP 422retryable: nodetails: PricingUnavailableDetails

    No delivery can be offered for this item to this address (details.reason; on a quote also details.buyerMessage and the four checks) — a stable reason, not a timeout.

  • CARRIER_ERRORHTTP 422retryable: variesdetails: CarrierErrorDetails

    The carrier refused or failed the request. retryable true: it throttled, failed or did not answer — the route's availability is unknown, try later; false: it refused this request — or, on a booking, the carrier may have made the label without answering (the Idempotency-Key and the operationRef are closed, IDS reviews it: look the booking up with GET /shipments?operationRef= before booking again).

  • PACKAGE_EXCEEDS_PARCEL_LIMITSHTTP 422retryable: nodetails: ParcelLimitDetails

    A box is over the parcel limits — freight, not sold online (details).

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