API reference › Platforms & people
GET/accounts/{externalId}
The state of one of your people's link (pending, linked, unlinked)
- Key scope
accounts:read- Idempotency-Key
- Not used
- URL
https://ids.express/api/v1/accounts/{externalId}
Parameters
externalIdpath · stringrequiredlength 1–100Your id of the person
Call it
curl -s "https://ids.express/api/v1/accounts/$EXTERNAL_ID" \
-H "Authorization: Bearer $IDS_KEY"Answers
200 { account }
Headers: X-Request-Id
application/json — AccountEnvelope
accountobjectrequiredexternalIdstringrequiredThe person as the platform knows them.
environmentstringrequiredone of: sandbox · production
A test key's links are simulated (no IDS account, no letter).
statestringrequiredone of: pending · linked · unlinked
pending: IDS is waiting for the person (a new account: activation through the IDS letter; an existing one: its holder's confirmation); linked: confirmed; unlinked: removed (unlinkedBy).
roles[]array of stringrequiredsellerVerifiedbooleanrequiredrequestedAtstring (date-time)requiredlinkedAtstring (date-time)requirednullableunlinkedAtstring (date-time)requirednullableunlinkedBystringrequirednullableone of: platform · person · ids · null
400 VALIDATION_FAILED — externalId
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 PLATFORM_KEY_REQUIRED / API_ACCESS_DISABLED / FORBIDDEN_SCOPE
Headers: X-Request-Id
Codes: PLATFORM_KEY_REQUIREDAPI_ACCESS_DISABLEDFORBIDDEN_SCOPE
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.
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: 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.)
PLATFORM_KEY_REQUIREDHTTP 403retryable: noAccounts of a platform's people are for a platform's service-account key only — this key belongs to no platform.
API_ACCESS_DISABLEDHTTP 403retryable: noAPI access is switched off for this account.
FORBIDDEN_SCOPEHTTP 403retryable: noThe key lacks the scope of this operation (x-scope).
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.