API reference › Pickup places & pickups

PUT/pickup-locations/{externalId}

Create or replace one of your pickup places (where the courier comes, by its own schedule)

The whole place each time (a PUT replaces it): the address (kept as the carrier gets it — Latin, the phone with +; GET answers your original too), the contact the courier asks for, the kind of place, its IANA time zone, its week (up to 4 intervals a day), dated exceptions (holidays of the place, special hours; [] — closed), whether the country's public holidays close it (default true), the preparation time (at most one working day: the readiness never ends later than the same time of the next working day of the place), the courier's instructions and where returns go. A booking names it in pickup.locationExternalId. A change never touches a shipment already booked from the place (the shipment keeps what the place was). A suspended platform changes nothing (403).

Key scope
pickup_locations:write
Idempotency-Key
Not used
URL
https://ids.express/api/v1/pickup-locations/{externalId}

Parameters

  • externalIdpath · stringrequiredlength 1–100

    Your own id of the place

Request body

Unknown fields are rejected (400 VALIDATION_FAILED, details[].path names the field).

application/json — PickupLocationRequest

  • namestringrequiredlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$

    The place's name as people know it (shown to the admin; not on the label).

  • sellerExternalIdstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$

    A platform's key only: the seller the place belongs to, as the platform knows them — an opaque code.

  • addressobjectrequired

    Where the courier comes. IDS keeps it as the carrier will get it (Latin letters; GET answers both).

  • line1stringrequiredlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$
  • line2stringlength ≤ 100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]*$
  • line3stringlength ≤ 100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]*$
  • citystringrequiredlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$
  • stateCodestringlength ≤ 20pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]*$
  • postalCodestringrequiredlength 1–20pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$
  • countryCodestringrequiredpattern ^[A-Za-z]{2}$
  • contactobjectrequired
  • namestringrequiredlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$

    The person the courier asks for.

  • companystringlength ≤ 100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]*$
  • phonestringrequiredlength 5–30

    With the country code (+40…); IDS adds the country's code to a national number.

  • emailstring (email)length ≤ 254
  • placeTypestringrequired

    one of: warehouse · office · store · residential · other

    warehouse, office, store, residential (a home — some carriers do not collect there), other.

  • timezonestringrequiredlength 1–64

    The place's IANA time zone — its schedule is read in it.

  • scheduleobjectrequired

    The working intervals of each weekday in the place's own time (mon … sun); a day left out or [] is closed. Up to 4 intervals a day.

  • mon[]array of objectitems ≤ 4
  • fromstringrequired
  • tostringrequired
  • tue[]array of objectitems ≤ 4
  • fromstringrequired
  • tostringrequired
  • wed[]array of objectitems ≤ 4
  • fromstringrequired
  • tostringrequired
  • thu[]array of objectitems ≤ 4
  • fromstringrequired
  • tostringrequired
  • fri[]array of objectitems ≤ 4
  • fromstringrequired
  • tostringrequired
  • sat[]array of objectitems ≤ 4
  • fromstringrequired
  • tostringrequired
  • sun[]array of objectitems ≤ 4
  • fromstringrequired
  • tostringrequired
  • exceptions[]array of objectitems ≤ 400

    Dated exceptions (holidays of the place, special hours) — they win over the week and over the country's public holidays.

  • datestringrequiredpattern ^\d{4}-\d{2}-\d{2}$
  • intervals[]array of objectrequireditems ≤ 4

    The working intervals of that day; [] — closed (a holiday, inventory, …).

  • fromstringrequired
  • tostringrequired
  • notestringlength ≤ 200pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]*$
  • preparationMinutesintegerrequired≥ 0≤ 1440

    How long, in the place's working time, from the paid order to parcels ready to hand over. At most one working day: the readiness never ends later than the same time of the next working day of the place.

  • observesPublicHolidaysboolean

    Closed on the public holidays of its country (default true); an exception opens such a day.

  • instructionsstringlength ≤ 200pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]*$

    For the courier (where to ring, which gate) — sent with the pickup.

  • returnsone of 2

    Where returns of parcels sent from here go: this place (default) or another place of yours (RET).

  • to = thisobject
  • tostringrequired

    one of: this

  • to = locationobject
  • tostringrequired

    one of: location

  • locationExternalIdstringrequiredlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$

    Your own id of the place (1–100 characters), unique per account and environment.

  • activeboolean

    false: no new booking may name it (default true).

Call it

curl -s -X PUT "https://ids.express/api/v1/pickup-locations/$EXTERNAL_ID" \
  -H "Authorization: Bearer $IDS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "<name>",
  "address": {},
  "contact": {},
  "placeType": "warehouse",
  "timezone": "<timezone>",
  "schedule": {},
  "preparationMinutes": 0
}'

Answers

200 { location } — replaced

Headers: X-Request-Id

application/json — PickupLocationEnvelope

  • locationobjectrequired
  • externalIdstringrequired
  • namestringrequired
  • sellerExternalIdstringrequirednullable
  • environmentstringrequired

    one of: sandbox · production

  • addressobjectrequired

    As the carrier gets it (Latin letters; streetLines wrapped to 35 characters).

  • line1stringrequired
  • line2stringrequirednullable
  • line3stringrequirednullable
  • citystringrequired
  • stateCodestringrequirednullable
  • postalCodestringrequired
  • countryCodestringrequiredlength 2–2
  • contactobjectrequired

    As the carrier gets it (the phone with its country code).

  • namestringrequired
  • companystringrequirednullable
  • phonestringrequired
  • emailstringrequirednullable
  • originalobjectrequirednullable

    The place as you sent it, when the carrier's form differs; null — the same.

  • addressobjectrequired

    Same shape as location.address above.

  • contactobjectrequirednullable
  • namestringrequired
  • companystringrequirednullable
  • phonestringrequired
  • emailstringrequirednullable
  • placeTypestringrequired

    one of: warehouse · office · store · residential · other

  • timezonestringrequired
  • scheduleobjectrequired
  • mon[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tue[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • wed[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • thu[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • fri[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • sat[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • sun[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • exceptions[]array of objectrequired
  • datestringrequired
  • intervals[]array of objectrequired
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • notestringrequirednullable
  • preparationMinutesintegerrequired≥ 0
  • observesPublicHolidaysbooleanrequired
  • instructionsstringrequirednullable
  • returnsone of 2required
  • to = thisobject
  • tostringrequired

    one of: this

  • to = locationobject
  • tostringrequired

    one of: location

  • locationExternalIdstringrequired
  • activebooleanrequired
  • statusstringrequired

    one of: active · inactive · suspended

    inactive — you switched it off; suspended — IDS did (no booking may name it).

  • createdAtstring (date-time)required
  • updatedAtstring (date-time)required
201 { location } — created

Headers: X-Request-Id

application/json — PickupLocationEnvelope

  • locationobjectrequired
  • externalIdstringrequired
  • namestringrequired
  • sellerExternalIdstringrequirednullable
  • environmentstringrequired

    one of: sandbox · production

  • addressobjectrequired

    As the carrier gets it (Latin letters; streetLines wrapped to 35 characters).

  • line1stringrequired
  • line2stringrequirednullable
  • line3stringrequirednullable
  • citystringrequired
  • stateCodestringrequirednullable
  • postalCodestringrequired
  • countryCodestringrequiredlength 2–2
  • contactobjectrequired

    As the carrier gets it (the phone with its country code).

  • namestringrequired
  • companystringrequirednullable
  • phonestringrequired
  • emailstringrequirednullable
  • originalobjectrequirednullable

    The place as you sent it, when the carrier's form differs; null — the same.

  • addressobjectrequired

    Same shape as location.address above.

  • contactobjectrequirednullable
  • namestringrequired
  • companystringrequirednullable
  • phonestringrequired
  • emailstringrequirednullable
  • placeTypestringrequired

    one of: warehouse · office · store · residential · other

  • timezonestringrequired
  • scheduleobjectrequired
  • mon[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tue[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • wed[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • thu[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • fri[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • sat[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • sun[]array of object
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • exceptions[]array of objectrequired
  • datestringrequired
  • intervals[]array of objectrequired
  • fromstringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • tostringrequiredpattern ^\d{2}:\d{2}$

    HH:mm in the place's time zone.

  • notestringrequirednullable
  • preparationMinutesintegerrequired≥ 0
  • observesPublicHolidaysbooleanrequired
  • instructionsstringrequirednullable
  • returnsone of 2required
  • to = thisobject
  • tostringrequired

    one of: this

  • to = locationobject
  • tostringrequired

    one of: location

  • locationExternalIdstringrequired
  • activebooleanrequired
  • statusstringrequired

    one of: active · inactive · suspended

    inactive — you switched it off; suspended — IDS did (no booking may name it).

  • createdAtstring (date-time)required
  • updatedAtstring (date-time)required
400 VALIDATION_FAILED — a field (details[0].path): an interval, an overlap, a week without working time, a time zone, a date, the preparation time, an address the carrier cannot take, sellerExternalId with a key of no platform, returns.locationExternalId unknown

Headers: X-Request-Id

Codes: VALIDATION_FAILED

The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.

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.

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.

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

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

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

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

  • INTERNAL_ERRORHTTP 500retryable: no

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

  • API_DISABLEDHTTP 503retryable: no

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

  • CARRIER_NOT_CONFIGUREDHTTP 503retryable: no

    The carrier credentials of this environment are missing.

  • CURRENCY_RATE_MISSINGHTTP 503retryable: no

    IDS has no exchange rate for the balance currency.