API reference › Bookings & shipments
GET/shipments/{id}
Get one shipment (by UUID or master tracking number)
- Key scope
shipments:read- Idempotency-Key
- Not used
- URL
https://ids.express/api/v1/shipments/{id}
Parameters
idpath · stringrequiredShipment UUID or its master tracking number
Call it
curl -s "https://ids.express/api/v1/shipments/$ID" \
-H "Authorization: Bearer $IDS_KEY"Answers
200 Shipment
Headers: X-Request-Id
application/json — Shipment
idstring (uuid)requiredstatusstringrequiredone of: draft · pending · confirmed · in_transit · delivered · cancelled · exception · failed
masterTrackingNumberstringrequirednullableenvironmentstringrequiredone of: sandbox · production
createdViastringrequirednullablecreatedAtstring (date-time)requiredupdatedAtstring (date-time)requiredcancelledAtstring (date-time)requirednullableserviceobjectrequiredtypestringrequirednullablenamestringrequirednullablecarrierCodestringrequirednullableserviceCodestringrequirednullableshipDatestringrequirednullableYYYY-MM-DD.
estimatedDeliveryDatestring (date-time)requirednullableactualDeliveryDatestring (date-time)requirednullablecarrierStatusstringrequirednullablecarrierStatusDescriptionstringrequirednullablelastTrackedAtstring (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.
pickupobjectrequirednullablerequestedbooleanrequiredscheduledbooleanrequiredconfirmationCodestringrequirednullablestatusstringrequiredenvironmentstringrequiredone of: sandbox · production
requestedAtstring (date-time)requirednullableBOOK: when IDS asked the carrier for this pickup (apart from the label — createdAt — and the payment — payment.paidAt).
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)requirednullableerrorstringrequirednullablechargeobjectrequiredMoney: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullablereferencesobjectrequiredcustomerReferencestringrequirednullablepoNumberstringrequirednullableinvoiceNumberstringrequirednullableplatformobjectrequirednullablePLT: 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)requiredoperationRefstringrequirednullableshipmentGroupobjectrequirednullablenull 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)requiredlabelAddressesobjectrequiredshipperobjectrequiredA 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.deliveryStatestringrequiredone 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)requirednullableWhen the delivery state was reached (its scan's time); null for a shipment booked before 01.11.2026.
shipmentTypestringrequiredoutbound, or return (RET; a cabinet batch row may also be marked return without a linked original).
returnobjectrequirednullableRET: a return shipment's block — its original, payer, reason, handover, charge (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)requiredreturns[]array of objectrequiredRET: the returns of this shipment (not failed or unfinished ones), oldest first.
idstring (uuid)requiredmasterTrackingNumberstringrequirednullablestatusstringrequiredone of: draft · pending · confirmed · in_transit · delivered · cancelled · exception · failed
deliveryStatestringrequirednullablecreatedAtstring (date-time)requiredscans[]array of objectGET /shipments/{id} only: the carrier's scans, oldest first (kept since 01.11.2026).
idstring (uuid)requiredcodestringrequiredThe 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).
descriptionstringrequiredThe carrier's own words (English).
occurredAtstring (date-time)requiredlocationobjectrequirednullablecitystringrequirednullablestateCodestringrequirednullablecountryCodestringrequirednullabledeliveryStatestringrequirednullableone 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.
exceptionCodestringrequirednullablesourcestringrequiredone of: carrier · ids
ids: a decision of IDS (considered lost), not a carrier scan.
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.
403 API_ACCESS_DISABLED / API_ACCOUNT_DISABLED / API_KEY_IP_NOT_ALLOWED / API_TERMS_NOT_ACCEPTED / FORBIDDEN_SCOPE / API_OWNER_NOT_BILLABLE; a platform's key: PLATFORM_SUSPENDED (a quote, booking or test operation of a suspended platform) / PLATFORM_TARIFF_MISSING (a quote or booking before IDS set its tariff)
Headers: X-Request-Id
Codes: API_ACCESS_DISABLEDAPI_ACCOUNT_DISABLEDAPI_KEY_IP_NOT_ALLOWEDAPI_TERMS_NOT_ACCEPTEDFORBIDDEN_SCOPEAPI_OWNER_NOT_BILLABLEPLATFORM_SUSPENDEDPLATFORM_TARIFF_MISSING
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
404 NOT_FOUND — not visible to this key (other account or other environment)
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.
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.)
API_ACCESS_DISABLEDHTTP 403retryable: noAPI access is switched off for this account.
API_ACCOUNT_DISABLEDHTTP 403retryable: noThe IDS account of this key is switched off, not approved or closed (for an employee's key: its franchise owner's account) — the key stops with it; contact IDS.
API_KEY_IP_NOT_ALLOWEDHTTP 403retryable: noIDS keeps a list of IP addresses for this key and the request came from another one — send it from a listed address, or ask IDS to change the list.
API_TERMS_NOT_ACCEPTEDHTTP 403retryable: noThe IDS account of this key has not accepted the API Terms of Use (/legal/api-terms) — its holder accepts them in the IDS cabinet (Integrations / API), or IDS records a signed agreement (for an employee's key: its franchise owner's account). Retrying does not help until then.
FORBIDDEN_SCOPEHTTP 403retryable: noThe key lacks the scope of this operation (x-scope).
API_OWNER_NOT_BILLABLEHTTP 403retryable: noThe account cannot be billed through the API (no pricing tier, or an admin account).
PLATFORM_SUSPENDEDHTTP 403retryable: noThe platform of this key is suspended by IDS: quotes, bookings and test operations are refused until IDS resumes it; reads, the tracking refresh, a cancellation and a complaint still work. A retry of a booking finished before the suspension replays its answer.
PLATFORM_TARIFF_MISSINGHTTP 403retryable: noThe platform has no tariff yet — IDS sets it; no quote or booking until then.
NOT_FOUNDHTTP 404retryable: noUnknown path, or an object this key may not see (another account, the other environment).
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.