API reference › Pickup places & pickups
GET/shipments/{id}/pickup
The shipment's pickup: its state, when its parcels are ready and the pickup request it belongs to
state keeps apart label_created (no pickup asked), pickup_requested (IDS is asking — or will, when the carrier books that day: never shown as confirmed), pickup_confirmed (request.confirmationCode), pickup_not_assigned (refused, no window, retries exhausted, the courier did not come — IDS has been alerted and handles it; the paid booking is never cancelled for it) and picked_up (the carrier's scan). readyAt (the parcels ready) and request.window (when the courier may come) are separate values. One request may carry the place's other shipments of the day (request.shipmentCount).
- Key scope
shipments:read- Idempotency-Key
- Not used
- URL
https://ids.express/api/v1/shipments/{id}/pickup
Parameters
idpath · stringrequiredShipment UUID or its master tracking number
Call it
curl -s "https://ids.express/api/v1/shipments/$ID/pickup" \
-H "Authorization: Bearer $IDS_KEY"Answers
200 The pickup of the shipment
Headers: X-Request-Id
application/json — ShipmentPickup
shipmentIdstring (uuid)requiredstatestringrequiredone 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)requirednullableWhen the parcels are ready — from the payment, the place's hours, holidays and preparation time; apart from the pickup window.
locationobjectrequirednullableThe pickup place as it was at booking.
externalIdstringrequirednamestringrequiredrequestobjectrequirednullableidstring (uuid)requiredstatusstringrequiredone of: planned · requesting · confirmed · failed · outcome_unknown · missed · picked_up · cancelled · dropped_off
planned — IDS asks the carrier on bookAfter (the carrier books that day only later); requesting — being asked (or retried after a temporary failure); confirmed — the carrier's confirmationCode; failed — refused, no window, retries exhausted; outcome_unknown — the carrier's answer was lost (IDS checks before asking again); missed — confirmed, the courier did not come; picked_up; cancelled; dropped_off — the seller handed the parcels in (an exception IDS agreed).
scheduledBystringrequiredone of: ids · booking
ids — IDS scheduled it (a pickup place, or the booking's own window); booking — a pickup made with the booking before PCK.
carrierstringrequiredThe carrier's pickup code (FDXE; SIMULATED for a test key).
datestringrequiredYYYY-MM-DD, the pickup day in the place's time zone.
windowobjectrequirednullableThe window asked of the carrier: from readyTime (the parcels ready) to closeTime (the latest the courier may come); null — none found.
readyTimestringrequiredpattern ^\d{2}:\d{2}$HH:mm in the place's time zone.
closeTimestringrequiredpattern ^\d{2}:\d{2}$HH:mm in the place's time zone.
timezonestringrequiredbookAfterstring (date-time)requirednullableplanned only: when IDS asks the carrier (never shown as confirmed before).
confirmationCodestringrequirednullablerequestedAtstring (date-time)requirednullableconfirmedAtstring (date-time)requirednullablepickedUpAtstring (date-time)requirednullableshipmentCountintegerrequirednullable≥ 0Shipments waiting for this pickup (yours and the place's other ones of the day).
packageCountintegerrequired≥ 0attemptsintegerrequired≥ 0locationobjectrequirednullableexternalIdstringrequirednamestringrequiredalerts[]array of objectrequiredWhat the carrier said with its confirmation (e.g. PICKUP.SCHEDULE.LATE).
codestringrequiredalertTypestringrequiredmessagestringrequiredproblemobjectrequirednullableAn open problem IDS handles (refused, no_window, window_missed, outcome_unknown, booking_failed, carrier_alert, courier_missed).
kindstringrequiredopenedAtstring (date-time)requirederrorstringrequirednullableWhat IDS handles, in a sentence (never the carrier's own words).
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.