POST/shipments/{id}/returns
RET: book the return from its return quote — linked to the original, paid by the party you name. Requires Idempotency-Key.
Booked like POST /shipments (the same Idempotency-Key, operationRef, exact price of the quote, payment, recovery) as the carrier's return label, shipmentType return, return.of the original. payer — your decision, never IDS's: a platform paid on the platform names buyer or platform (platform.payment, exactly the quote's total) or seller (nothing is paid at booking: return.charge due, which you settle — POST /shipments/{id}/return-charge/settle); a platform or shop paying from its IDS balance is charged as for any booking (payer is recorded). handover pickup — a courier at the buyer's address on handover.date (refused with RETURN_PICKUP_UNAVAILABLE where the return quote said the carrier does not collect there); drop_off — the buyer hands it in at a carrier point (handover.dropOffPoint names the one shown). The label is in the answer (PDF or PNG — the buyer prints it) and, where IDS letters to your people are on (GET /platform), e-mailed to the buyer (shipper.contact.email). Then it is a shipment like any other: tracking, events (data.shipment.return), documents. Cancellation: an unused return label is never cancelled automatically — cancel it (POST /shipments/{id}/cancel) once the buyer will not use it. Before the carrier's pickup scan it is cancelled and refunded in full: to your balance, or, paid on the platform, recorded as owed to the buyer (refund_due — refund the original payment and confirm it); charged to the seller, its charge becomes void. After the scan nothing is refunded automatically: IDS reviews a cancel request (CXL).
- Key scope
shipments:write- Idempotency-Key
- Required — 1–255 characters, one per logical operation, reused on every retry (rules)
- URL
https://ids.express/api/v1/shipments/{id}/returns
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 — ReturnBookingRequest
quoteIdstringrequiredlength ≤ 100The return quote (POST /shipments/{id}/return-quotes) — its price is charged exactly.
selectedServiceTypestringrequiredlength ≤ 60payerstringone of: buyer · seller · platform · account
Who bears the return as you decide it: a platform names buyer (paid on the platform: platform.payment), seller (charged to the seller, settled by you: POST /shipments/{id}/return-charge/settle) or platform; an ordinary account: account (default). IDS never decides it. Your rules must respect the buyer's rights: a consumer who withdraws bears the direct cost of the return only if told so before the purchase (OUG 34/2014 art. 6 (1) i), 14 (2)); a consumer returning non-conforming goods for repair, replacement or termination bears no cost of carriage (Directive (EU) 2019/771 art. 14 (1) a), 16 (3) a); OUG 140/2021).
handoverobjectrequiredmethodstringrequiredone of: pickup · drop_off
pickup — a courier collects it at the buyer's address (where the carrier picks up there); drop_off — the buyer hands it in at a carrier point (required where no courier comes to a home address).
datestringpattern ^\d{4}-\d{2}-\d{2}$pickup: the day (today … +10 days, one of the return quote's handover.pickup.days).
readyTimestringpattern ^([01]\d|2[0-3]):[0-5]\d$pickup: from when the parcel is ready (the carrier reads it as local time at the buyer's address).
closeTimestringpattern ^([01]\d|2[0-3]):[0-5]\d$pickup: the latest time the courier may come (local time at the buyer's address).
instructionsstringlength ≤ 500pickup: for the courier.
dropOffPointobjectdrop_off: the point the buyer chose (from the return quote's handover.dropOff.points) — named in the label letter; any point of the carrier takes it.
idstringrequiredlength 1–60namestringlength ≤ 100line1stringlength ≤ 100citystringlength ≤ 100postalCodestringlength ≤ 20countryCodestringlength 2–2shipperobjectThe buyer's contact for the label, when the return quote had none (the address is the quote's).
contactobjectrequirednamestringrequiredlength 1–100companystringlength ≤ 100phonestringrequiredlength 1–20emailstring (email)length ≤ 255recipientobjectThe seller's contact for the label, when it differs from the quote's (the address is the quote's).
contactobjectrequiredSame shape as
shipper.contactabove.customsobjectAcross a border: the customs of what goes back. Default: the return quote's lines (the original's).
documentsOnlybooleancontentTypestringone of: ITEMS · DOCUMENTS
itemDescriptionstringlength ≤ 200dutiesPaymentstringone of: SENDER · RECIPIENT · THIRD_PARTY
incotermsstringone of: FCA · EXW · CIP · CPT · DAP · DAT · DDP
shipmentPurposestringone of: SOLD · NOT_SOLD · GIFT · SAMPLE · REPAIR_AND_RETURN · PERSONAL_EFFECTS
commodities[]array of objectitems ≤ 100descriptionstringrequiredlength 1–450quantityintegerrequired> 0≤ 99999quantityUnitsstringlength ≤ 10weightnumberrequired> 0≤ 1000weightUnitstringone of: KG · LB
customsValuenumberrequired> 0customsValueCurrencystringrequiredlength 3–3countryOfManufacturestringlength 2–2harmonizedCodestringlength ≤ 30referencesobjectcustomerReferencestringlength ≤ 40poNumberstringlength ≤ 40invoiceNumberstringlength ≤ 40platformobjectA platform's key only. The seller and the buyer are the original's.
orderRefstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$Default: the original's order.
shipmentRefstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$deliveryCustomerobjectpayer buyer, while IDS invoices the buyer: the delivery customer (default: the original's).
typestringrequiredone of: person · company
person: a private buyer; company: a buyer that is a company (its codes for the invoice).
namestringrequiredlength 1–200The person's full name or the company's legal name, as the invoice prints it.
vatNumberstringlength 2–32pattern ^[A-Za-z0-9][A-Za-z0-9 ./-]*$company only: its VAT code (e.g. RO12345678) when it has one.
registrationNumberstringlength 2–32pattern ^[A-Za-z0-9][A-Za-z0-9 ./-]*$company only: its registration number (e.g. J40/123/2020).
addressobjectrequiredThe delivery customer's address for the invoice (it may differ from the recipient's).
line1stringrequiredlength 1–100line2stringlength ≤ 100citystringrequiredlength 1–100stateCodestringlength ≤ 20postalCodestringlength ≤ 20countryCodestringrequiredpattern ^[A-Za-z]{2}$buyerAcceptanceobjectpayer buyer, while IDS invoices the buyer: the buyer's acceptance of IDS's documents for this return delivery.
documents[]array of objectrequireditems ≥ 1items ≤ 3terms and postal_conditions — accepted by the buyer, required, in their current versions; privacy — shown, optional.
typestringrequiredone of: terms · postal_conditions · privacy
versionstringrequiredlength 1–20The version shown to the buyer (GET /metadata buyerDocuments).
acceptedAtstring (date-time)requiredWhen the buyer ticked the box (ISO 8601 with an offset), before the payment: not in the future, at most 30 days ago, not after platform.payment.confirmedAt.
ipAddressstringlength ≤ 45Accepted but not stored by IDS — keep it in your own checkout record.
userAgentstringlength 1–500Accepted but not stored by IDS — keep it in your own checkout record.
paymentobjectA platform paid on the platform, payer buyer or platform: the payment for this return (exactly the return quote's total).
refstringrequiredlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$The platform's own id of the payment (e.g. its payment provider's payment id); one payment may cover several bookings of one order.
amountMinorintegerrequired> 0≤ 100000000The delivery amount of this booking in minor units (cents) — exactly the quote's total of the chosen service.
currencystringrequiredpattern ^[A-Za-z]{3}$The quote's currency.
confirmedAtstring (date-time)requiredWhen the platform's payment provider confirmed the payment (ISO 8601 with an offset).
operationRefstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$Your own reference of this booking operation (e.g. the order's delivery id), unique per account and environment: a lost answer is found by it (GET /shipments?operationRef=), and a second booking with it answers 409 OPERATION_REF_TAKEN instead of booking twice. Required for a booking paid on the platform.
localestringlength ≤ 35The language of the label letter to the buyer, where you allow IDS letters (en, ro, ru, uk, sr, hu, bg, el, zh).
labelFormatstringone of: PDF · PNG
The buyer prints the label: PDF (default) or PNG.
labelSizestringone of: PAPER_4X6 · PAPER_4X8 · PAPER_LETTER
testScenariostringone of: delivered · delivery_attempt_failed · returned_to_sender · pickup_point · adjustment · lost · duplicate_scan · out_of_order · pickup_failed · pickup_timeout · pickup_retryable · pickup_missed · slow · carrier_error · carrier_error_retryable
Call it
OPERATION_KEY=$(uuidgen 2>/dev/null || cat /proc/sys/kernel/random/uuid) # one per logical operation — keep it, reuse it on every retry
curl -s -X POST "https://ids.express/api/v1/shipments/$ID/returns" \
-H "Authorization: Bearer $IDS_KEY" \
-H "Idempotency-Key: $OPERATION_KEY" \
-H "Content-Type: application/json" \
-d '{
"quoteId": "<quoteId>",
"selectedServiceType": "<selectedServiceType>",
"handover": {}
}'Answers
201 The return booked — a Booking (shipmentType return, return block, the label inline); with FINALIZATION_PENDING a BookingPending
Headers: X-Request-Id
application/json — Booking or BookingPending
Booking
idstring (uuid)requiredstatusstringrequiredone of: draft · pending · confirmed · in_transit · delivered · cancelled · exception · failed
masterTrackingNumberstringrequirednullableenvironmentstringrequiredone of: sandbox · production
createdViastringrequirednullablecreatedAtstring (date-time)requirednullableserviceobjectrequiredtypestringrequirednullablenamestringrequirednullablecarrierCodestringrequirednullableserviceCodestringrequirednullableshipDatestringrequirednullableYYYY-MM-DD.
estimatedDeliveryDatestring (date-time)requirednullablepackages[]array of objectrequiredsequenceNumberintegerrequiredtrackingNumberstringrequirednullablelabelobjectrequirednullableformatstringrequiredencodedstringrequiredcontentValueobjectrequirednullableMoney: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullabledeclaredValueobjectrequirednullableSame shape as
packages[].contentValueabove.Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.
pickupobjectrequiredrequestedbooleanrequiredscheduledbooleanrequiredconfirmationCodestringrequirednullablestatusstringrequiredone of: scheduled · requested · failed · none
PCK: requested — IDS is asking, or will ask when the carrier books that day.
errorstringrequirednullableenvironmentstringrequiredone of: sandbox · production
statestringrequiredone of: label_created · pickup_requested · pickup_confirmed · pickup_not_assigned · picked_up · pickup_cancelled · dropped_off
label_created (no pickup asked), pickup_requested (IDS is asking, or will when the carrier books that day — not confirmed), pickup_confirmed, pickup_not_assigned (refused, no window, retries exhausted, the courier did not come), picked_up (the carrier's scan), pickup_cancelled, dropped_off.
readyAtstring (date-time)requirednullablerequestobjectrequirednullableidstring (uuid)requiredstatusstringrequiredone of: planned · requesting · confirmed · failed · outcome_unknown · missed · picked_up · cancelled · dropped_off
planned — IDS asks the carrier on bookAfter (the carrier books that day only later); requesting — being asked (or retried after a temporary failure); confirmed — the carrier's confirmationCode; failed — refused, no window, retries exhausted; outcome_unknown — the carrier's answer was lost (IDS checks before asking again); missed — confirmed, the courier did not come; picked_up; cancelled; dropped_off — the seller handed the parcels in (an exception IDS agreed).
scheduledBystringrequiredone of: ids · booking
ids — IDS scheduled it (a pickup place, or the booking's own window); booking — a pickup made with the booking before PCK.
carrierstringrequiredThe carrier's pickup code (FDXE; SIMULATED for a test key).
datestringrequiredYYYY-MM-DD, the pickup day in the place's time zone.
windowobjectrequirednullableThe window asked of the carrier: from readyTime (the parcels ready) to closeTime (the latest the courier may come); null — none found.
readyTimestringrequiredpattern ^\d{2}:\d{2}$HH:mm in the place's time zone.
closeTimestringrequiredpattern ^\d{2}:\d{2}$HH:mm in the place's time zone.
timezonestringrequiredbookAfterstring (date-time)requirednullableplanned only: when IDS asks the carrier (never shown as confirmed before).
confirmationCodestringrequirednullablerequestedAtstring (date-time)requirednullableconfirmedAtstring (date-time)requirednullablepickedUpAtstring (date-time)requirednullableshipmentCountintegerrequirednullable≥ 0Shipments waiting for this pickup (yours and the place's other ones of the day).
packageCountintegerrequired≥ 0attemptsintegerrequired≥ 0locationobjectrequirednullableexternalIdstringrequirednamestringrequiredalerts[]array of objectrequiredWhat the carrier said with its confirmation (e.g. PICKUP.SCHEDULE.LATE).
codestringrequiredalertTypestringrequiredmessagestringrequiredproblemobjectrequirednullableAn open problem IDS handles (refused, no_window, window_missed, outcome_unknown, booking_failed, carrier_alert, courier_missed).
kindstringrequiredopenedAtstring (date-time)requiredchargeobjectrequiredMoney: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullablequoteIdstringrequirednullablereferencesobjectrequiredcustomerReferencestringrequirednullablepoNumberstringrequirednullableinvoiceNumberstringrequirednullableplatformobjectrequirednullablePLT: the references the platform gave the booking (platform.orderRef, …); null for a shipment booked without a platform.
orderRefstringrequirednullableshipmentRefstringrequirednullablesellerExternalIdstringrequirednullablebuyerExternalIdstringrequirednullabledeliveryCustomerobjectrequirednullableBOOK: the delivery customer (the buyer who pays the delivery and gets IDR's delivery invoice) as the booking named them; null when none was sent.
typestringrequiredone of: person · company
namestringrequiredvatNumberstringrequirednullableregistrationNumberstringrequirednullableaddressobjectrequiredline1stringrequiredline2stringrequirednullablecitystringrequiredstateCodestringrequirednullablepostalCodestringrequirednullablecountryCodestringrequiredlength 2–2buyerAcceptanceobjectrequirednullableBOOK: which IDS documents the buyer accepted at checkout and when — kept with the shipment as evidence; null when none was sent.
documents[]array of objectrequiredtypestringrequiredone of: terms · postal_conditions · privacy
versionstringrequiredacceptedAtstring (date-time)requiredoperationRefstringrequirednullableBOOK: your operationRef of the booking (null without one).
shipmentGroupobjectrequirednullablenull for a shipment booked without an operationRef, a plan or a platform payment.
refstring (uuid)requiredThe booking operation's id: the same for every shipment of one plan (shipmentGroupRef).
indexintegerrequired≥ 1This shipment's place in the plan, 1-based.
countintegerrequired≥ 1paymentobjectrequiredmodestringrequiredone of: balance · test_wallet · platform_collected
balance — the account's balance (or deferred payment); test_wallet — a test key's play money; platform_collected — the payment the platform took from its buyer (no IDS balance is touched).
paidAtstring (date-time)requirednullableWhen the shipment was paid (the charge, the test wallet, or the platform's payment recorded); null while unpaid and for shipments booked before 31.10.2026. RET: a return charged to its seller (return.charge) — when IDS accepted it charged to the seller; nothing was paid then (return.charge.settledAt says when the platform settled it).
platformPaymentobjectrequirednullableplatform_collected only: the platform's payment of the booking operation.
refstringrequiredThe platform's own id of the payment, as sent.
amountnumberrequiredamountMinorintegerrequiredThe amount beside it in minor units (cents).
currencystringrequiredconfirmedAtstring (date-time)requiredWhen the platform's payment provider confirmed it (as sent).
recordedAtstring (date-time)requiredWhen IDS recorded it — with the booking, in the same transaction that made its shipments paid.
statusstringrequiredone of: collected · refund_due · refunded
collected — nothing refunded; refund_due — the platform owes its buyer a refund on this payment (GET /shipments/{id}/refunds, confirm it there); refunded — every refund owed is confirmed (refundedAmount says how much).
shipmentCountintegerrequiredHow many shipments of the operation it pays (a plan: several).
refundedAmountnumberrequiredCXL: what the platform confirmed it refunded on this payment (0 while nothing).
refundedAmountMinorintegerrequiredThe amount beside it in minor units (cents).
documents[]array of objectrequiredidstring (uuid)requiredtypestringrequiredfileNamestringrequiredcreatedAtstring (date-time)requiredalerts[]array of objectrequiredSame shape as
pickup.request.alertsabove.labelAddressesobjectrequiredThe shipper and the recipient exactly as the carrier got them and the label prints 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.shipmentTypestringrequiredone of: outbound · return
RET: return for a return shipment (POST /shipments/{id}/returns).
returnobjectrequirednullableRET: a return shipment's block (null otherwise).
ofobjectrequiredThe original shipment it returns.
idstring (uuid)requiredmasterTrackingNumberstringrequirednullablepayerstringrequiredone of: buyer · seller · platform · account
Who bears it as you named it (IDS never decides it).
reasonstringrequiredone of: withdrawal · defect · damaged · not_delivered · other
reasonNotestringrequirednullablehandoverstringrequiredone of: pickup · drop_off
dropOffPointobject (free-form)requirednullableThe point you named at booking (handover.dropOffPoint), as sent.
carrierReturnLabelbooleanrequiredBooked as the carrier's own return label (associated with the original).
customsReasonstringrequirednullableone of: REJECTED · FAULTY_ITEM · OTHER · null
Between two countries (with the customs lines — the carrier requires it): the return's reason as customs recognises it; null for a domestic return.
chargeobjectrequirednullablepayer seller of a platform paid on the platform: the charge you settle (POST /shipments/{id}/return-charge/settle); null for any other payer.
statusstringrequiredone of: due · settled · void
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullablesettledMethodstringrequirednullableone of: withheld · paid · null
settledReferencestringrequirednullablesettledAtstring (date-time)requirednullablevoidedAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredwarnings[]array of objectPICKUP_FAILED (pickup.required), label address warnings.
codestringrequiredmessagestringrequiredpathstringThe request field the warning is about (label address warnings).
BookingPending
idstring (uuid)requiredstatusstringrequiredone of: confirmed
warnings[]array of objectrequireditems ≥ 1codestringrequiredmessagestringrequiredpathstringThe request field the warning is about (label address warnings).
400 VALIDATION_FAILED — the body, payer (a platform names buyer, seller or platform; an account its own), handover, a quote that is not this shipment's return quote (path quoteId), platform.payment missing or not allowed for the payer, operationRef missing for a platform paid on the platform, the delivery customer or buyer acceptance missing while IDS invoices the buyer, a contact the label cannot print, customs.dutiesPayment (a return label names no duties payer)
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.
402 PAYMENT_REQUIRED / CREDIT_LIMIT_EXCEEDED / CREDIT_OVERDUE_BLOCKED / PAYMENT_FAILED (paid from the balance)
Headers: X-Request-Id
Codes: PAYMENT_REQUIREDCREDIT_LIMIT_EXCEEDEDCREDIT_OVERDUE_BLOCKEDPAYMENT_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_LIMIT_REACHED / IDEMPOTENCY_CONFLICT / IDEMPOTENCY_IN_PROGRESS / QUOTE_ALREADY_USED / OPERATION_REF_TAKEN
Headers: X-Request-Id
Codes: RETURN_ORIGINAL_CANCELLEDRETURN_LIMIT_REACHEDIDEMPOTENCY_CONFLICTIDEMPOTENCY_IN_PROGRESSQUOTE_ALREADY_USEDOPERATION_REF_TAKEN
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
410 QUOTE_EXPIRED — quote the return again
Headers: X-Request-Id
Codes: QUOTE_EXPIRED
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
422 RETURN_PICKUP_UNAVAILABLE (book it as drop_off) / RETURN_IMPORT_DUTIES_UNSET / QUOTE_MISMATCH / PLATFORM_PAYMENT_MISMATCH / CARRIER_ERROR
Headers: X-Request-Id
Codes: RETURN_PICKUP_UNAVAILABLERETURN_IMPORT_DUTIES_UNSETQUOTE_MISMATCHPLATFORM_PAYMENT_MISMATCHCARRIER_ERROR
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.)
PAYMENT_REQUIREDHTTP 402retryable: yesThe balance does not cover the price, or a pending debt exists (paymentRequired) — top up and retry the same key.
CREDIT_LIMIT_EXCEEDEDHTTP 402retryable: yesDeferred payment: the booking would pass the credit limit (creditLimit).
CREDIT_OVERDUE_BLOCKEDHTTP 402retryable: yesDeferred payment: overdue debt blocks new bookings (creditOverdue) — pay it and retry.
PAYMENT_FAILEDHTTP 402retryable: noCharging failed after the carrier booked; the label was cancelled or is held for IDS review.
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_LIMIT_REACHEDHTTP 409retryable: noThe original already has as many returns that are not cancelled as IDS allows (10) — cancel an unused one first.
IDEMPOTENCY_CONFLICTHTTP 409retryable: noThe Idempotency-Key was used for a different body, operation or environment.
IDEMPOTENCY_IN_PROGRESSHTTP 409retryable: yesThe first request with this Idempotency-Key is still running — retry the same key later.
The quote is single use: another booking used it (details.state booked, retryable false) or is using it now (booking_in_progress, retryable true).
The operationRef belongs to another booking (another Idempotency-Key) — answered before the quote is looked at: details.state booked (details.shipmentIds — do not book again), booking_in_progress (retryable true: ask again after Retry-After; no shipmentIds) or under_review (that booking stopped before it was finished and IDS reviews it — contact IDS; no shipmentIds). A booking undone after a part of it had been charged (those shipments cancelled and refunded) frees its operationRef. The same Idempotency-Key replays its own answer instead.
QUOTE_EXPIREDHTTP 410retryable: noThe quote expired (expiresAt) — request a new quote before the buyer pays.
The carrier does not collect at the buyer's address (details.reason, e.g. RESIDENTIAL_PICKUP_UNAVAILABLE: no courier at a home address) — book it with handover.method drop_off; the return quote lists points (include dropOffPoints). Nothing was booked.
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.
The booking asks for what the quote did not price (details[0].path) — get a new quote.
A booking paid on the platform: the payment sent (platform.payment) is not exactly the price of the quote booked — amountMinor and currency (details.expected / received). Nothing was booked; quote again before the buyer pays.
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).
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.