POST/test/accounts/{externalId}/answer
Test keys: the simulated person of a test link confirms (default) or declines
- Key scope
accounts:write- Idempotency-Key
- Not used
- URL
https://ids.express/api/v1/test/accounts/{externalId}/answer
Parameters
externalIdpath · stringrequiredlength 1–100Your id of the person
Request body
Optional: send {} with Content-Type: application/json, or no body and no Content-Type. Unknown fields are rejected.
application/json — TestAccountAnswerRequest
answerstringone of: confirm · decline
What the simulated person does (default confirm).
Call it
curl -s -X POST "https://ids.express/api/v1/test/accounts/$EXTERNAL_ID/answer" \
-H "Authorization: Bearer $IDS_KEY" \
-H "Content-Type: application/json" \
-d '{}'Answers
200 { account } — linked (confirm) or unlinked by the person (decline)
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 — invalid or unknown fields, non-JSON Content-Type, malformed or empty JSON body
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 TEST_MODE_ONLY (a live key) / PLATFORM_KEY_REQUIRED / PLATFORM_SUSPENDED / FORBIDDEN_SCOPE
Headers: X-Request-Id
Codes: TEST_MODE_ONLYPLATFORM_KEY_REQUIREDPLATFORM_SUSPENDEDFORBIDDEN_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)
409 ACCOUNT_LINK_STATE — already linked or closed
Headers: X-Request-Id
Codes: ACCOUNT_LINK_STATE
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.
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.)
TEST_MODE_ONLYHTTP 403retryable: noAn operation of the test mode (/test/…) with a live key — test keys (ids_test_…) only.
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.
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.
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).
ACCOUNT_LINK_STATEHTTP 409retryable: noThe link is not in a state this operation applies to (a test person answers a link that is already linked or closed).
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.