IDS Express API

A server-to-server REST API for shipping through IDS Express — for platforms (marketplaces that book delivery for their buyers and sellers) and shops (a client of IDS connecting its own site). Price a delivery before your buyer pays, book it right after the payment, get the labels, the courier pickup, the carrier's scans as events and webhooks, cancel, return, and show IDR's delivery invoice. The carrier today is FedEx; services carry the IDS name and separate carrier and service codes.

Base URL
https://ids.express/api/v1
Auth
API key: Authorization: Bearer ids_… or X-API-Key
Model
Fixed-price quotes · synchronous booking · events & webhooks · test and live keys

Getting started

  1. Get a key. A platform gets its keys from IDS (a service account of the platform, a key that lives at most 12 months — the exact expiry is on the key). A shop — or any business client IDS switched on (the API is for business use, API Terms of Use) — creates its own keys (at most 6 months) in the IDS cabinet, page Integrations / API. Issuing a key enables API access for the account. The full key is shown once: keep it in a secret manager and never ship it in a browser or mobile app.
  2. The API Terms of Use. A key works once its account accepted the API Terms of Use (in the cabinet) or IDS recorded a signed agreement — otherwise every request answers 403 API_TERMS_NOT_ACCEPTED.
  3. Start with a test key (ids_test_…): set your test wallet (POST /test/wallet {"balance": 1000}), then quote, book, move the scenario and cancel — the test plan below lists what to run.
  4. Register a webhook endpoint with the test key and verify the signatures (webhooks); keep reading the event feed as the recovery path.
  5. Go live with an ids_live_… key: same code, real labels, real pickups, real money.

IDS can switch API access off for one account (403 API_ACCESS_DISABLED) or for the whole API (503 API_DISABLED; /ping and /openapi.json keep answering).

Authentication & environments

Send the key on every request as Authorization: Bearer … or X-API-Key. The Bearer prefix is case-sensitive; if both headers are sent, the Bearer token is used. The token format is ids_{live|test}_{prefix}.{secret}.

Authorization: Bearer ids_test_AbCdEf12.<secret>
# or
X-API-Key: ids_test_AbCdEf12.<secret>
KeyEnvironmentEffect
ids_test_…sandboxTest mode: the simulated carrier (or the FedEx sandbox, if IDS switched the key to it) and your account's test wallet. No courier, no real label, never your real balance, a debt, a payment request, an invoice or a letter.
ids_live_…productionReal labels, real pickups, real charges.

The environment is bound to the key and cannot be changed per request. A test key never reads, tracks or cancels a live object (404 NOT_FOUND) and the other way round; a quoteId of one environment is not booked with a key of the other. Each key carries scopes — nothing is granted by default; a call without its scope answers 403 FORBIDDEN_SCOPE.

ScopeOperations that need itNote
quotes:writeGET /metadata, POST /quotes, GET /quotes/{id}, POST /shipments/{id}/return-quotesPOST /quotes, GET /quotes/{id}, GET /metadata, POST /shipments/{id}/return-quotes (with shipments:read)
shipments:readGET /shipments, GET /shipments/{id}, GET /shipments/{id}/pickup, GET /shipments/{id}/labels, GET /shipments/{id}/labels/pdf, GET /shipments/{id}/documents, GET /shipments/{id}/documents/{docId}/download, GET /shipments/{id}/adjustments, GET /shipments/{id}/refunds, GET /shipments/{id}/invoices, GET /invoices/{id}/pdf, GET /test/shipments/{id}GET /shipments, /shipments/{id}, /labels, /labels/pdf, /documents, document download, /pickup, /adjustments, /refunds, /invoices, GET /invoices/{id}/pdf; test keys: GET /test/shipments/{id}
shipments:writePOST /shipments, POST /shipments/{id}/returns, POST /shipments/{id}/return-charge/settle, POST /test/wallet, POST /test/shipments/{id}/advancePOST /shipments, POST /shipments/{id}/returns, POST /shipments/{id}/return-charge/settle; test keys: POST /test/wallet, POST /test/shipments/{id}/advance
shipments:cancelPOST /shipments/{id}/cancelPOST /shipments/{id}/cancel
tracking:readPOST /shipments/{id}/refresh-tracking, GET /track/{trackingNumber}GET /track/{trackingNumber}, POST /shipments/{id}/refresh-tracking
pickups:cancelnone yet (reserved)Reserved — no endpoint uses this scope yet
balance:readGET /balanceGET /balance (a test key: its test wallet)
complaints:writePOST /complaintsPOST /complaints
complaints:readGET /complaints, GET /complaints/{id}GET /complaints, /complaints/{id}
platform:readGET /platformGET /platform (a platform's service-account key)
accounts:readGET /accounts/{externalId}GET /accounts/{externalId} (a platform's service-account key)
accounts:writePOST /accounts, DELETE /accounts/{externalId}/link, POST /test/accounts/{externalId}/answerPOST /accounts, DELETE /accounts/{externalId}/link; test keys: POST /test/accounts/{externalId}/answer
accounts:loginPOST /accounts/{externalId}/login-linkPOST /accounts/{externalId}/login-link — one-time sign-in links into a linked person's IDS cabinet
pickup_locations:readGET /pickup-locations, GET /pickup-locations/{externalId}GET /pickup-locations, GET /pickup-locations/{externalId}
pickup_locations:writePUT /pickup-locations/{externalId}PUT /pickup-locations/{externalId}
events:readGET /events, GET /shipments/{id}/eventsGET /events, GET /shipments/{id}/events
webhooks:managePOST /webhook-endpoints, GET /webhook-endpoints, GET /webhook-endpoints/{id}, DELETE /webhook-endpoints/{id}, POST /webhook-endpoints/{id}/rotate-secret, POST /webhook-endpoints/{id}/testPOST, GET /webhook-endpoints; GET, DELETE /webhook-endpoints/{id}; POST /webhook-endpoints/{id}/rotate-secret, /test — your webhook endpoints (x-conventions.webhooks)
adjustments:writePOST /shipments/{id}/adjustments/{adjustmentId}/dispute, POST /shipments/{id}/adjustments/{adjustmentId}/settle, POST /test/shipments/{id}/adjustments/{adjustmentId}/decidePOST /shipments/{id}/adjustments/{adjustmentId}/dispute, /settle — a carrier surcharge of your shipment (reading them: shipments:read); test keys: POST /test/shipments/{id}/adjustments/{adjustmentId}/decide
refunds:writePOST /shipments/{id}/refunds/{refundId}/confirmPOST /shipments/{id}/refunds/{refundId}/confirm — you refunded your buyer what IDS recorded as owed (reading them: shipments:read)

Conventions

  • Request bodies are JSON only: send Content-Type: application/json. Any other content type, and a malformed or empty JSON body, returns 400 VALIDATION_FAILED. Bodies are limited to 1 MB — except a complaint (up to 28 MB: its files travel as base64) and an adjustment dispute (about 13 MB).
  • For POST endpoints without a meaningful body (cancel, refresh-tracking) send {} with Content-Type: application/json, or send no body and no Content-Type header.
  • Unknown fields are rejected. Every request object is strict: a field the API does not define (for example quantity, environment, hazmat or retailNetPrice) returns 400 VALIDATION_FAILED, and error.details[].path names it. In answers it is the other way round: ignore what you do not know — IDS adds fields, event types and codes within v1 (versions & changes).
  • Money in whole cents. Every amount is a whole number of cents, and next to it is the same amount as an integer: amountMinor (or <field>Minor) — 116.21 and 11621. In a quote net + vat = total exactly; the charge, the stored total and the answer are one number. What you owe (a shortfall, a debt) is rounded up to the cent, what you hold (a balance) down, any other amount half away from zero. Use the integer fields for arithmetic.
  • Instants are ISO 8601 with an offset (Z); calendar days (shipDate, due dates) are YYYY-MM-DD — IDS's business days in Europe/Bucharest; pickup.date is checked against today..+10 days in UTC; a carrier's delivery date is its local time without an offset. Weight in KG / LB, dimensions in CM / IN, per box.
  • Every response, errors included, carries an X-Request-Id header. Quote it to support.

The conventions of the contract

As the OpenAPI document states them (x-conventions):

keys

SEC: a key has a kind and an expiry — a platform's service key lives a year, a client's key six months from its issue (IDS settings; IDS may set an earlier date, never a later one), never without an end; an expired key answers 401. A rotation changes the secret, never the term: IDS gives a new key (shown once) with the same expiry, and the old one keeps working next to it for the overlap (7 days by default, never past its own expiry), then stops — switch within it. A later expiry is a separate, recorded change of the working key (by IDS, or in the cabinet for a cabinet key), at most the kind's lifetime from that key's issue. A key that leaked is revoked: it stops at once, the very next request is 401 in every copy of the server (IDS reads the key on every request); the webhook endpoints it created are switched off with it. A key stops with its account: an account switched off, not approved or closed (for an employee's key, its franchise owner's) answers 403 API_ACCOUNT_DISABLED; a suspended platform's keys read, cancel and file complaints only (403 PLATFORM_SUSPENDED). IDS may give a key a list of public IP addresses or networks (at most /8 for IPv4, /32 for IPv6): a request from another address answers 403 API_KEY_IP_NOT_ALLOWED. IDS may change the scopes, limits, expiry and IP list of a key after issue only as the API Terms of Use allow (for a valid reason, telling the holder beforehand where possible; at once only for a serious reason such as misuse or a leak) — the next request already follows them. IDS watches each key against its account's usual (bursts of bookings or errors, new countries, failed authentications, requests from outside its IP list) and alerts its staff; nothing is stopped automatically and there is no money ceiling. KEY: a shop or any client IDS allowed creates, changes, rotates and revokes its own client keys and webhook endpoints in the IDS cabinet (Integrations / API) — the key is shown once, the account confirms its identity again before a key is issued or given more tasks; a key works only once its account accepted the API Terms of Use (/legal/api-terms; any accepted version keeps it working) or IDS recorded a signed agreement — else 403 API_TERMS_NOT_ACCEPTED; the account gets a letter (never the key itself) when a key is created, replaced, given more tasks, revoked, and before it expires.

rateLimits

SEC (ТЗ I4): limits per minute, counted together by every copy of the server — the key's requests (120 by default, or the key's own), its quotes apart when IDS sets a quote limit (POST /quotes and return quotes; a quote whose plan has N shipments counts as N), and, for a platform, every key of it together per environment (test traffic never takes from live). Before authentication a client IP has a flood ceiling per environment tag (test and live counted apart — a test run never blocks live requests from the same address). Every limit answers 429 RATE_LIMITED, retryable, with a Retry-After header (seconds) and retryAfterSec, limit and limitScope (key | key_quotes | platform | platform_quotes | ip) in the body: wait that long, then retry — a booking retried with the same Idempotency-Key never books twice. The window is the last 60 seconds, counted in 10-second slices (the oldest slice by its share still inside the window): a client sending evenly at its limit is let through; a burst at a slice's end may pass up to about one slice's worth more.

cancellations

CXL: a cancellation is judged by whether the carrier took the parcel — its scans in the shipment's history and its pickup request, after IDS refreshes tracking — never by the carrier's answer to the cancel. Before that (a shipment booked by a platform always; a shop's own shipments when IDS switches the rule on, else the pickup-date rule): the label and its pickup are cancelled (a pickup shared with other shipments stays for them) and the delivery is refunded in full — to your balance or test wallet (refund.status refunded), or, paid on the platform (platform_collected), recorded as owed to your buyer (refund.status refund_due, refund.refundId; event shipment.refund.updated {status: due}): refund the buyer on the original payment, then POST /shipments/{id}/refunds/{refundId}/confirm {refundRef, amountMinor, currency} — idempotent; IDS alerts its staff when a refund stays unconfirmed. A repeated cancel after you confirmed answers refund.status refunded (target platform_payment) — never refund twice. After the carrier took the parcel: nothing is cancelled or refunded — 202 with cancelRequest {state open} (event shipment.cancel_request.updated); IDS reviews it: declined (the delivery goes on), return_ordered (a stop or return to the sender arranged with the carrier) or cancelled (the label voided; a refund, if IDS decides one, is recorded apart — reason admin_decision). The same request answers a repeated cancel. This concerns cancelling the delivery; it does not limit a consumer's rights in the sale: a buyer who withdraws from the purchase under Government Emergency Ordinance No. 34/2014 has the delivery price refunded through the platform, as clause 17.3 of the IDS Terms of Service provides — tell IDS ([email protected], with the shipment id): IDS reviews it and records the refund (reason admin_decision, for a payment taken on the platform); refund the buyer without undue delay and at the latest within the period the law sets.

adjustments

CXL: a late carrier charge of your shipment (heavier or bigger than declared, address correction, remote area, a courier called without a parcel ready, duties advanced) is a carrier adjustment: kind, the declared and the measured boxes, the responsible party and the amount at the IDS tariff — the IDS price of the parcel as measured minus the IDS price as declared, with the same tariff, exchange rate and booking day (basis ids_tariff_recalculation; duties advanced: carrier_disbursement at the booking's rate). The seller is responsible only for weight or dimensions (measured beyond the tolerance IDS sets) — never for an address, an area, a fee, duties, a rate or tariff, an IDS or a carrier error; buyer only records who caused a charge: IDS never charges the buyer and the buyer's price never changes (a buyer may be asked to pay more only through a separate change of the order the buyer accepted beforehand). No carrier figure or document is ever shown. You see an adjustment once IDS tells you of it (event shipment.adjustment.created, status notified; then .updated); GET /shipments/{id}/adjustments. A notified adjustment can be disputed until disputeUntil — the end of the Bucharest day IDS's letter names; a later dispute is still taken while nothing is settled (POST …/dispute {reason, attachments}; the seller sees the explanation); IDS decides (confirmed or withdrawn, decision.note). A charge of the seller may be withheld from the payout or paid by the seller only once IDS confirmed a dispute, or after disputeUntil without a dispute (409 ADJUSTMENT_DISPUTE_PERIOD before; 409 ADJUSTMENT_NOT_SELLERS for another party); any adjustment may be waived. Mark it (POST …/settle {method, reference}); IDS never charges your balance for it. A cost adjustment IDS charged to an account (source of the account's own charge) is settled by its payment and cannot be marked. Repeat violations are counted by IDS (confirmed, or settled with the seller); no penalty is charged without an agreed basis. Test keys: the scenario adjustment records one at the AR step (notified) and POST /test/shipments/{id}/adjustments/{adjustmentId}/decide plays IDS's decision.

money

Every amount is a number of whole cents (minor units) of its currency, with the same amount as an integer beside it: amountMinor next to an amount, <field>Minor next to any other money field. Use the integers for arithmetic. A quote and a charge are in the payer's balance currency (ISO 4217). net + vat = total exactly.

rounding

What the client owes (a shortfall, a debt) is rounded up to the cent; what it holds (a balance, credit available) down; any other amount (a price, a charge, a refund) half away from zero. Rounding happens once, when IDS prices; amounts are never re-rounded on the client.

units

Weight in KG or LB (weightUnit), dimensions in CM or IN (dimUnit), per box; the volumetric divisor in cm³/kg. One packages[] element is one box. The carrier receives each side as a whole number by its own rule — FedEx (its rate sheet for Romania, from 5 January 2026): any fraction up to the next whole centimetre (60.6 cm goes as 61), IDS applies the same to inches; in quotes and bookings alike — while IDS stores your own figures unchanged; the declared boxes of a carrier adjustment are the whole sides the carrier received.

time

Instants are ISO 8601 with an offset (UTC, "Z"). Calendar days (shipDate, resolveBy, due dates) are YYYY-MM-DD; IDS's business days are in Europe/Bucharest. A carrier's deliveryDate is the carrier's local time without an offset. pickup.date is checked against today..+10 days in UTC.

identifiers

Shipment, document and complaint ids are UUIDs; a quoteId is qt_ + 32 hex. A shipment is also found by its master tracking number.

addresses

You send addresses in any script; IDS keeps your original and the carrier gets the label address — Latin letters (Cyrillic: ICAO Doc 9303 with its Ukrainian and Serbian notes, Bulgarian: the 2009 Transliteration Act; Greek: ELOT 743; diacritics dropped), the phone with +, the postal code in the country's form, 35 characters per line. Answers carry labelAddresses; warnings with a path say what changed. Another script (Chinese, Arabic, …) is refused with the field's path: send a Latin spelling.

errors

An error is { error: { code, message, retryable, details?, requestId, … } } — never the success shape. Read retryable from each answer; x-errorCodes lists every code with its HTTP status, default retryable and the shape of details. A retryable temporary failure (429 RATE_LIMITED, 409 IDEMPOTENCY_IN_PROGRESS, a quote or an operationRef another booking is using, a carrier that did not answer) carries a Retry-After header: wait that many seconds. A 402 is retryable after a payment, not after a wait (no Retry-After).

bookings

A booking is one operation. Send your own operationRef (unique per account and environment — e.g. the order's delivery id) with the Idempotency-Key: a retry with the same key replays the answer; a second booking with the same operationRef under another key answers 409 OPERATION_REF_TAKEN with the booked shipments instead of booking twice. Lost the answer (a timeout, a crash)? First look the booking up — GET /shipments?operationRef= — and decide from what it shows; never book again blindly (a shipment of an operation still running is not listed until it is paid). A quote whose plan splits the boxes into several shipments (shipmentCount > 1) is booked in one call: every shipment of the plan is booked and paid together, or none is (a failure voids the labels already made; nothing is charged); the answer is a BookingGroup (one Booking per shipment, the plan's total, one pickup for all of them when pickup is sent). Across a border a plan ships documents only — quote and book each shipment's boxes separately when they carry goods. The ship date is the pickup's day, else the next business day in Bucharest (x-conventions.pickups). Labels: PDF 10×15 cm by default (labelSize PAPER_4X6), thermal ZPL II / EPL2 on 4×6 / 4×8 stock, and GET /shipments/{id}/labels/pdf?layout=a4 puts each PDF label on an A4 sheet at its own size; downloading again never makes a new carriage. payment.paidAt, createdAt (the label) and pickup.requestedAt are separate facts.

pickups

A booking with pickup.locationExternalId (one of your pickup places — PUT /pickup-locations/{externalId}) has its courier called by IDS from the place's schedule: the readiness counts from the confirmed payment (platform.payment.confirmedAt; else the booking) in the place's working time — across nights, weekends, the country's public holidays and the place's exceptions — plus its preparation time, never later than the same time of the next working day of the place; then the first carrier window that starts no earlier than the readiness and fits both the place's hours and what the carrier offers there (its ready times, cut-off and access time), the next working day when today has none. FedEx Express books only today or the next business day: a later day is a deferred task (request.status planned, bookAfter) — never shown as confirmed. The shipments of one place, carrier and day join one pickup when they are ready before its window starts; a shipment ready later gets a pickup of its own. The ship date is the pickup day. A pickup the carrier refuses, a window missed, a lost answer, retries exhausted or a courier who did not come is a problem IDS is alerted to and handles (retry, another window, or the seller handing the parcels in as an agreed exception) — the paid booking is never cancelled for it. pickup.date (+ readyTime, closeTime) instead of a place: that window at the shipper's address, through the same pickup requests (a same-day ready time is never in the past; an empty window is a problem, not a request). GET /shipments/{id}/pickup: state, readyAt, the request.

platformPayments

A platform of IDR itself (Express.Market) may be set by IDS to «paid on the platform» (GET /platform paymentMode platform_collected — IDS switches it on; until then its live bookings answer 409 PLATFORM_PAYMENT_MODE_UNAVAILABLE, while its test keys already book this way, so the switch changes nothing in the platform's code or keys): the buyer pays goods and delivery to the platform in one action, and the platform books right after its payment provider confirmed the payment. Such a booking is made from a quote with an operationRef and carries platform.payment { ref (the platform's payment id), amountMinor, currency, confirmedAt }: amountMinor and currency must be exactly the quote's total of the chosen service (a plan: its sum) — otherwise 422 PLATFORM_PAYMENT_MISMATCH and nothing is booked. IDS records the payment in the same transaction that makes the shipments paid; no IDS balance, bonus or debt is touched. An order cancelled before the carrier takes over the parcel: the platform refunds the buyer the delivery price on the original payment (Terms 7.7); a cancellation after that is not refunded automatically. While IDS invoices the delivery to the buyer (invoiceRecipient delivery_customer), a platform's booking also carries platform.deliveryCustomer (person or company, name, address, the company's codes) and platform.buyerAcceptance — the buyer's express acceptance, before paying, of the IDS Terms and the postal conditions that are part of them (GET /metadata buyerDocuments: terms and postal_conditions in their current versions; privacy — shown, optional) and when; IDS keeps it with the shipment as evidence (an IP address or browser sent with it is not stored). The platform attaches the two PDFs to its order confirmation e-mail — a link alone is not a durable medium. INV: such a platform books from a quote (inline → 400, path quoteId) for a delivery customer of the kind the quote named (buyer; another kind → 422 QUOTE_MISMATCH, path platform.deliveryCustomer), and the delivery customer carries what the invoice prints — a Romanian county (address.stateCode or the six-digit postal code), a Bucharest sector, a company's tax code, Latin letters — else 400 with each details[].path (another script: details[].code LATIN_SPELLING_REQUIRED). A test key of a platform of IDR itself always books paid on the platform (its GET /platform answers paymentMode platform_collected), also before IDS switches the platform over: it records a test payment (environment sandbox) — no money, never in the production reconciliation.

testMode

A test key (ids_test_…) never moves real money and never books a real carrier: it quotes and books with the simulated carrier (carrierCode SIMULATED: a deterministic price list in the real IDS pricing, labels marked «TEST — NOT A REAL SHIPMENT», tracking numbers SIM + 12 digits, pickups that send no courier) unless IDS switched the key to the FedEx sandbox; it pays from the account's test wallet (POST /test/wallet; GET /balance answers it with wallet «test»), never the real balance, a debt, a payment request, an invoice or a letter. testScenario (a quote, a booking) chooses what the carrier does — GET /metadata testScenarios; POST /test/shipments/{id}/advance moves a booking's scenario one step (a carrier scan) at a time, and IDS reads it through tracking as it reads a real carrier. Test and live objects never see each other (404).

accounts

A platform asks IDS to create or link the IDS account of one of its buyers or sellers (POST /accounts, by its own externalId of the person). No password ever passes between the platform and IDS. A new e-mail: IDS creates the account (a buyer: the private-client tariff; a seller the platform marks verified: the shop tariff — orders through the platform are always priced by the platform's tariff) and sends the person its letter naming the platform; the account becomes linked when the person activates it and accepts the IDS Terms. An existing account: linked only after its holder confirms in their IDS cabinet. Both answer state pending — the API never tells whether an e-mail has an account (and is rate-limited). Linked people see in their IDS cabinet the shipments booked for them through the platform (read-only; the seller never the buyer's price). POST /accounts/{externalId}/login-link makes a one-time link (≤ 60 s) into the person's cabinet: open it in their browser at once. A test key's links are simulated — no IDS account, no letter; POST /test/accounts/{externalId}/answer plays the person.

events

EV: IDS records every change of a shipment as an event in the same transaction as the change — the booking paid (shipment.created: a shipment of an operation still running is announced only once the operation is paid), each new carrier scan (shipment.tracking_updated), the status or the delivery state (shipment.status_changed, with the milestones shipment.picked_up, shipment.delivered, shipment.returned_to_sender, shipment.cancelled), the pickup (shipment.pickup.requested | confirmed | failed | cancelled | dropped_off), money back to you (shipment.refund.updated), an adjustment (shipment.adjustment.created) — and the complaints you filed (complaint.created, complaint.updated) and, for a platform, its people's account links (account.link.updated). Each event: a stable id (evt_…), its type, when it happened (occurredAt) and was recorded (createdAt), environment and livemode, and a sequence per subject (1, 2, …); every shipment event carries the shipment's current state, so apply «the latest sequence wins» — order is not guaranteed and an event may come twice (same id). Bodies carry ids, codes, states and your own references — never a person's name, address, phone, e-mail, the signer or the carrier's cost. deliveryState (x-conventions on Shipment) is normalised across carriers: delivered and collected_from_pickup_point are the handover to the recipient only; a return to the sender is returning_to_sender then returned_to_sender (never delivered, no actualDeliveryDate); lost only by the carrier's own code or IDS's decision (a later scan replaces it; it is no complaint and changes no complaint deadline). Follow GET /events with nextCursor (a position, never expires); events are kept 90 days. A test key's events are its scenario's (POST /test/shipments/{id}/advance → the scans → the events), never a live key's, and the other way round. A sweep every few minutes writes any event a change missed — never twice.

webhooks

WH: register an https endpoint (POST /webhook-endpoints, scope webhooks:manage) and IDS POSTs it every event your key reads in GET /events of the same environment (a test key's endpoint gets test events only, a live one live events only), from the moment it was created; eventTypes narrows it. Each delivery is signed by Standard Webhooks (standardwebhooks.com): headers webhook-id (the event id evt_… — the same on every retry and redelivery: deduplicate on it), webhook-timestamp (Unix seconds of this attempt) and webhook-signature (space-separated v1,<base64 HMAC-SHA256> over "<webhook-id>.<webhook-timestamp>.<raw body>" with the key = base64-decoded part of your whsec_ secret; two signatures while a rotated secret still signs — accept the request if any one matches). Verify against the raw bytes of the body, reject a timestamp more than 5 minutes off, store the event before acting on it, answer 2xx within 10 seconds (do the work after). The body is the event exactly as GET /events returns it. Anything but 2xx (a 3xx too — redirects are not followed) is retried: about 5 s, 5 min, 30 min, 2 h, 5 h, 10 h, 14 h, 20 h, then daily, for 72 hours from the event; then the delivery is dead (read the event from GET /events); an event already past its 72 hours (IDS paused sending) is not sent. At most 4 deliveries in flight per endpoint. Order is not guaranteed and an event may come twice: apply the latest sequence per subject. An endpoint answering 410 Gone, or failing for 72 hours without one success, is switched off (status disabled) and IDS is alerted; events while it is off are not sent — GET /events has them. POST /webhook-endpoints/{id}/rotate-secret gives a new secret (shown once); the previous one keeps signing next to it for 24 hours. POST /webhook-endpoints/{id}/test sends a ping event (type ping) to that endpoint only. An endpoint IDS's administrator switched off stays off: you cannot delete it nor register its host again (409 WEBHOOK_ENDPOINT_DISABLED) until IDS lifts it. At most 5 endpoints per account and environment, 20 created a day. The URL: https on port 443, a public host — never an internal network, a cloud metadata address or an address or domain of IDS; it is checked again before every attempt and the request goes to the address checked. Your API key never signs anything and the signing secret never authenticates an API call.

platforms

A platform (a marketplace that books IDS delivery for its buyers and sellers) uses keys of its service account. IDS takes the platform from the key — a request never names it — and applies its settings: its own tariff prices every quote and booking (no request field changes it), its countries (PRICING_UNAVAILABLE PLATFORM_ORIGIN_NOT_ALLOWED / PLATFORM_DESTINATION_NOT_ALLOWED), automatic coverage, quote validity and special goods; GET /platform shows them. A booking may carry platform { orderRef, shipmentRef, sellerExternalId, buyerExternalId }: stored, returned by every read and searched by (GET /shipments?platformOrderRef=…). A suspended platform reads, refreshes tracking, cancels and files complaints; its quotes, bookings and test operations answer 403 PLATFORM_SUSPENDED (a retry of a booking finished before replays). A platform of IDR itself books only paid on the platform (x-conventions.platformPayments); still set to the balance, its live bookings answer 409 PLATFORM_PAYMENT_MODE_UNAVAILABLE.

The flow: quote → book

  1. POST /quotes returns the services the carrier offers for the route, each with its fixed price in your balance currency. IDS stores the quote behind an opaque, single-use quoteId (GET /quotes/{id} reads it back), valid 30 minutes by default (then 410 QUOTE_EXPIRED). The answer keeps four checks apart in checks (address, service, price, pickup — a carrier that did not answer is unknown, never «not served») and shows in labelAddresses the shipper and recipient as the label prints them (Latin letters, the phone with +, the postal code in the country's form). No delivery for the item → 422 PRICING_UNAVAILABLE with a stable details.reason and details.buyerMessage in the request's locale.
  2. POST /shipments books from the quoteId plus selectedServiceType, or from a full inline body with service.type. It requires an Idempotency-Key header; send your own operationRef too. On 201 you are charged (or, a platform paid on the platform, your payment is recorded) and the labels are returned inline.
  • Customs are required for every cross-border route, intra-EU included (for example RO → DE): customs with documentsOnly: true or a non-empty commodities[] with a real customsValue. Only same-country routes skip customs.
  • Pickup: name your pickup place (pickup.locationExternalId, kept with PUT /pickup-locations/{externalId} — hours, time zone, holidays, preparation time) and IDS books the first courier window after the parcels are ready; or send pickup.date (today..+10 days) with readyTime / closeTime. A failed pickup never fails a booked, paid shipment — IDS is alerted and handles it.
  • One packages[] element per box: up to 40 in an inline booking, up to 100 in a quote.
  • Parcel limits of one box: up to 68 kg / 150 lb, longest side up to 274 cm / 108 in, length + girth up to 330 cm / 130 in. Over them it is freight, which IDS does not sell online: 422 PACKAGE_EXCEEDS_PARCEL_LIMITS.
1 · Quote at checkout (RO → RO, coverage)
curl -s https://ids.express/api/v1/quotes \
  -H "Authorization: Bearer $IDS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "shipper":   { "address": { "line1": "Calea Victoriei 1", "city": "Bucharest",
                                "postalCode": "010061", "countryCode": "RO" } },
    "recipient": { "address": { "line1": "Strada Memorandumului 28", "city": "Cluj-Napoca",
                                "postalCode": "400114", "countryCode": "RO" } },
    "packages":  [ { "weight": 2, "weightUnit": "KG", "length": 20, "width": 15, "height": 10, "dimUnit": "CM",
                     "contentValue": { "amount": 450, "currency": "RON" } } ],
    "coverage":  "auto",
    "locale":    "ro"
  }'
2 · Book from the quote, with a pickup place
OPERATION_KEY=$(uuidgen)   # once per booking; reuse it on every retry

curl -s https://ids.express/api/v1/shipments \
  -H "Authorization: Bearer $IDS_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $OPERATION_KEY" \
  -d '{
    "quoteId": "<quoteId from /quotes>",
    "selectedServiceType": "<one of the quoted services[].serviceType>",
    "operationRef": "ORDER-1001-D1",
    "shipper":   { "contact": { "name": "Acme Store", "phone": "+40700000000" },
                   "address": { "line1": "Calea Victoriei 1", "city": "Bucharest", "postalCode": "010061", "countryCode": "RO" } },
    "recipient": { "contact": { "name": "Ana Popescu", "phone": "+40740000000" },
                   "address": { "line1": "Strada Memorandumului 28", "city": "Cluj-Napoca", "postalCode": "400114", "countryCode": "RO" } },
    "pickup":    { "locationExternalId": "wh-bucharest-1" }
  }'
3 · Cross-border inline booking with customs and a pickup date (RO → DE)
curl -s https://ids.express/api/v1/shipments \
  -H "Authorization: Bearer $IDS_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $OPERATION_KEY" \
  -d '{
    "shipper":   { "contact": { "name": "Acme Store", "phone": "+40700000000" },
                   "address": { "line1": "Calea Victoriei 1", "city": "Bucharest",
                                "postalCode": "010061", "countryCode": "RO" } },
    "recipient": { "contact": { "name": "Hans Müller", "phone": "+4915112345678" },
                   "address": { "line1": "Unter den Linden 1", "city": "Berlin",
                                "postalCode": "10117", "countryCode": "DE" } },
    "packages":  [ { "weight": 2, "weightUnit": "KG",
                     "length": 30, "width": 20, "height": 10, "dimUnit": "CM" } ],
    "service":   { "type": "FEDEX_REGIONAL_ECONOMY" },
    "customs":   { "shipmentPurpose": "SOLD", "incoterms": "DAP", "dutiesPayment": "SENDER",
                   "commodities": [ { "description": "Cotton t-shirts", "quantity": 3,
                                      "weight": 0.6, "customsValue": 45,
                                      "customsValueCurrency": "EUR", "harmonizedCode": "610910",
                                      "countryOfManufacture": "RO" } ] },
    "pickup":    { "date": "<YYYY-MM-DD, today..+10 days>",
                   "readyTime": "09:00", "closeTime": "18:00" }
  }'

The full cycle step by step: the platform guide and the shop guide. Every answer field by field: the reference.

Operations

All under https://ids.express/api/v1; each links to its reference page.

Idempotency & a lost answer

POST /shipments, POST /shipments/{id}/cancel, POST /shipments/{id}/returns and POST /complaints require an Idempotency-Key header of 1 to 255 characters. Generate one key per logical operation (for example per order's delivery) and reuse it on every retry of that operation. Keys are unique per account across all endpoints and both environments — never reuse a booking key for its cancel. Stored answers are kept 7 days.

SituationResult
Same key, same request, first one finishedThe stored response is replayed: no second label, no second charge.
Same key, first request still running409 IDEMPOTENCY_IN_PROGRESS with Retry-After. Retry later with the same key.
Same key, first request stopped without an answer (no sign of life for 10 minutes; a slow one stays in progress)409 IDEMPOTENCY_UNDER_REVIEW, not retryable. Look the booking up (GET /shipments?operationRef= or ?reference=) and use a NEW key only if it is not there.
Same key, different body, endpoint or environment409 IDEMPOTENCY_CONFLICT.
Booking answered 402 PAYMENT_REQUIREDNo label is left and the key is released. Top up and retry with the same key. Only a label that could not be voided closes the key (retryable:false).
Booking outcome could not be confirmed500 INTERNAL_ERROR, replayed for the same key. Check GET /shipments before retrying with a NEW key.
Another key, the same operationRef409 OPERATION_REF_TAKEN before anything is booked: details.state booked (details.shipmentIds — do not book again), booking_in_progress (retry after Retry-After) or under_review (contact IDS).

A 201 can carry the warning FINALIZATION_PENDING: the shipment is booked and paid but finalization failed, so labels may be unavailable — contact support with the shipment id; do not book again.

Rate limits

  • Per API key: 120 requests per minute by default, over the last 60 seconds; IDS can set a key's own limit, and a separate limit for its quotes. A quote split into a plan of N shipments counts as N requests and N quotes.
  • Per platform: IDS can limit every key of a platform together, per environment — test traffic never takes from live.
  • The limits are counted together by every copy of the IDS server (they do not double during an update).
  • Per client IP: a flood ceiling — 600 requests per minute by default, an IDS setting — per environment of the key presented (test, live and no key count apart). It applies before authentication, so it also counts /ping, /openapi.json and failed authentications.
  • Every limit answers 429 RATE_LIMITED (retryable) with a Retry-After header in seconds; the body also carries retryAfterSec, limit and limitScope (key, key_quotes, platform, platform_quotes or ip). Every retryable temporary failure carries Retry-After too (409 IDEMPOTENCY_IN_PROGRESS, a carrier that did not answer). There are no X-RateLimit-* headers.

Keys: expiry, rotation, revocation

  • Every key expires: a platform's service key after at most 12 months, a client's key after at most 6 (the exact date is on the key; letters 30 and 7 days before). Rotate before it: you get a new key (shown once) and the old one keeps working next to it for the overlap (7 days by default, never past its own expiry), or stops at once if you choose so.
  • A key that leaked is revoked: it stops at once, the very next request is 401, and the webhook endpoints it created are switched off. Tell IDS at once if a key leaked ([email protected]).
  • A key stops with its account: an account switched off, not approved or closed answers 403 API_ACCOUNT_DISABLED. IDS may accept a key only from a list of public IP addresses (403 API_KEY_IP_NOT_ALLOWED).
  • IDS may change a key's scopes, limits, expiry and IP list after issue only as the API Terms of Use allow — for a valid reason, telling you beforehand where possible; at once only for a serious reason such as a leak or misuse — and the next request follows them. IDS watches each key for anomalies and alerts its staff; nothing is stopped automatically and there is no money ceiling on bookings.
  • In the cabinet (Integrations / API) a shop creates, changes, replaces and revokes its own keys and webhook endpoints, after confirming its identity again (its password or a Google sign-in); the account's e-mail gets a letter (never the key) for each change, and the page shows the request log of the last 90 days.

Balance & payment

  • A shop's booking is paid from its prepaid real balance, in its balance currency. API bookings never use bonus balance. A platform of IDR itself may book paid on the platform once IDS sets its payment mode to platform_collected (GET /platform; until then it books from its balance): it sends platform.payment (exactly the quote's total) and no balance is touched (platform guide).
  • If the real balance does not cover the price, or there is any pending debt, the booking returns 402 PAYMENT_REQUIRED (retryable) and nothing is charged. In production the balance is checked against a fresh quote before the label is booked, so no label is created; a booking from a quote is checked against the quote's fixed price exactly. With a test key the test wallet answers the same 402s (see test mode). error.paymentRequired holds shortfall, availableBalance, availableBonus, pendingDebt, totalRequired, each with its …Minor, and currency. The Idempotency-Key is released: top up and retry with the same key.
  • Deferred payment (company accounts, under an individual written contract with IDR — Terms of Service 6.2; IDS then switches it on): a booking past the balance goes into a minus, one debt per booking with its own due date, up to the credit limit — past it 402 CREDIT_LIMIT_EXCEEDED; with overdue blocking switched on for the account, overdue debt past the block period answers 402 CREDIT_OVERDUE_BLOCKED before the carrier is called. GET /balance shows credit (null without deferred payment).

Cancel & refunds

  • POST /shipments/{id}/cancel (Idempotency-Key) cancels the label and its pickup and refunds the delivery in full while the carrier has not taken the parcel (Terms of Service 7.7, 8.1); otherwise refund.status says why not. refund.status: refunded, refund_due (paid on the platform — you refund your buyer), not_eligible, blocked_pickup_window, pending_review (cancel again with a new key to complete it) or not_applicable.
  • By the carrier's pickup scan (a platform's shipments always): before the carrier took the parcel — 200, cancelled and refunded in full; after it — 202 with a cancelRequest (state open): nothing is cancelled or refunded automatically, IDS decides (a return arranged with the carrier, the label cancelled, or declined; event shipment.cancel_request.updated).
  • Paid on the platform: refund your buyer on the original payment, then POST /shipments/{id}/refunds/{refundId}/confirm { "refundRef": "…", "amountMinor": …, "currency": "RON" } (exactly the amount owed). A repeated cancel after the confirmation answers refunded — never refund twice.
  • This concerns cancelling the delivery. It does not limit a consumer's rights in the sale: a buyer who withdraws from the purchase of the goods under Government Emergency Ordinance No. 34/2014 has the delivery price refunded through the platform, as clause 17.3 of the IDS Terms of Service provides. Tell IDS ([email protected], with the shipment id): IDS reviews it and records the refund (reason: admin_decision, for a payment taken on the platform). Refund the buyer without undue delay and at the latest within the period the law sets.
  • A delivered shipment cannot be cancelled (400 VALIDATION_FAILED). If the carrier cancel fails you get 422 CARRIER_ERROR and the shipment is unchanged; read error.retryable.

Carrier adjustments

  • A late carrier charge — heavier or bigger than declared, an address correction, a remote area, a courier called without a parcel ready, duties advanced — is a carrier adjustment: GET /shipments/{id}/adjustments, events shipment.adjustment.created / .updated. The amount IDS attributes to the responsible party: for weight or dimensions, the IDS price of the parcel as the carrier measured it minus the IDS price as declared (same tariff, exchange rate and booking day — the declared and measured boxes are shown, no carrier figure); duties or taxes the carrier advanced pass on at the booking's rate. The buyer's price never changes. A shop's own shipment: a later charge follows the IDS Terms of Service (6.3), with the evidence of the measurement.
  • responsibleParty seller only for weight or dimensions beyond the tolerance IDS sets. A notified adjustment can be disputed until disputeUntil; IDS decides. Mark how you settled it: withheld_from_seller / paid_by_seller only for a charge of the seller, where your agreement with the seller provides for it, once IDS confirmed a dispute or after disputeUntil; waived — any. IDS never charges your balance for a platform's adjustment; no penalty is charged without an agreed basis.

Returns

  • A return is its own shipment from the buyer back to the seller, linked to the original: POST /shipments/{id}/return-quotes prices it on its own (the carrier's return label — never assumed to cost what the outbound cost) and POST /shipments/{id}/returns books it from that quote (Idempotency-Key, the quote's exact price, operationRef).
  • payer is your decision, never IDS's, and must respect the buyer's rights: a consumer who withdraws from a purchase from a trader bears the direct cost of the return only if told so before the purchase; a consumer returning non-conforming goods to a trader bears no cost of carriage. A return charged to your seller is settled with POST /shipments/{id}/return-charge/settle.
  • Hand-over by courier where the carrier collects at the buyer's address (FedEx does not collect from homes in Bucharest — 422 RETURN_PICKUP_UNAVAILABLE) or at a drop-off point; send dropOffNear (the buyer's coordinates) to list points. Show the buyer buyerNotice unaltered next to the price. A return the buyer pays is a new order of the buyer: the same checkout rules apply (the acceptance box, a pay button that says the order implies payment, the confirmation e-mail with the PDFs; platform.buyerAcceptance on the return booking). A return across the EU's customs border answers 422 RETURN_IMPORT_DUTIES_UNSET until IDS sets who bears its import duties.

Delivery invoices

  • When IDS invoices a platform's buyers (GET /platform invoiceRecipient delivery_customer), the delivery is IDR's service to the buyer: IDS prepares the delivery invoice to the booking's platform.deliveryCustomer once the payment is confirmed; a cancellation or refund is reversed by a storno. GET /shipments/{id}/invoices lists the issued documents and GET /invoices/{id}/pdf is the document itself — show them in your cabinet.
  • VAT follows the kind of buyer and the route, by a table IDS's accountant approves: name the buyer in the quote (buyer { type, countryCode, vatNumber }). Until a kind of buyer and route is approved a live quote answers 422 VAT_SCENARIO_NOT_APPROVED.

Test mode

  • A test key quotes and books with the simulated carrier: carrierCode SIMULATED, a deterministic price list priced through your real IDS tariff, labels marked TEST — NOT A REAL SHIPMENT, tracking numbers SIM + 12 digits, pickups that send no courier. IDS can switch a test key to the FedEx sandbox to check the FedEx connection; then testScenario is refused.
  • It pays from your account's test wallet (a new wallet holds 0; shared by the account's test keys): POST /test/wallet with balance, topUp, creditLimit or overdueBlocked. The test wallet answers the same 402s as real money: 402 PAYMENT_REQUIRED, CREDIT_LIMIT_EXCEEDED or CREDIT_OVERDUE_BLOCKED; a cancel refunds the test wallet. A platform paid on the platform records a test payment instead. At most 1000 test bookings per account in 24 hours.
  • testScenario on a quote (also a return quote): route_not_served, address_invalid, address_unknown, pickup_unavailable, residential_pickup_unavailable, slow, carrier_error, carrier_error_retryable. On a booking (default delivered): 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. GET /metadata → testScenarios lists them with their steps.
  • A test shipment stays at «label created» until you move it: POST /test/shipments/{id}/advance reports the next carrier scan(s) and IDS reads them at once, as from a real carrier — and turns them into events. Test and live objects never see each other. Real parcels, real payments and a real e-invoice submission are never tested through a test key.

Test plan before going live

CheckHow, with a test key
Price, then book from the quotePOST /quotes → POST /shipments {quoteId, selectedServiceType, operationRef}; charge = the quoted total.
A lost answerBook, drop the answer, then GET /shipments?operationRef=…; repeat the same request with the same key: the same answer, no second booking.
A route not servedtestScenario route_not_served on the quote → 422 PRICING_UNAVAILABLE with details.buyerMessage — show it to the buyer.
The carrier failscarrier_error_retryable (retry later) and carrier_error (do not repeat) on a quote and on a booking.
Delivered and the eventsBook with delivered, POST /test/shipments/{id}/advance step by step; follow GET /events and your webhook endpoint.
Never «delivered» by mistakereturned_to_sender and pickup_point: no delivered state until the recipient took the parcel.
A late carrier chargeadjustment: shipment.adjustment.created, dispute, POST /test/…/adjustments/{id}/decide, settle with the seller.
The pickup goes wrongBooking scenarios pickup_failed, pickup_timeout, pickup_retryable, pickup_missed — the paid booking stands, IDS handles the pickup.
Cancel before and after the pickup scanCancel at once (refunded / refund_due) and after advancing past the pickup scan (202 with a cancel request).
Money limitsPOST /test/wallet {balance: 0} → 402 PAYMENT_REQUIRED; creditLimit, overdueBlocked → 402 CREDIT_LIMIT_EXCEEDED / CREDIT_OVERDUE_BLOCKED.
Duplicates and order of eventsduplicate_scan and out_of_order: apply «the latest sequence wins», deduplicate on the event id.

Events & tracking history

  • IDS keeps every carrier scan (scans on GET /shipments/{id} and GET /track/{trackingNumber}) and a normalised deliveryState next to status. Only delivered and collected_from_pickup_point are the handover to the recipient — the only states a payout or withdrawal clock may start on (for an order delivered in several shipments, the consumer's withdrawal period runs from the delivery of the last one — OUG 34/2014 art. 9 (2) b)); at_pickup_point is waiting for collection; returned_to_sender is never delivered; lost comes only from the carrier's code or IDS's decision.
  • Every change of a shipment is an event, recorded with the change itself: shipment.created (booked and paid), shipment.tracking_updated, shipment.status_changed, the milestones shipment.picked_up, shipment.delivered, shipment.returned_to_sender, shipment.cancelled, the pickup's shipment.pickup.*, shipment.refund.updated, shipment.cancel_request.updated, shipment.adjustment.created / .updated; and complaint.created, complaint.updated, account.link.updated.
  • Read them with GET /events?after=…: send the nextCursor of your last page and you get the ones after it — none is skipped; events are kept 90 days. Treat the cursor as opaque: store it and send it back, never build or compare it. Each event has a stable id, a sequence per subject and the subject's current state: apply «the latest sequence wins» (order is not guaranteed; the same event may come twice). Events never carry a person's name, address, phone, e-mail or the carrier's cost.

Webhooks

  • POST /webhook-endpoints (scope webhooks:manage) registers an https endpoint; IDS POSTs it every event your key reads in GET /events of the same environment, signed by Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature). The signing secret whsec_… is shown once.
  • Verify the raw bytes, reject a timestamp more than 5 minutes off, deduplicate on webhook-id, store, answer 2xx within 10 seconds, then process. Anything else is retried for 72 hours; then the event waits in the feed. Tested examples in Node.js, Python and PHP: webhooks guide.

Errors

Every error uses one envelope: code, message, retryable, optional details, code-specific fields (paymentRequired, creditLimit, creditOverdue; retryAfterSec, limit and limitScope) and requestId. Always read retryable from the response: true means the same request can succeed later — after a wait, a top-up, or once the first request with the same Idempotency-Key has finished.

{
  "error": {
    "code": "PAYMENT_REQUIRED",
    "message": "Insufficient balance for shipment",
    "retryable": true,
    "paymentRequired": {
      "shortfall": 42.5, "shortfallMinor": 4250, "availableBalance": 20, "availableBalanceMinor": 2000,
      "availableBonus": 0, "availableBonusMinor": 0, "pendingDebt": 0, "pendingDebtMinor": 0,
      "totalRequired": 62.5, "totalRequiredMinor": 6250, "currency": "RON"
    },
    "requestId": "8ba0c9d0-ee75-42de-99b5-f1f4157cdf7d"
  }
}

The catalog, as the contract publishes it (x-errorCodes; «varies» — read the flag of each answer):

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

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

  • API_DISABLEDHTTP 503retryable: no

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

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

  • NOT_FOUNDHTTP 404retryable: no

    Unknown path, or an object this key may not see (another account, the other environment).

  • 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_EXPIREDHTTP 410retryable: no

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

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

  • QUOTE_MISMATCHHTTP 422retryable: nodetails: ValidationIssues

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

  • QUOTE_PLAN_NOT_BOOKABLEHTTP 422retryable: nodetails: QuotePlanDetails

    No longer answered since 31.10.2026 (BOOK): a quote whose plan splits the boxes into several shipments is booked in one call (all or none). Kept in the catalogue.

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

  • LABEL_UNAVAILABLEHTTP 409retryable: no

    The PDF labels cannot be given as one file: the shipment is cancelled (its labels are void), a box has no label, or the labels are thermal (ZPL II / EPL2) or PNG — GET /shipments/{id}/labels returns those.

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

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

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

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

  • CURRENCY_RATE_MISSINGHTTP 503retryable: no

    IDS has no exchange rate for the balance currency.

  • CARRIER_NOT_CONFIGUREDHTTP 503retryable: no

    The carrier credentials of this environment are missing.

  • INTERNAL_ERRORHTTP 500retryable: no

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

  • TEST_MODE_ONLYHTTP 403retryable: no

    An operation of the test mode (/test/…) with a live key — test keys (ids_test_…) only.

  • TEST_SCENARIO_UNAVAILABLEHTTP 409retryable: no

    The shipment has no simulated scenario to read or move: it was booked with the FedEx sandbox, or its label was cancelled.

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

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

  • PLATFORM_KEY_REQUIREDHTTP 403retryable: no

    Accounts of a platform's people are for a platform's service-account key only — this key belongs to no platform.

  • ACCOUNT_LOGIN_UNAVAILABLEHTTP 409retryable: nodetails: AccountLinkReasonDetails

    No sign-in link for this person now (details.reason): not_linked (the person has not confirmed yet, or the link was removed), account_unavailable (the IDS account is closed), terms_not_accepted (the person signs in to IDS Express once and accepts the current Terms).

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

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

  • WEBHOOK_URL_NOT_ALLOWEDHTTP 422retryable: nodetails: WebhookUrlRefusalDetails

    The webhook URL is not a public https address IDS may send to (details.reason): not https, another port than 443, a user or password or #fragment in it, an internal name (localhost, no dot, .local, .internal…), a domain or an address of IDS itself, a host that resolves to a private, loopback, link-local or reserved address, or a host that does not resolve.

  • WEBHOOK_ENDPOINT_LIMITHTTP 409retryable: nodetails: WebhookEndpointLimitDetails

    The account has as many webhook endpoints in this environment as IDS allows (details.limit) — delete one first.

  • WEBHOOK_ENDPOINT_EXISTSHTTP 409retryable: nodetails: WebhookEndpointExistsDetails

    An endpoint with this URL exists already in this environment (details.endpointId) — a repeated creation finds it there; rotate its secret if you lost it.

  • WEBHOOK_ENDPOINT_DISABLEDHTTP 409retryable: nodetails: WebhookEndpointExistsDetails

    The endpoint is switched off (status disabled) — IDS sends it nothing, a test event included; ask IDS to switch it on, or create a new endpoint. An endpoint IDS's administrator switched off (details.endpointId) cannot be deleted, nor a new one made for its host, until IDS lifts it.

  • WEBHOOKS_UNAVAILABLEHTTP 503retryable: yes

    Webhooks cannot be set up right now (IDS is setting them up) — try again later.

  • ADJUSTMENT_STATEHTTP 409retryable: nodetails: AdjustmentStateDetails

    The carrier adjustment is not in a state this operation applies to (details.status): a dispute is for a notified adjustment, a settlement for a notified or confirmed one, a decision for a disputed one.

  • ADJUSTMENT_ALREADY_SETTLEDHTTP 409retryable: nodetails: AdjustmentSettledDetails

    The adjustment was settled already with another method or reference (details) — the same settlement repeated answers 200.

  • ADJUSTMENT_NOT_SELLERSHTTP 409retryable: nodetails: AdjustmentNotSellersDetails

    Withheld from the seller or paid by the seller only for a charge of the seller (details.responsibleParty is another party) — this one may only be waived.

  • ADJUSTMENT_DISPUTE_PERIODHTTP 409retryable: nodetails: AdjustmentDisputePeriodDetails

    The seller may still dispute this charge (until details.disputeUntil): do not withhold it or take the seller's payment before then, or before IDS confirms a dispute; a waiver is possible at any time.

  • PLATFORM_REFUND_ALREADY_CONFIRMEDHTTP 409retryable: nodetails: PlatformRefundConfirmedDetails

    The refund was confirmed already with another refundRef (details.refundRef, confirmedAt) — the same confirmation repeated answers 200.

  • PLATFORM_REFUND_AMOUNT_MISMATCHHTTP 422retryable: nodetails: PlatformRefundMismatchDetails

    The amount or currency confirmed is not what is owed (details.expectedMinor, currency) — refund exactly the refund's amount; nothing was recorded.

  • RETURN_OF_RETURNHTTP 422retryable: no

    The shipment named is itself a return — book the return of its original shipment.

  • RETURN_ORIGINAL_CANCELLEDHTTP 409retryable: no

    The original shipment was cancelled — there is nothing to return.

  • RETURN_ORIGINAL_NOT_SHIPPEDHTTP 409retryable: no

    The original shipment is not booked and paid yet — a return is for a shipment that was sent.

  • RETURN_LIMIT_REACHEDHTTP 409retryable: no

    The original already has as many returns that are not cancelled as IDS allows (10) — cancel an unused one first.

  • RETURN_PLACE_NOT_FOUNDHTTP 422retryable: nodetails: ValidationIssues

    returnTo.locationExternalId is not one of your pickup places in this environment — PUT /pickup-locations/{externalId} first, or send an address.

  • RETURN_PLACE_UNAVAILABLEHTTP 422retryable: nodetails: ValidationIssues

    The return place (yours, or the return place of the original's pickup place) is switched off or suspended — name another place or an address (returnTo).

  • RETURN_PICKUP_UNAVAILABLEHTTP 422retryable: nodetails: ReturnPickupUnavailableDetails

    The carrier does not collect at the buyer's address (details.reason, e.g. RESIDENTIAL_PICKUP_UNAVAILABLE: no courier at a home address) — book it with handover.method drop_off; the return quote lists points (include dropOffPoints). Nothing was booked.

  • RETURN_CHARGE_NOT_DUEHTTP 409retryable: no

    This return is not charged to its seller — there is nothing to settle.

  • RETURN_CHARGE_VOIDHTTP 409retryable: no

    The return was cancelled before the carrier took the parcel: its charge to the seller is void (give back what you withheld).

  • RETURN_CHARGE_ALREADY_SETTLEDHTTP 409retryable: nodetails: ReturnChargeSettledDetails

    The return's charge was settled already with another method or reference (details) — the same settlement repeated answers 200.

  • RETURN_IMPORT_DUTIES_UNSETHTTP 422retryable: no

    A return across the EU's customs border (a buyer outside the EU, or a seller outside it) is not offered yet: the carrier bills a return label's import duties and taxes to IDS's account, and IDS has not set who bears them. Returns within the EU are not affected — contact IDS.

  • VAT_SCENARIO_NOT_APPROVEDHTTP 422retryable: nodetails: VatScenarioDetails

    IDS invoices this platform's deliveries to the buyer, and the VAT treatment of this kind of buyer (details.buyerType) on this route (details.route) is not approved by IDS's accountant yet — the delivery cannot be sold at a VAT nobody approved. Contact IDS; test keys are priced meanwhile.

  • VAT_SCENARIO_UNSUPPORTEDHTTP 422retryable: nodetails: VatScenarioDetails

    IDS cannot invoice the delivery of this route (details.route) to this kind of buyer (details.buyerType) — its VAT is another state's. Offer another delivery option.

Successful answers can carry warnings[] ({ code, message, path? }): ADDRESS_VALIDATION_UNAVAILABLE, PICKUP_OPTIONS_UNAVAILABLE on quotes, PICKUP_FAILED and FINALIZATION_PENDING on bookings, and what the label address changed (TRANSLITERATED, TRUNCATED, PHONE_COUNTRY_CODE_ADDED, …).

API Terms of Use

The IDS Express API Terms of Use apply in addition to the Terms of Service and IDR's general conditions of postal services. The account's holder accepts them in the cabinet (Integrations / API); instead IDS may record a signed agreement. A key of an account without either answers 403 API_TERMS_NOT_ACCEPTED. IDR's postal conditions prevail over the API Terms. A new version is announced at least 15 days before it takes effect, unless the law or an authority requires it or it is only in your favour; you accept it before you create or replace a key, and until then your keys keep working under the version you accepted (unless IDR ends the API Terms under their clause 9.3).

Service status

  • The public status page — the website, the cabinet, the API, pricing, booking, tracking and webhooks, incidents and planned work, 90 days of history: ids.express/ro/en/status.
  • For your monitor: GET https://ids.express/health/api — 200 while the database, the API, the carrier connection, the background jobs and the event delivery are working, 503 naming the failing check otherwise. GET /api/v1/ping answers whether the API process is up.
  • IDS takes reasonable care to keep the API available but no service level is agreed unless signed in writing (API Terms 5.2). Planned work is announced on the status page.

Versions & changes

  • The path is /api/v1; the contract's own version is info.version of the OpenAPI document (now 1.13.6) — it goes up with every addition.
  • Within v1 IDS adds operations, optional request fields, answer fields, event types, error codes and enumeration values at any time: ignore what you do not know. A field already published is never renamed.
  • A change that removes or changes the meaning of an existing operation or field is announced at least 30 days before it takes effect, by e-mail, in your account and in the change log, unless the law, an authority or a security risk requires a shorter time (API Terms 5.3).

Known limitations

  • Franchise retail prices and retail earnings cannot be set through the API; retail fields such as retailNetPrice are rejected as unknown.
  • Not offered: cash on delivery, delivery to pickup points or lockers (deliveryType is door), dangerous goods, freight, hold-at-location, broker select, carrier notifications, a return label printed with the outbound (returnLabelIncluded — book a return instead), your own commercial invoice (ETD) upload, and per-package quantity (one packages[] element per box).
  • A plan of several shipments across a border with goods is booked one shipment at a time (each needs its own customs). A pickup is re-arranged by IDS's staff, not through the API. There is no interactive playground: use a test key.