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 ≤ 8000
  • selectedServiceTypestringlength ≤ 60
  • shipperobject
  • contactobjectrequired
  • namestringrequiredlength 1–100
  • companystringlength ≤ 100
  • phonestringrequiredlength 1–20
  • emailstring (email)length ≤ 255
  • addressobjectrequired
  • line1stringrequiredlength 1–100
  • line2stringlength ≤ 100
  • citystringrequiredlength 1–100
  • stateCodestringlength ≤ 20
  • postalCodestringlength ≤ 20
  • countryCodestringrequiredlength 2–2
  • residentialboolean
  • recipientobject
  • contactobjectrequired

    Same shape as shipper.contact above.

  • addressobjectrequired

    Same shape as shipper.address above.

  • packages[]array of objectitems ≥ 1items ≤ 100
  • weightnumberrequired> 0≤ 1000
  • weightUnitstringdefault KG

    one of: KG · LB

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

    one of: CM · IN

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

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

  • batteryobject

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

  • typestringrequired

    one of: lithium_ion · lithium_metal · non_lithium

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

  • installationstringrequired

    one of: in_equipment · with_equipment · alone

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

  • liquidboolean

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

  • aerosolboolean

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

  • perfumeboolean

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

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

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

  • unNumberstringpattern ^UN\d{4}$

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

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

    one of: SERVICE_DEFAULT · DIRECT · ADULT

  • coveragestring

    one of: none · auto

  • customsobject
  • documentsOnlyboolean
  • contentTypestring

    one of: ITEMS · DOCUMENTS

  • itemDescriptionstringlength ≤ 200
  • dutiesPaymentstring

    one of: SENDER · RECIPIENT · THIRD_PARTY

  • incotermsstring

    one of: FCA · EXW · CIP · CPT · DAP · DAT · DDP

  • shipmentPurposestring

    one of: SOLD · NOT_SOLD · GIFT · SAMPLE · REPAIR_AND_RETURN · PERSONAL_EFFECTS

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

    one of: KG · LB

  • customsValuenumberrequired> 0
  • customsValueCurrencystringrequiredlength 3–3
  • countryOfManufacturestringlength 2–2
  • harmonizedCodestringlength ≤ 30
  • pickupobject
  • locationExternalIdstringlength 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 ≤ 500
  • requiredboolean
  • referencesobject
  • customerReferencestringlength ≤ 40
  • poNumberstringlength ≤ 40
  • invoiceNumberstringlength ≤ 40
  • platformobject

    PLT: 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.

  • deliveryCustomerobject

    BOOK: required while IDS invoices the delivery to the buyer (GET /platform invoiceRecipient delivery_customer).

  • typestringrequired

    one of: person · company

    person: a private buyer; company: a buyer that is a company (its codes for the invoice).

  • namestringrequiredlength 1–200

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

  • addressobjectrequired

    The delivery customer's address for the invoice (it may differ from the recipient's).

  • line1stringrequiredlength 1–100
  • line2stringlength ≤ 100
  • citystringrequiredlength 1–100
  • stateCodestringlength ≤ 20
  • postalCodestringlength ≤ 20
  • countryCodestringrequiredpattern ^[A-Za-z]{2}$
  • buyerAcceptanceobject

    BOOK: required while IDS invoices the delivery to the buyer (GET /platform invoiceRecipient delivery_customer).

  • documents[]array of objectrequireditems ≥ 1items ≤ 3

    terms and postal_conditions — accepted by the buyer, required, in their current versions; privacy — shown, optional.

  • typestringrequired

    one of: terms · postal_conditions · privacy

  • versionstringrequiredlength 1–20

    The version shown to the buyer (GET /metadata buyerDocuments).

  • acceptedAtstring (date-time)required

    When 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 ≤ 45

    Accepted but not stored by IDS — keep it in your own checkout record.

  • userAgentstringlength 1–500

    Accepted but not stored by IDS — keep it in your own checkout record.

  • paymentobject

    BOOK: 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≤ 100000000

    The 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)required

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

  • labelFormatstring

    one of: PDF · PNG · ZPLII · EPL2

  • labelSizestring

    one of: PAPER_4X6 · PAPER_4X8 · STOCK_4X6 · PAPER_LETTER

  • testScenariostring

    one 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
Example request
{
  "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)required
  • statusstringrequired

    one of: draft · pending · confirmed · in_transit · delivered · cancelled · exception · failed

  • masterTrackingNumberstringrequirednullable
  • environmentstringrequired

    one of: sandbox · production

  • createdViastringrequirednullable
  • createdAtstring (date-time)requirednullable
  • serviceobjectrequired
  • typestringrequirednullable
  • namestringrequirednullable
  • carrierCodestringrequirednullable
  • serviceCodestringrequirednullable
  • shipDatestringrequirednullable

    YYYY-MM-DD.

  • estimatedDeliveryDatestring (date-time)requirednullable
  • packages[]array of objectrequired
  • sequenceNumberintegerrequired
  • trackingNumberstringrequirednullable
  • labelobjectrequirednullable
  • formatstringrequired
  • encodedstringrequired
  • contentValueobjectrequirednullable

    Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.

  • amountnumberrequirednullable
  • amountMinorintegerrequirednullable

    The amount beside it in minor units (cents).

  • currencystringrequirednullable
  • declaredValueobjectrequirednullable

    Same shape as packages[].contentValue above.

    Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.

  • pickupobjectrequired
  • requestedbooleanrequired
  • scheduledbooleanrequired
  • confirmationCodestringrequirednullable
  • statusstringrequired

    one of: scheduled · requested · failed · none

    PCK: requested — IDS is asking, or will ask when the carrier books that day.

  • errorstringrequirednullable
  • environmentstringrequired

    one of: sandbox · production

  • statestringrequired

    one 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)requirednullable
  • requestobjectrequirednullable
  • idstring (uuid)required
  • statusstringrequired

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

  • scheduledBystringrequired

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

  • carrierstringrequired

    The carrier's pickup code (FDXE; SIMULATED for a test key).

  • datestringrequired

    YYYY-MM-DD, the pickup day in the place's time zone.

  • windowobjectrequirednullable

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

  • timezonestringrequired
  • bookAfterstring (date-time)requirednullable

    planned only: when IDS asks the carrier (never shown as confirmed before).

  • confirmationCodestringrequirednullable
  • requestedAtstring (date-time)requirednullable
  • confirmedAtstring (date-time)requirednullable
  • pickedUpAtstring (date-time)requirednullable
  • shipmentCountintegerrequirednullable≥ 0

    Shipments waiting for this pickup (yours and the place's other ones of the day).

  • packageCountintegerrequired≥ 0
  • attemptsintegerrequired≥ 0
  • locationobjectrequirednullable
  • externalIdstringrequired
  • namestringrequired
  • alerts[]array of objectrequired

    What the carrier said with its confirmation (e.g. PICKUP.SCHEDULE.LATE).

  • codestringrequired
  • alertTypestringrequired
  • messagestringrequired
  • problemobjectrequirednullable

    An open problem IDS handles (refused, no_window, window_missed, outcome_unknown, booking_failed, carrier_alert, courier_missed).

  • kindstringrequired
  • openedAtstring (date-time)required
  • chargeobjectrequired

    Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.

  • amountnumberrequirednullable
  • amountMinorintegerrequirednullable

    The amount beside it in minor units (cents).

  • currencystringrequirednullable
  • quoteIdstringrequirednullable
  • referencesobjectrequired
  • customerReferencestringrequirednullable
  • poNumberstringrequirednullable
  • invoiceNumberstringrequirednullable
  • platformobjectrequirednullable

    PLT: the references the platform gave the booking (platform.orderRef, …); null for a shipment booked without a platform.

  • orderRefstringrequirednullable
  • shipmentRefstringrequirednullable
  • sellerExternalIdstringrequirednullable
  • buyerExternalIdstringrequirednullable
  • deliveryCustomerobjectrequirednullable

    BOOK: 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.

  • typestringrequired

    one of: person · company

  • namestringrequired
  • vatNumberstringrequirednullable
  • registrationNumberstringrequirednullable
  • addressobjectrequired
  • line1stringrequired
  • line2stringrequirednullable
  • citystringrequired
  • stateCodestringrequirednullable
  • postalCodestringrequirednullable
  • countryCodestringrequiredlength 2–2
  • buyerAcceptanceobjectrequirednullable

    BOOK: which IDS documents the buyer accepted at checkout and when — kept with the shipment as evidence; null when none was sent.

  • documents[]array of objectrequired
  • typestringrequired

    one of: terms · postal_conditions · privacy

  • versionstringrequired
  • acceptedAtstring (date-time)required
  • operationRefstringrequirednullable

    BOOK: your operationRef of the booking (null without one).

  • shipmentGroupobjectrequirednullable

    null for a shipment booked without an operationRef, a plan or a platform payment.

  • refstring (uuid)required

    The booking operation's id: the same for every shipment of one plan (shipmentGroupRef).

  • indexintegerrequired≥ 1

    This shipment's place in the plan, 1-based.

  • countintegerrequired≥ 1
  • paymentobjectrequired
  • modestringrequired

    one 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)requirednullable

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

  • platformPaymentobjectrequirednullable

    platform_collected only: the platform's payment of the booking operation.

  • refstringrequired

    The platform's own id of the payment, as sent.

  • amountnumberrequired
  • amountMinorintegerrequired

    The amount beside it in minor units (cents).

  • currencystringrequired
  • confirmedAtstring (date-time)required

    When the platform's payment provider confirmed it (as sent).

  • recordedAtstring (date-time)required

    When IDS recorded it — with the booking, in the same transaction that made its shipments paid.

  • statusstringrequired

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

  • shipmentCountintegerrequired

    How many shipments of the operation it pays (a plan: several).

  • refundedAmountnumberrequired

    CXL: what the platform confirmed it refunded on this payment (0 while nothing).

  • refundedAmountMinorintegerrequired

    The amount beside it in minor units (cents).

  • documents[]array of objectrequired
  • idstring (uuid)required
  • typestringrequired
  • fileNamestringrequired
  • createdAtstring (date-time)required
  • alerts[]array of objectrequired

    Same shape as pickup.request.alerts above.

  • labelAddressesobjectrequired

    The shipper and the recipient exactly as the carrier got them and the label prints them.

  • shipperobjectrequired

    A party as the carrier's label prints it: Latin letters only (Cyrillic, Greek transliterated by named systems, diacritics dropped), the phone with +, the postal code in the country's form, the lengths the label prints (35 characters per line, at most 3 street lines). The original you sent is kept by IDS.

  • contactobjectrequirednullable

    null: no contact was sent with the quote, or an unused quote expired and its contacts were removed.

  • namestringrequired
  • companystringrequirednullable
  • phonestringrequired
  • emailstringrequirednullable
  • addressobjectrequired
  • streetLines[]array of stringrequireditems ≥ 1items ≤ 3
  • citystringrequired
  • stateCodestringrequirednullable
  • postalCodestringrequirednullable
  • countryCodestringrequiredlength 2–2
  • residentialbooleanrequirednullable
  • recipientobjectrequired

    A party as the carrier's label prints it: Latin letters only (Cyrillic, Greek transliterated by named systems, diacritics dropped), the phone with +, the postal code in the country's form, the lengths the label prints (35 characters per line, at most 3 street lines). The original you sent is kept by IDS.

  • contactobjectrequirednullable

    Same shape as labelAddresses.shipper.contact above.

    null: no contact was sent with the quote, or an unused quote expired and its contacts were removed.

  • addressobjectrequired

    Same shape as labelAddresses.shipper.address above.

  • shipmentTypestringrequired

    one of: outbound · return

    RET: return for a return shipment (POST /shipments/{id}/returns).

  • returnobjectrequirednullable

    RET: a return shipment's block (null otherwise).

  • ofobjectrequired

    The original shipment it returns.

  • idstring (uuid)required
  • masterTrackingNumberstringrequirednullable
  • payerstringrequired

    one of: buyer · seller · platform · account

    Who bears it as you named it (IDS never decides it).

  • reasonstringrequired

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

  • reasonNotestringrequirednullable
  • handoverstringrequired

    one of: pickup · drop_off

  • dropOffPointobject (free-form)requirednullable

    The point you named at booking (handover.dropOffPoint), as sent.

  • carrierReturnLabelbooleanrequired

    Booked as the carrier's own return label (associated with the original).

  • customsReasonstringrequirednullable

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

  • chargeobjectrequirednullable

    payer seller of a platform paid on the platform: the charge you settle (POST /shipments/{id}/return-charge/settle); null for any other payer.

  • statusstringrequired

    one of: due · settled · void

  • amountnumberrequirednullable
  • amountMinorintegerrequirednullable

    The amount beside it in minor units (cents).

  • currencystringrequirednullable
  • settledMethodstringrequirednullable

    one of: withheld · paid · null

  • settledReferencestringrequirednullable
  • settledAtstring (date-time)requirednullable
  • voidedAtstring (date-time)requirednullable
  • createdAtstring (date-time)required
  • warnings[]array of object

    PICKUP_FAILED (pickup.required), label address warnings.

  • codestringrequired
  • messagestringrequired
  • pathstring

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

BookingPending
  • idstring (uuid)required
  • statusstringrequired

    one of: confirmed

  • warnings[]array of objectrequireditems ≥ 1
  • codestringrequired
  • messagestringrequired
  • pathstring

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

BookingGroup
  • shipmentGroupobjectrequired
  • refstring (uuid)required
  • countintegerrequired≥ 2
  • operationRefstringrequirednullable
  • quoteIdstringrequired
  • environmentstringrequired

    one of: sandbox · production

  • chargeobjectrequired

    The plan's total — the quote's total of the chosen service; each shipment's own charge is in shipments[].

  • amountnumberrequirednullable
  • amountMinorintegerrequirednullable

    The amount beside it in minor units (cents).

  • currencystringrequirednullable
  • paymentobjectrequired
  • modestringrequired

    one 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)requirednullable

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

  • platformPaymentobjectrequirednullable

    platform_collected only: the platform's payment of the booking operation.

  • refstringrequired

    The platform's own id of the payment, as sent.

  • amountnumberrequired
  • amountMinorintegerrequired

    The amount beside it in minor units (cents).

  • currencystringrequired
  • confirmedAtstring (date-time)required

    When the platform's payment provider confirmed it (as sent).

  • recordedAtstring (date-time)required

    When IDS recorded it — with the booking, in the same transaction that made its shipments paid.

  • statusstringrequired

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

  • shipmentCountintegerrequired

    How many shipments of the operation it pays (a plan: several).

  • refundedAmountnumberrequired

    CXL: what the platform confirmed it refunded on this payment (0 while nothing).

  • refundedAmountMinorintegerrequired

    The amount beside it in minor units (cents).

  • shipments[]Bookingrequireditems ≥ 2
  • warnings[]array of object

    PICKUP_FAILED (pickup.required), label address warnings.

  • codestringrequired
  • messagestringrequired
  • pathstring

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

BookingGroupPending
  • shipmentGroupobjectrequired
  • refstring (uuid)required
  • countintegerrequired≥ 2
  • shipmentIds[]array of string (uuid)requireditems ≥ 2
  • statusstringrequired

    one of: confirmed

  • warnings[]array of objectrequireditems ≥ 1
  • codestringrequired
  • messagestringrequired
  • pathstring

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

Example 201
{
  "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.

  • VALIDATION_FAILEDHTTP 400retryable: nodetails: ValidationIssuesdetails: ServiceRefusal

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

  • AUTHENTICATION_FAILEDHTTP 401retryable: no

    Missing, malformed, invalid, revoked or expired key; an environment tag that does not match. (An account switched off answers 403 API_ACCOUNT_DISABLED since SEC.)

  • PAYMENT_REQUIREDHTTP 402retryable: yes

    The balance does not cover the price, or a pending debt exists (paymentRequired) — top up and retry the same key.

  • CREDIT_LIMIT_EXCEEDEDHTTP 402retryable: yes

    Deferred payment: the booking would pass the credit limit (creditLimit).

  • CREDIT_OVERDUE_BLOCKEDHTTP 402retryable: yes

    Deferred payment: overdue debt blocks new bookings (creditOverdue) — pay it and retry.

  • PAYMENT_FAILEDHTTP 402retryable: no

    Charging failed after the carrier booked; the label was cancelled or is held for IDS review.

  • API_ACCESS_DISABLEDHTTP 403retryable: no

    API access is switched off for this account.

  • API_ACCOUNT_DISABLEDHTTP 403retryable: no

    The IDS account of this key is switched off, not approved or closed (for an employee's key: its franchise owner's account) — the key stops with it; contact IDS.

  • API_KEY_IP_NOT_ALLOWEDHTTP 403retryable: no

    IDS keeps a list of IP addresses for this key and the request came from another one — send it from a listed address, or ask IDS to change the list.

  • API_TERMS_NOT_ACCEPTEDHTTP 403retryable: no

    The IDS account of this key has not accepted the API Terms of Use (/legal/api-terms) — its holder accepts them in the IDS cabinet (Integrations / API), or IDS records a signed agreement (for an employee's key: its franchise owner's account). Retrying does not help until then.

  • FORBIDDEN_SCOPEHTTP 403retryable: no

    The key lacks the scope of this operation (x-scope).

  • API_OWNER_NOT_BILLABLEHTTP 403retryable: no

    The account cannot be billed through the API (no pricing tier, or an admin account).

  • PLATFORM_SUSPENDEDHTTP 403retryable: no

    The platform of this key is suspended by IDS: quotes, bookings and test operations are refused until IDS resumes it; reads, the tracking refresh, a cancellation and a complaint still work. A retry of a booking finished before the suspension replays its answer.

  • PLATFORM_TARIFF_MISSINGHTTP 403retryable: no

    The platform has no tariff yet — IDS sets it; no quote or booking until then.

  • IDEMPOTENCY_CONFLICTHTTP 409retryable: no

    The Idempotency-Key was used for a different body, operation or environment.

  • IDEMPOTENCY_IN_PROGRESSHTTP 409retryable: yes

    The first request with this Idempotency-Key is still running — retry the same key later.

  • IDEMPOTENCY_UNDER_REVIEWHTTP 409retryable: nodetails: ValidationIssues

    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.

  • QUOTE_ALREADY_USEDHTTP 409retryable: variesdetails: QuoteAlreadyUsedDetails

    The quote is single use: another booking used it (details.state booked, retryable false) or is using it now (booking_in_progress, retryable true).

  • OPERATION_REF_TAKENHTTP 409retryable: variesdetails: OperationRefTakenDetails

    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: no

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

  • PICKUP_LOCATION_UNAVAILABLEHTTP 409retryable: nodetails: ValidationIssues

    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: no

    The quote expired (expiresAt) — request a new quote before the buyer pays.

  • PACKAGE_EXCEEDS_PARCEL_LIMITSHTTP 422retryable: nodetails: ParcelLimitDetails

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

  • CARRIER_ERRORHTTP 422retryable: variesdetails: CarrierErrorDetails

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

  • PRICING_UNAVAILABLEHTTP 422retryable: nodetails: PricingUnavailableDetails

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

  • QUOTE_MISMATCHHTTP 422retryable: nodetails: ValidationIssues

    The booking asks for what the quote did not price (details[0].path) — get a new quote.

  • PLATFORM_PAYMENT_MISMATCHHTTP 422retryable: nodetails: PlatformPaymentMismatchDetails

    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.

  • PICKUP_LOCATION_NOT_FOUNDHTTP 422retryable: nodetails: ValidationIssues

    The booking names a pickup place (pickup.locationExternalId) you do not have in this environment — PUT /pickup-locations/{externalId} first. Nothing was booked.

  • PICKUP_LOCATION_MISMATCHHTTP 422retryable: nodetails: ValidationIssues

    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: yes

    A limit per minute — the key's requests, its quotes, its platform's keys together, or the client IP (limitScope) — wait Retry-After seconds (retryAfterSec, limit).

  • INTERNAL_ERRORHTTP 500retryable: no

    Unexpected — for a booking, check GET /shipments before using a new key; quote the requestId.

  • API_DISABLEDHTTP 503retryable: no

    IDS switched the whole API off (/ping and /openapi.json keep answering).

  • CARRIER_NOT_CONFIGUREDHTTP 503retryable: no

    The carrier credentials of this environment are missing.

  • CURRENCY_RATE_MISSINGHTTP 503retryable: no

    IDS has no exchange rate for the balance currency.