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–100

    Your 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

  • accountobjectrequired
  • externalIdstringrequired

    The person as the platform knows them.

  • environmentstringrequired

    one of: sandbox · production

    A test key's links are simulated (no IDS account, no letter).

  • statestringrequired

    one 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 stringrequired
  • sellerVerifiedbooleanrequired
  • requestedAtstring (date-time)required
  • linkedAtstring (date-time)requirednullable
  • unlinkedAtstring (date-time)requirednullable
  • unlinkedBystringrequirednullable

    one 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)

Headers: X-Request-Id

Codes: NOT_FOUND

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

  • PLATFORM_KEY_REQUIREDHTTP 403retryable: no

    Accounts of a platform's people are for a platform's service-account key only — this key belongs to no platform.

  • API_ACCESS_DISABLEDHTTP 403retryable: no

    API access is switched off for this account.

  • FORBIDDEN_SCOPEHTTP 403retryable: no

    The key lacks the scope of this operation (x-scope).

  • NOT_FOUNDHTTP 404retryable: no

    Unknown path, or an object this key may not see (another account, the other environment).

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