API reference › Schemas

Shipment

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)required
  • updatedAtstring (date-time)required
  • cancelledAtstring (date-time)requirednullable
  • serviceobjectrequired
  • typestringrequirednullable
  • namestringrequirednullable
  • carrierCodestringrequirednullable
  • serviceCodestringrequirednullable
  • shipDatestringrequirednullable

    YYYY-MM-DD.

  • estimatedDeliveryDatestring (date-time)requirednullable
  • actualDeliveryDatestring (date-time)requirednullable
  • carrierStatusstringrequirednullable
  • carrierStatusDescriptionstringrequirednullable
  • lastTrackedAtstring (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.

  • pickupobjectrequirednullable
  • requestedbooleanrequired
  • scheduledbooleanrequired
  • confirmationCodestringrequirednullable
  • statusstringrequired
  • environmentstringrequired

    one of: sandbox · production

  • requestedAtstring (date-time)requirednullable

    BOOK: when IDS asked the carrier for this pickup (apart from the label — createdAt — and the payment — payment.paidAt).

  • 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
  • requestPickupRequestrequired
  • errorstringrequirednullable
  • 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
  • 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
  • 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
  • labelAddressesobjectrequired
  • 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.

  • deliveryStatestringrequired

    one of: label_created · pickup_scheduled · picked_up · in_transit · customs · out_for_delivery · delivery_attempt_failed · at_pickup_point · collected_from_pickup_point · delivered · refused · returning_to_sender · returned_to_sender · exception · lost · cancelled

    EV: the delivery state, normalised across carriers — label_created, pickup_scheduled, picked_up, in_transit, customs, out_for_delivery, delivery_attempt_failed, at_pickup_point, collected_from_pickup_point, delivered, refused, returning_to_sender, returned_to_sender, exception, lost, cancelled. delivered and collected_from_pickup_point are the handover to the recipient — never a return to the sender (returned_to_sender) or an arrival at a pickup point (at_pickup_point). lost only by the carrier's own code or IDS's decision (a later scan of movement, delivery or return replaces it; it is no complaint and changes no complaint deadline), never from missing scans. at_pickup_point is «waiting for collection» (IDR's postal conditions treat a deposit into a parcel locker the addressee chose as a handover; IDS shows it as waiting until the carrier reports the collection). delivered is the carrier's report of the handover.

  • deliveryStateAtstring (date-time)requirednullable

    When the delivery state was reached (its scan's time); null for a shipment booked before 01.11.2026.

  • shipmentTypestringrequired

    outbound, or return (RET; a cabinet batch row may also be marked return without a linked original).

  • returnobjectrequirednullable

    RET: a return shipment's block — its original, payer, reason, handover, charge (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
  • returns[]array of objectrequired

    RET: the returns of this shipment (not failed or unfinished ones), oldest first.

  • idstring (uuid)required
  • masterTrackingNumberstringrequirednullable
  • statusstringrequired

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

  • deliveryStatestringrequirednullable
  • createdAtstring (date-time)required
  • scans[]array of object

    GET /shipments/{id} only: the carrier's scans, oldest first (kept since 01.11.2026).

  • idstring (uuid)required
  • codestringrequired

    The carrier's code of the scan (FedEx Track codes: OC, PU, DP, AR, OD, DL, DE, HL, RS, SE, …; IDS_LOST — considered lost by IDS).

  • descriptionstringrequired

    The carrier's own words (English).

  • occurredAtstring (date-time)required
  • locationobjectrequirednullable
  • citystringrequirednullable
  • stateCodestringrequirednullable
  • countryCodestringrequirednullable
  • deliveryStatestringrequirednullable

    one of: label_created · pickup_scheduled · picked_up · in_transit · customs · out_for_delivery · delivery_attempt_failed · at_pickup_point · collected_from_pickup_point · delivered · refused · returning_to_sender · returned_to_sender · exception · lost · cancelled · null

    What the scan means in the history (a DL after a return is returned_to_sender); null — a code that changes nothing.

  • exceptionCodestringrequirednullable
  • sourcestringrequired

    one of: carrier · ids

    ids: a decision of IDS (considered lost), not a carrier scan.