API reference › Bookings & shipments
POST/shipments
Book a shipment (from a quoteId or inline). Requires Idempotency-Key.
- 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
Request body
Unknown fields are rejected (400 VALIDATION_FAILED, details[].path names the field).
application/json — ShipmentRequest
quoteIdstringlength ≤ 8000selectedServiceTypestringlength ≤ 60shipperobjectcontactobjectrequirednamestringrequiredlength 1–100companystringlength ≤ 100phonestringrequiredlength 1–20emailstring (email)length ≤ 255addressobjectrequiredline1stringrequiredlength 1–100line2stringlength ≤ 100citystringrequiredlength 1–100stateCodestringlength ≤ 20postalCodestringlength ≤ 20countryCodestringrequiredlength 2–2residentialbooleanrecipientobjectcontactobjectrequiredSame shape as
shipper.contactabove.addressobjectrequiredSame shape as
shipper.addressabove.packages[]array of objectitems ≥ 1items ≤ 100weightnumberrequired> 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
customsobjectdocumentsOnlybooleancontentTypestringone 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 ≤ 30pickupobjectlocationExternalIdstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$PCK: one of your pickup places (PUT /pickup-locations/{externalId}) — IDS computes when the parcels are ready (the payment, the place's hours, holidays, preparation time), books the first carrier window that fits (or a deferred pickup task when the carrier books that day only later) and joins one pickup with your other shipments of the place, day and carrier. date, readyTime and closeTime are then not sent.
datestringpattern ^\d{4}-\d{2}-\d{2}$Without a place: the day of the pickup at the shipper's address (today … +10 days).
readyTimestringpattern ^([01]\d|2[0-3]):[0-5]\d$Without a place: from when the parcels are ready (local time at the shipper's address — judged in its country's time zone, the westernmost mainland one where a country has several; default — not before now on today, else 09:00).
closeTimestringpattern ^([01]\d|2[0-3]):[0-5]\d$Without a place: the latest time the courier may come (default 18:00).
instructionsstringlength ≤ 500requiredbooleanreferencesobjectcustomerReferencestringlength ≤ 40poNumberstringlength ≤ 40invoiceNumberstringlength ≤ 40platformobjectPLT: a platform's service-account key only (any other key: 400).
orderRefstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$The platform's order this shipment delivers.
shipmentRefstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$The platform's own shipment or group id.
sellerExternalIdstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$The seller as the platform knows them — an opaque code, never a name, e-mail or phone.
buyerExternalIdstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$The buyer (the delivery customer) as the platform knows them — an opaque code, never a name, e-mail or phone.
deliveryCustomerobjectBOOK: required while IDS invoices the delivery to the buyer (GET /platform invoiceRecipient delivery_customer).
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}$buyerAcceptanceobjectBOOK: required while IDS invoices the delivery to the buyer (GET /platform invoiceRecipient delivery_customer).
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.
paymentobjectBOOK: required for a platform paid on the platform (GET /platform paymentMode platform_collected); refused for any other.
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.
labelFormatstringone of: PDF · PNG · ZPLII · EPL2
labelSizestringone of: PAPER_4X6 · PAPER_4X8 · STOCK_4X6 · 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
Test keys on the simulated carrier only: the scenario this booking plays — tracking, pickup, errors (GET /metadata testScenarios.booking; default delivered). A live key, or a test key IDS switched to the FedEx sandbox: 400.
- required: one of these field setsquoteId | shipper + recipient + packages
{
"quoteId": "qt_9f2c4a1e0b7d4c3a8e6f1b2c3d4e5f60",
"selectedServiceType": "FEDEX_PRIORITY",
"pickup": {
"locationExternalId": "wh-bucharest-1"
},
"references": {
"customerReference": "ORDER-12345"
},
"operationRef": "ORDER-12345-D1",
"labelFormat": "PDF"
}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" \
-H "Authorization: Bearer $IDS_KEY" \
-H "Idempotency-Key: $OPERATION_KEY" \
-H "Content-Type: application/json" \
-d '{
"quoteId": "qt_9f2c4a1e0b7d4c3a8e6f1b2c3d4e5f60",
"selectedServiceType": "FEDEX_PRIORITY",
"pickup": {
"locationExternalId": "wh-bucharest-1"
},
"references": {
"customerReference": "ORDER-12345"
},
"operationRef": "ORDER-12345-D1",
"labelFormat": "PDF"
}'Answers
201 Shipment booked and paid (labels inlined; may carry warnings) — a Booking; a quote whose plan has several shipments: a BookingGroup (every shipment booked and paid together). With warning FINALIZATION_PENDING the answer may be the minimal BookingPending / BookingGroupPending.
Headers: X-Request-Id
application/json — Booking, BookingPending, BookingGroup or BookingGroupPending
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).
BookingGroup
shipmentGroupobjectrequiredrefstring (uuid)requiredcountintegerrequired≥ 2operationRefstringrequirednullablequoteIdstringrequiredenvironmentstringrequiredone of: sandbox · production
chargeobjectrequiredThe plan's total — the quote's total of the chosen service; each shipment's own charge is in shipments[].
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullablepaymentobjectrequiredmodestringrequiredone 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).
warnings[]array of objectPICKUP_FAILED (pickup.required), label address warnings.
codestringrequiredmessagestringrequiredpathstringThe request field the warning is about (label address warnings).
BookingGroupPending
shipmentGroupobjectrequiredrefstring (uuid)requiredcountintegerrequired≥ 2shipmentIds[]array of string (uuid)requireditems ≥ 2statusstringrequiredone of: confirmed
warnings[]array of objectrequireditems ≥ 1codestringrequiredmessagestringrequiredpathstringThe request field the warning is about (label address warnings).
{
"id": "0192f0c2-5d1e-7a3b-9c4d-2e8f1a6b7c90",
"status": "confirmed",
"masterTrackingNumber": "794600000001",
"environment": "production",
"createdVia": "api",
"createdAt": "2026-11-02T10:05:00.000Z",
"service": {
"type": "FEDEX_PRIORITY",
"name": "IDS Priority",
"carrierCode": "FEDEX",
"serviceCode": "FEDEX_PRIORITY"
},
"shipDate": "2026-11-02",
"estimatedDeliveryDate": "2026-11-03T12:00:00.000Z",
"packages": [
{
"sequenceNumber": 1,
"trackingNumber": "794600000001",
"label": {
"format": "PDF",
"encoded": "JVBERi0xLjQK…"
},
"contentValue": {
"amount": 450,
"amountMinor": 45000,
"currency": "RON"
},
"declaredValue": {
"amount": 450,
"amountMinor": 45000,
"currency": "RON"
}
}
],
"pickup": {
"requested": true,
"scheduled": true,
"confirmationCode": "CBRA1234",
"status": "scheduled",
"error": null,
"environment": "production",
"state": "pickup_confirmed",
"readyAt": "2026-11-02T07:00:00.000Z",
"request": {
"id": "0190f5a4-2222-7000-8000-000000000001",
"status": "confirmed",
"scheduledBy": "ids",
"carrier": "FDXE",
"date": "2026-11-02",
"window": {
"readyTime": "09:00",
"closeTime": "18:00",
"timezone": "Europe/Bucharest"
},
"bookAfter": null,
"confirmationCode": "CBRA1234",
"requestedAt": "2026-11-01T15:20:02.000Z",
"confirmedAt": "2026-11-01T15:20:03.000Z",
"pickedUpAt": null,
"shipmentCount": 1,
"packageCount": 1,
"attempts": 1,
"location": null,
"alerts": [],
"problem": null
}
},
"charge": {
"amount": 60.5,
"amountMinor": 6050,
"currency": "RON"
},
"quoteId": "qt_9f2c4a1e0b7d4c3a8e6f1b2c3d4e5f60",
"references": {
"customerReference": "ORDER-12345",
"poNumber": null,
"invoiceNumber": null
},
"platform": null,
"operationRef": "ORDER-12345-D1",
"shipmentGroup": {
"ref": "0d4f0f8e-7c1a-4f7e-9d5b-1a2b3c4d5e6f",
"index": 1,
"count": 1
},
"payment": {
"mode": "balance",
"paidAt": "2026-11-02T09:14:07.000Z",
"platformPayment": null
},
"documents": [],
"alerts": [],
"labelAddresses": {
"shipper": {
"contact": {
"name": "Acme Store",
"company": null,
"phone": "+40700000000",
"email": "[email protected]"
},
"address": {
"streetLines": [
"Calea Victoriei 1"
],
"city": "Bucuresti",
"stateCode": null,
"postalCode": "010061",
"countryCode": "RO",
"residential": null
}
},
"recipient": {
"contact": {
"name": "Ana Popescu",
"company": null,
"phone": "+40740000000",
"email": null
},
"address": {
"streetLines": [
"Strada Republicii 12"
],
"city": "Brasov",
"stateCode": null,
"postalCode": "500030",
"countryCode": "RO",
"residential": true
}
}
},
"shipmentType": "outbound",
"return": null
}400 VALIDATION_FAILED — body, missing Idempotency-Key, invalid quoteId (an id of another account, or an older signed token), a quote without a contact the booking did not send, customs (a declared value across a border must be in the customs value's currency and not above it), pickup date, coverage "auto" without contentValue, an address the label cannot print or a phone / e-mail the carrier refuses (details[].code), or a service not sold online (a freight service; in production also one outside GET /metadata serviceTypes — details.serviceType); testScenario with a live key or a test key on the FedEx sandbox; platform references sent by a key that belongs to no platform (path platform) or an e-mail / phone as a person's id (path platform.sellerExternalId / buyerExternalId); coverage "none" for a platform with automatic coverage (path coverage); BOOK: a platform's booking without platform.deliveryCustomer / platform.buyerAcceptance while IDS invoices the delivery to the buyer, a buyerAcceptance naming another version (details[].code BUYER_DOCUMENT_VERSION / BUYER_DOCUMENT_MISSING), platform.payment missing for a platform paid on the platform (or sent by another one), such a booking without a quoteId or an operationRef, a confirmedAt in the future or older than 30 days; a plan across a border with goods (path customs.commodities); an inline booking of more than 40 boxes
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 (insufficient balance or pending debt; key released) / CREDIT_LIMIT_EXCEEDED (deferred payment: past the credit limit; key released) / CREDIT_OVERDUE_BLOCKED (deferred payment: debt overdue past the block period, refused before the carrier; key released) / PAYMENT_FAILED
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.
409 IDEMPOTENCY_CONFLICT / IDEMPOTENCY_IN_PROGRESS / IDEMPOTENCY_UNDER_REVIEW / QUOTE_ALREADY_USED (the quote is single use: another booking with another Idempotency-Key used it or is using it — details.state booked | booking_in_progress, details.shipmentId) / OPERATION_REF_TAKEN (the operationRef belongs to another booking — details.state booked | booking_in_progress | under_review, details.shipmentIds) / PLATFORM_PAYMENT_MODE_UNAVAILABLE (a live booking of a platform of IDR itself still set to the balance; key released) / PICKUP_LOCATION_UNAVAILABLE (pickup.locationExternalId names a place switched off or suspended; nothing booked); a retryable one carries Retry-After
Headers: X-Request-IdRetry-After
Codes: IDEMPOTENCY_CONFLICTIDEMPOTENCY_IN_PROGRESSIDEMPOTENCY_UNDER_REVIEWQUOTE_ALREADY_USEDOPERATION_REF_TAKENPLATFORM_PAYMENT_MODE_UNAVAILABLEPICKUP_LOCATION_UNAVAILABLE
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
410 QUOTE_EXPIRED — request a new quote
Headers: X-Request-Id
Codes: QUOTE_EXPIRED
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
422 PACKAGE_EXCEEDS_PARCEL_LIMITS (a box over the parcel limits, refused before the carrier; key released) / CARRIER_ERROR / PRICING_UNAVAILABLE (also COVERAGE_LIMIT_EXCEEDED, SPECIAL_GOODS_NOT_ALLOWED, DANGEROUS_GOODS_NOT_SUPPORTED, as on the quote) / QUOTE_MISMATCH (other boxes, addresses, packaging, signature or coverage than the quote priced, or the account's currency changed — details[0].path; get a new quote) / PLATFORM_PAYMENT_MISMATCH (a booking paid on the platform whose payment is not exactly the quote's total — details.expected / received; key released); a platform's key: PRICING_UNAVAILABLE PLATFORM_ORIGIN_NOT_ALLOWED | PLATFORM_DESTINATION_NOT_ALLOWED (details.allowedCountries; key released) / PICKUP_LOCATION_NOT_FOUND (pickup.locationExternalId is not one of your places in this environment) / PICKUP_LOCATION_MISMATCH (the place is not at the shipper's country and postal code); nothing booked; a retryable CARRIER_ERROR carries Retry-After; a CARRIER_ERROR with retryable false and the key closed — the carrier did not answer whether it made the label (IDS reviews it, never book again blindly)
Headers: X-Request-IdRetry-After
Codes: PACKAGE_EXCEEDS_PARCEL_LIMITSCARRIER_ERRORPRICING_UNAVAILABLEQUOTE_MISMATCHPLATFORM_PAYMENT_MISMATCHPICKUP_LOCATION_NOT_FOUNDPICKUP_LOCATION_MISMATCH
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.
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 first request with this key stopped without an answer and is held for IDS review — look the operation up; use a new key only if it did not happen.
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.
PLATFORM_PAYMENT_MODE_UNAVAILABLEHTTP 409retryable: noThe platform's payment mode cannot pay this booking: a platform of IDR itself books only paid on the platform (paymentMode platform_collected — IDS sets it), never from its own balance. Nothing was booked or charged.
The pickup place is switched off (active false) or suspended by IDS — switch it on, name another, or ask IDS. Nothing was booked.
QUOTE_EXPIREDHTTP 410retryable: noThe quote expired (expiresAt) — request a new quote before the buyer pays.
A box is over the parcel limits — freight, not sold online (details).
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).
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 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 booking names a pickup place (pickup.locationExternalId) you do not have in this environment — PUT /pickup-locations/{externalId} first. Nothing was booked.
The pickup place is not at the shipper's country and postal code — the price was made for the shipper's place: quote from the pickup place's address. Nothing was booked.
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.