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 · stringrequiredShipment UUID or its master tracking number
Request body
Unknown fields are rejected (400 VALIDATION_FAILED, details[].path names the field).
application/json — ReturnQuoteRequest
payerstringone 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.
reasonstringrequiredone 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.
returnToobjectWhere 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.
contactobjectWith address: the seller's contact the label prints (name, phone).
namestringrequiredlength 1–100companystringlength ≤ 100phonestringrequiredlength 1–20emailstring (email)length ≤ 255addressobjectOr the address the return goes to.
line1stringrequiredlength 1–100line2stringlength ≤ 100citystringrequiredlength 1–100stateCodestringlength ≤ 20postalCodestringlength ≤ 20countryCodestringrequiredlength 2–2residentialbooleanshipperobjectThe 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.
contactobjectSame shape as
returnTo.contactabove.addressobjectrequiredSame shape as
returnTo.addressabove.packages[]array of objectitems ≥ 1items ≤ 40The boxes that go back (one shipment). Default: the original's boxes.
weightnumberrequired> 0≤ 1000weightUnitstringdefault KGone of: KG · LB
lengthnumber> 0≤ 1000widthnumber> 0≤ 1000heightnumber> 0≤ 1000dimUnitstringone of: CM · IN
declaredValueobjectamountnumberrequired≥ 0currencystringrequiredlength 3–3contentValueobjectamountnumberrequired≥ 0≤ 100000000currencystringrequiredlength 3–3specialGoodsobjectSpecial 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.
batteryobjectA 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).
typestringrequiredone 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).
installationstringrequiredone 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.
liquidbooleantrue: 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).
aerosolbooleantrue: the box holds an aerosol (spray can). Dangerous goods — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED).
perfumebooleantrue: 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.
serviceobjecttypestringlength ≤ 60packagingstringlength ≤ 60signaturestringone of: SERVICE_DEFAULT · DIRECT · ADULT
coveragestringone of: none · auto
customsobjectAcross a border: the customs lines of what goes back (a partial return). Default: the original's lines.
documentsOnlybooleancommodities[]array of objectitems ≥ 1items ≤ 100descriptionstringrequiredlength 1–450quantityintegerrequired> 0≤ 99999quantityUnitsstringlength ≤ 10weightnumberrequired> 0≤ 1000weightUnitstringone of: KG · LB
customsValuenumberrequired> 0customsValueCurrencystringrequiredlength 3–3countryOfManufacturestringlength 2–2harmonizedCodestringlength ≤ 30include[]array of stringitems ≤ 3dropOffNearobjectWith 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≤ 90longitudenumberrequired≥ -180≤ 180pickupobjectThe day from which a courier pickup at the buyer is checked (default today).
datestringrequiredpattern ^\d{4}-\d{2}-\d{2}$localestringlength ≤ 35The language of buyerNotice and details.buyerMessage (en, ro, ru, uk, sr, hu, bg, el, zh).
testScenariostringone 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)requiredenvironmentstringrequiredone of: sandbox · production
shipmentDirectionstringrequiredone of: DOMESTIC · EU · INTERNATIONAL
currencystringrequiredThe payer's balance currency — the booking charges in it.
shipmentCountintegerrequired≥ 1coverageobjectrequiredmodestringrequiredone of: none · auto
maxDeclaredValueobjectrequiredThe most one box may be declared at (IDR's conditions of postal services: 5000 RON).
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullabledutiesobjectrequiredТЗ F12: never included in the price; on a route with an import they may be charged at destination to the recipient.
appliesbooleanrequiredpayerstringrequirednullableone of: recipient · null
includedInPricebooleanrequiredone of: false
notestringrequirednullablepackages[]array of objectrequiredpackageNumberintegerrequiredcontentValueobjectrequirednullableMoney: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullablecustomsValueobjectrequirednullableSame shape as
packages[].contentValueabove.Set by the booking's customs.commodities; a quote has none.
declaredValueobjectrequirednullableSame shape as
packages[].contentValueabove.The value declared for carriage — IDR's liability limit for the box, not an insurance contract.
specialGoods[]array of stringrequiredservices[]array of objectrequiredserviceTypestringrequiredserviceNamestringrequirednullableIDS name, no carrier brand (ТЗ I3).
carrierCodestringrequiredserviceCodestringrequireddeliveryTypestringrequiredone of: door
deliveryDatestringrequirednullableThe carrier's local date and time of delivery (no offset), e.g. 2026-11-03T18:00:00.
deliveryDayOfWeekstringrequirednullabletransitDaysstringrequirednullabletransitBusinessDaysobjectrequirednullableminintegerrequiredmaxintegerrequiredestimatedPriceobjectrequiredThe 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.
netnumberrequiredvatnumberrequiredtotalnumberrequiredcurrencystringrequirednetMinorintegerrequiredThe amount beside it in minor units (cents).
vatMinorintegerrequiredThe amount beside it in minor units (cents).
totalMinorintegerrequiredThe amount beside it in minor units (cents).
indicativebooleanrequiredamountMinorintegerrequiredThe amount beside it in minor units (cents).
coverageobjectrequirednullableWhat the declared value for carriage adds to the price (already inside estimatedPrice); null without a declared value.
priceobjectrequirednet + vat = total exactly, in whole cents.
netnumberrequiredvatnumberrequiredtotalnumberrequiredcurrencystringrequirednetMinorintegerrequiredThe amount beside it in minor units (cents).
vatMinorintegerrequiredThe amount beside it in minor units (cents).
totalMinorintegerrequiredThe 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.
unitstringrequiredone of: KG · LB
actualnumberrequiredvolumetricnumberrequirednullablebillablenumberrequirednullablebasisstringrequirednullableone of: actual · volumetric · other · null
volumetricDivisorobjectrequirednullablevaluenumberrequiredunitstringrequiredone of: cm3/kg
shipments[]array of objectrequiredThe plan (ТЗ I11): one entry per shipment the boxes go in, with its own price; a single shipment unless shipmentCount > 1.
packageNumbers[]array of integerrequiredestimatedPriceobjectrequirednetnumberrequiredvatnumberrequiredtotalnumberrequiredcurrencystringrequirednetMinorintegerrequiredThe amount beside it in minor units (cents).
vatMinorintegerrequiredThe amount beside it in minor units (cents).
totalMinorintegerrequiredThe amount beside it in minor units (cents).
amountMinorintegerrequiredThe amount beside it in minor units (cents).
coverageobjectrequirednullableWhat the declared value for carriage adds to the price (already inside estimatedPrice); null without a declared value.
priceobjectrequiredSame shape as
services[].coverage.priceabove.net + vat = total exactly, in whole cents.
weightobjectrequirednullableSame shape as
services[].weightabove.ТЗ 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 objectrequiredserviceTypestringrequiredserviceCodestringrequiredcarrierCodestringrequiredreasonstringrequiredone of: NOT_AVAILABLE_FOR_EVERY_SHIPMENT
labelAddressesobjectrequiredCTR (ТЗ B9): the shipper and the recipient as the label will print them.
shipperobjectrequiredA 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.
contactobjectrequirednullablenull: no contact was sent with the quote, or an unused quote expired and its contacts were removed.
namestringrequiredcompanystringrequirednullablephonestringrequiredemailstringrequirednullableaddressobjectrequiredstreetLines[]array of stringrequireditems ≥ 1items ≤ 3citystringrequiredstateCodestringrequirednullablepostalCodestringrequirednullablecountryCodestringrequiredlength 2–2residentialbooleanrequirednullablerecipientobjectrequiredA 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.
contactobjectrequirednullableSame shape as
labelAddresses.shipper.contactabove.null: no contact was sent with the quote, or an unused quote expired and its contacts were removed.
addressobjectrequiredSame shape as
labelAddresses.shipper.addressabove.returnOfobjectrequiredshipmentIdstring (uuid)requiredThe original shipment.
masterTrackingNumberstringrequirednullablereasonstringrequiredone of: withdrawal · defect · damaged · not_delivered · other
reasonNotestringrequirednullablereturnToobjectrequiredHow 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.
sourcestringrequiredone of: request_address · request_place · original_return_place · original_place · original_shipper
placeExternalIdstringrequirednullablepickupobjectrequiredstatusstringrequiredone of: available · unavailable · unknown
reasonstringrequirednullableone of: RESIDENTIAL_PICKUP_UNAVAILABLE · PICKUP_NOT_AVAILABLE · PICKUP_ADDRESS_REFUSED · CARRIER_DID_NOT_ANSWER · null
customsLinesintegerrequired≥ 0Across 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».
addressobjectrequiredshipperobjectrequiredvalid: 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"]).
statusstringrequiredone of: valid · corrected · invalid · unknown · not_checked
reasons[]array of stringrequiredclassificationstringrequirednullableone of: BUSINESS · RESIDENTIAL · MIXED · UNKNOWN · null
suggestedobjectrequirednullableThe carrier's spelling of the address (corrected / valid).
streetLines[]array of stringrequiredcitystringrequirednullablestateOrProvinceCodestringrequirednullablepostalCodestringrequirednullablecountryCodestringrequiredrecipientobjectrequiredSame shape as
checks.address.shipperabove.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"]).
serviceobjectrequiredstatusstringrequiredone of: available · unavailable
reasonstringrequirednullableone 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
priceobjectrequiredstatusstringrequiredone of: priced · unavailable
reasonstringrequirednullableone 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
pickupobjectrequiredCan the carrier collect at the shipper's address (include: ["pickupOptions"]); unknown when it did not answer — not a «no».
statusstringrequiredone of: available · unavailable · unknown · not_checked
reasonstringrequirednullableone of: NOT_REQUESTED · PICKUP_CHECK_UNAVAILABLE · NO_PICKUP_FOR_ADDRESS · PICKUP_ADDRESS_REFUSED · null
datestringrequirednullableThe day checked, YYYY-MM-DD.
addressValidationobjectOnly with include: ["addressValidation"] and an answer from the carrier (otherwise warning ADDRESS_VALIDATION_UNAVAILABLE). checks.address says the same in four states.
shipperobjectrequiredisValidbooleanrequiredisDeliverablebooleanrequiredclassificationstringrequiredsuggestedobjectstreetLines[]array of stringrequiredcitystringrequiredstateOrProvinceCodestringnullablepostalCodestringrequiredcountryCodestringrequiredrecipientobjectrequiredSame shape as
addressValidation.shipperabove.pickupOptionsobjectOnly with include: ["pickupOptions"] and an answer from the carrier.
datestringrequiredoptions[]array of objectrequiredcarrierstringrequiredavailablebooleanrequiredcutOffTimestringreadyTimeOptions[]array of stringlatestTimeOptions[]array of stringdefaultReadyTimestringdefaultLatestTimestringwarnings[]array of objectrequiredcodestringrequiredmessagestringrequiredpathstringThe request field the warning is about (label address warnings).
handoverobjectrequiredpickupobjectrequiredstatusstringrequiredone 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.
reasonstringrequirednullableone of: RESIDENTIAL_PICKUP_UNAVAILABLE · PICKUP_NOT_AVAILABLE · PICKUP_ADDRESS_REFUSED · CARRIER_DID_NOT_ANSWER · null
days[]array of stringrequiredYYYY-MM-DD the carrier offers a pickup there (available only).
dropOffobjectrequiredstatusstringrequiredone of: available
A drop-off at a carrier point is always possible.
points[]array of objectrequirednullableWith 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.
idstringrequirednamestringrequirednullabletypestringrequiredaddressobjectrequiredlines[]array of stringrequiredcitystringrequirednullablestateCodestringrequirednullablepostalCodestringrequirednullablecountryCodestringrequirednullabledistanceobjectrequirednullablevaluenumberrequiredunitsstringrequiredhours[]array of objectrequireddaystringrequiredhoursstringrequiredlockerbooleanrequirednullablepointsStatusstringrequirednullableone 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.
localestringrequiredtextstringrequired
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)
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.
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: noMissing, 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: noAPI access is switched off for this account.
API_ACCOUNT_DISABLEDHTTP 403retryable: noThe 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: noIDS 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: noThe 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: noThe key lacks the scope of this operation (x-scope).
API_OWNER_NOT_BILLABLEHTTP 403retryable: noThe account cannot be billed through the API (no pricing tier, or an admin account).
PLATFORM_SUSPENDEDHTTP 403retryable: noThe 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: noThe platform has no tariff yet — IDS sets it; no quote or booking until then.
NOT_FOUNDHTTP 404retryable: noUnknown path, or an object this key may not see (another account, the other environment).
RETURN_ORIGINAL_CANCELLEDHTTP 409retryable: noThe original shipment was cancelled — there is nothing to return.
RETURN_ORIGINAL_NOT_SHIPPEDHTTP 409retryable: noThe original shipment is not booked and paid yet — a return is for a shipment that was sent.
RETURN_LIMIT_REACHEDHTTP 409retryable: noThe original already has as many returns that are not cancelled as IDS allows (10) — cancel an unused one first.
RETURN_OF_RETURNHTTP 422retryable: noThe shipment named is itself a return — book the return of its original shipment.
returnTo.locationExternalId is not one of your pickup places in this environment — PUT /pickup-locations/{externalId} first, or send an address.
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: noA 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.
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.
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).
A box is over the parcel limits — freight, not sold online (details).
RATE_LIMITEDHTTP 429retryable: yesA 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: noUnexpected — for a booking, check GET /shipments before using a new key; quote the requestId.
API_DISABLEDHTTP 503retryable: noIDS switched the whole API off (/ping and /openapi.json keep answering).
CARRIER_NOT_CONFIGUREDHTTP 503retryable: noThe carrier credentials of this environment are missing.
CURRENCY_RATE_MISSINGHTTP 503retryable: noIDS has no exchange rate for the balance currency.