Platform guide: the full cycle
For a marketplace that books IDS delivery for its buyers and sellers. IDS keeps your platform as a client: a service account owns your keys (nobody signs in as it), your own tariff prices every quote and booking, and IDS sets your settings — read them with GET /platform. Nothing in a request names the platform or the tariff: IDS takes them from the key.
The cycle
1Your people's IDS accounts (optional)
POST /accounts
{ externalId, email, firstName, lastName?, roles: ["buyer"|"seller"], sellerVerified?, company?, locale? }creates an IDS account for a new e-mail (IDS writes to the person naming your platform; they set their own password and accept the IDS Terms) or asks the holder of an existing account to confirm the link in their IDS cabinet. Both answerstate: pending— the API never tells whether an e-mail has an account. No password ever passes between you and IDS.A button «My parcels in IDS» in your cabinet: at the moment of the person's click call POST /accounts/{externalId}/login-link and open the returned
urlin their browser (one use, 60 seconds — never e-mail or store it). A linked person sees in IDS the shipments you booked with theirbuyerExternalId/sellerExternalId, read-only.Rules: send only an e-mail you verified; call
/accountsonly for a person who asked for it or was told of it beforehand; make a sign-in link only on the person's own click, never for your staff. DELETE /accounts/{externalId}/link removes a link.2Your sellers' pickup places
PUT /pickup-locations/{externalId} for each place a courier collects from: address, contact for the courier, kind of place, IANA time zone, working hours per weekday, dated exceptions, preparation time (at most one working day),
sellerExternalId, and where returns go. A booking names the place; IDS computes when the parcels are ready and books the courier.3Price at checkout, by the full address, before the payment
POST /quotes with the pickup place's address as
shipper, the buyer's full address asrecipient, each box with itscontentValue(the goods after discounts, as your seller declares them — the declaration of contents and value is the sender's: collect it from the seller, on their own responsibility, and keep it),coverage: "auto", the buyer's kind for VAT (buyer { type: person|company, countryCode, vatNumber? }— absent: a private person) andlocale. Keep thequoteId; its price is fixed untilexpiresAt.Your checkout shows, before the pay button:
- the delivery as a separate service of IDS Express (IDR), apart from the goods and their seller, with the service and the estimated delivery;
- the carrier that collects and delivers the parcel for IDR — FedEx today (
carrierCode) — as ANCOM's rules for postal services ask (Decision 925/2023, pct. 2.17.2); - the delivery price exactly as quoted, VAT included;
- the declared value for carriage — included in the price, or offered as a choice the buyer ticks, never pre-ticked; it is the limit of IDR's liability, not insurance;
- on a route with an import, the
dutiesnote next to the delivery price — duties and taxes are not included and may be charged to the recipient; - the buyer's acceptance box (below), and a pay button that says the order implies payment («Place order and pay»).
No delivery for the item →
422 PRICING_UNAVAILABLEwithdetails.buyerMessage— show it.checks.address.*.status: invalid→ ask the buyer to correct the address. Show the general delivery restrictions (countries, goods not carried, the declared-value cap) and the accepted payment methods at the start of checkout.4The buyer's acceptance of the delivery terms
A separate, unticked box for the delivery, next to its price and before the pay button, never combined with marketing consent, linking the PDFs of the documents (
GET /metadata→buyerDocuments) and the Privacy Policy:EN I order the delivery from IDS Express (INTERNATIONAL DIGITAL RETAIL S.R.L.) and accept its [Terms of Service] and the [General conditions for postal services] that are part of them, including the clauses listed in section 2.5 of the Terms (limits of liability and compensation, suspension and closing of accounts, governing law and courts). I have read the [Privacy Policy].RO Comand livrarea de la IDS Express (INTERNATIONAL DIGITAL RETAIL S.R.L.) și accept [Termenii și condițiile] și [Condițiile generale privind furnizarea serviciilor poștale], care fac parte integrantă din aceștia, inclusiv clauzele enumerate la pct. 2.5 din Termeni (limitarea răspunderii și a despăgubirilor, suspendarea și închiderea contului, legea aplicabilă și instanțele competente). Am citit [Politica de confidențialitate].The IDS Terms of Service are published in English today; a Romanian version for consumers in Romania is a condition IDS settles before such orders — ask IDS which version to link next to the Romanian wording.
Keep the time the box was ticked; send it with the booking (
platform.buyerAcceptance). Without delay after the order, and at the latest by the time the parcel is collected, send the buyer an order confirmation e-mail with the two PDFs attached (Terms, Postal Conditions), naming IDR as the provider of the delivery (INTERNATIONAL DIGITAL RETAIL S.R.L., CUI 48660664, its registered office, telephone and [email protected]), the service, its price with VAT, the tracking number and the declared value — a link alone is not a durable medium.5Payment confirmed → book at once
Right after your payment provider confirmed the payment, POST /shipments with an
Idempotency-Keyand youroperationRef. A platform paid on the platform (GET /platform→paymentMode: platform_collected) sends the payment — exactly the quote's total (else422 PLATFORM_PAYMENT_MISMATCH, nothing booked) — and IDS touches no balance:POST /shipments — a platform paid on the platform { "quoteId": "qt_…", "selectedServiceType": "FEDEX_REGIONAL_ECONOMY", "operationRef": "ORDER-1001-D1", "shipper": { "contact": { "name": "Seller Ltd", "phone": "+40700000001" }, "address": { "…": "the quote's address" } }, "recipient": { "contact": { "name": "Ana Popescu", "phone": "+40740000000", "email": "[email protected]" }, "address": { "…": "the quote's address" } }, "pickup": { "locationExternalId": "wh-seller-7-bucharest" }, "platform": { "orderRef": "ORDER-1001", "sellerExternalId": "seller-7", "buyerExternalId": "buyer-9", "deliveryCustomer": { "type": "person", "name": "Ana Popescu", "address": { "line1": "Str. Exemplu 1", "city": "Cluj-Napoca", "postalCode": "400001", "countryCode": "RO" } }, "buyerAcceptance": { "documents": [ { "type": "terms", "version": "2.0" }, { "type": "postal_conditions", "version": "2026-10-29" } ], "acceptedAt": "<when the box was ticked, before the payment>" }, "payment": { "ref": "<your payment id>", "amountMinor": 2917, "currency": "RON", "confirmedAt": "<when your payment provider confirmed it>" } } }deliveryCustomeris the buyer who pays the delivery — IDS invoices it whileinvoiceRecipientisdelivery_customer; it may differ from the recipient.- A quote with several shipments (a plan) is booked in one call — all or none; the answer is a
BookingGroup. - A lost answer: repeat with the same key, or
GET /shipments?operationRef=…— never book again blindly (recovery). - Refused after the buyer paid (
410 QUOTE_EXPIRED, a carrier refusal): no IDS delivery exists — refund the delivery price, or quote again and book only with the buyer's agreement to the new price.
6The label
The
201carries every label (PDF 10×15 cm by default; ZPL II / EPL2 on thermal stock). GET /shipments/{id}/labels gives them again, GET /shipments/{id}/labels/pdf?layout=a4 puts each PDF label on an A4 sheet at its own size — show it in your seller's cabinet. Downloading again never makes a new carriage.7The courier pickup
pickup.state:label_created→pickup_requested→pickup_confirmed→picked_up; orpickup_not_assigned,pickup_cancelled,dropped_off(the seller handed the parcels in).pickup.readyAt(the parcels ready) andpickup.request.window(when the courier may come) are separate. GET /shipments/{id}/pickup; eventsshipment.pickup.*. A refused or missed pickup is IDS's to handle — the paid booking is never cancelled for it.8Statuses for the buyer and the seller
Register a webhook endpoint and keep a reader of GET /events as the recovery path. Show
deliveryState; start a payout or a withdrawal clock only ondeliveredorcollected_from_pickup_point— never onat_pickup_pointorreturned_to_sender. IDS sends no lifecycle letters to your people unless IDS switched them on for your platform: you tell them under your brand.9Cancellation
POST /shipments/{id}/cancel: before the carrier's pickup scan the label and pickup are cancelled and the delivery refunded in full — paid on the platform:
refund.status: refund_due; refund your buyer on the original payment, then POST /shipments/{id}/refunds/{refundId}/confirm. After the scan:202with a cancel request — IDS decides. A consumer's withdrawal from the purchase has the delivery price refunded through you: tell IDS, which records the refund.10A late carrier charge
shipment.adjustment.created(GET /shipments/{id}/adjustments): the amount at the IDS tariff, the declared and measured boxes, the responsible party. A charge of the seller may be disputed untildisputeUntil; withhold it from the seller's payout only where your agreement with the seller provides for it, and only after that date (or once IDS confirmed a dispute), and mark it with …/settle. The buyer's price never changes.11A return
POST /shipments/{id}/return-quotes (reason, the boxes going back,
dropOffNear— the buyer's coordinates) → its own price, whether a courier can collect, drop-off points andbuyerNotice(show it unaltered). POST /shipments/{id}/returns with thepayeryou decide under your rules (buyer, seller, platform); a return charged to the seller is settled with …/return-charge/settle. A return the buyer pays is a new order of the buyer: the same checkout as step 4 — the unticked acceptance box, a pay button that says the order implies payment, the confirmation e-mail with the PDFs — andplatform.buyerAcceptanceon the return booking.12The delivery invoice
GET /shipments/{id}/invoices → the issued invoices and stornos of IDR to your buyer, GET /invoices/{id}/pdf → the document: show it in the buyer's cabinet.
state: nonewithreason: not_issued_heremeans IDS issues it outside the API for now.13A complaint
POST /complaints (Idempotency-Key) with
filerRole: platform_representativeon your buyer's behalf: a live key enters it in IDR's Register of Complaints and e-mails its number tocontact.emailat once; follow it with GET /complaints/{id} and the eventscomplaint.*.
Going live
- Every scenario of the test plan passed with the test key; your webhook verifier rejects a tampered delivery.
- IDS issued the live key and you registered the live webhook endpoint; the secrets sit in your secret manager.
- Your checkout shows the price as quoted, the duties note, the coverage choice and the unticked acceptance box; the confirmation e-mail attaches both PDFs.
- Your monitor watches
https://ids.express/health/api; you know the status page and [email protected].