Shop guide: the full cycle
For a shop — any client of IDS — connecting its own site or program. Your account's tariff prices every quote and booking, and bookings are paid from your IDS balance (or your deferred payment, if IDS agreed one).
The cycle
1Your key, from the IDS cabinet
Once IDS switched the page on for your account, open Integrations / API in the IDS cabinet: accept the API Terms of Use, then «Create key» — a name, test or live, the tasks (nothing is ticked by default: tick quotes and bookings, cancellations, balance, events and webhooks as you need), the expiry (six months at most) and optionally your server's IP addresses. You confirm your identity again (password or Google sign-in); the key is shown once. Start with a test key.
2Money
Top up your balance in the cabinet (card) or by bank transfer IDS records. GET /balance shows it. A booking the balance does not cover answers
402 PAYMENT_REQUIREDbefore any label is made — top up and retry with the same Idempotency-Key. API bookings never use bonus balance. With a test key, set the test wallet first: POST /test/wallet{ "balance": 1000 }.3Quote
POST /quotes with the shipper, the recipient's full address and the boxes (weight and dimensions of each box;
contentValue+coverage: "auto"to declare the value for carriage). Each service has a fixed price untilexpiresAt; show your customer that price and, on a route with an import, thedutiesnote.4Book
POST /shipments
{ quoteId, selectedServiceType, operationRef, references, pickup }with anIdempotency-Key(one per order, reused on every retry). Across a border addcustoms(intra-EU included). The201carries the labels andcharge— the quoted total. A lost answer: repeat with the same key, orGET /shipments?operationRef=…(recovery).5Label and pickup
Print the label from the
201or GET /shipments/{id}/labels/pdf. For a courier sendpickup.datewithreadyTime/closeTime, or keep your warehouse as a pickup place (PUT /pickup-locations/{externalId}) and sendpickup.locationExternalId: IDS books the first window after your parcels are ready.6Tracking, events and webhooks
GET /track/{trackingNumber} (cached) or POST /shipments/{id}/refresh-tracking give the status, the carrier's scans and
deliveryState. Better: a webhook endpoint (created in the cabinet or with POST /webhook-endpoints) and the feed GET /events as the safety net.7Cancel
POST /shipments/{id}/cancel with a new Idempotency-Key: the label and pickup are cancelled and the price refunded to your balance — unless the pickup window has started or the carrier already has the parcel (then IDS reviews the refund;
refund.statussays which).8Returns, surcharges, complaints (when you need them)
A return to you: return-quotes → returns, paid from your balance. A later carrier charge for a parcel the carrier measured heavier or bigger than declared follows the IDS Terms of Service (6.3) and your agreement with IDS. A complaint: POST /complaints.
Going live
- The test plan passed with your test key.
- Create the live key in the cabinet (tasks as narrow as you need, an IP list if your servers have fixed addresses), and a live webhook endpoint.
- Keys expire after six months at most — the cabinet and a letter remind you 30 and 7 days before. A replacement keeps the key's end date: to go on, replace the key (with an overlap) and set the new key's end date with «Change».
- Revoke a key at once if it leaked (cabinet, or [email protected]).