API reference › Schemas

Booking

Fields

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