POST/test/shipments/{id}/advance
Test keys: move a test shipment's scenario forward (steps, default 1) — the carrier reports the next scans and IDS reads them through tracking at once
Each step is one carrier scan (the scenario's steps: GET /metadata testScenarios.booking). The shipment's status follows the same rules as a real carrier's scans (never backwards). Past the scenario's end nothing more happens (advanced 0). A cancelled label stops the scenario (409).
- Key scope
shipments:write- Idempotency-Key
- Not used
- URL
https://ids.express/api/v1/test/shipments/{id}/advance
Parameters
idpath · stringrequiredShipment UUID or its master tracking number
Request body
Optional: send {} with Content-Type: application/json, or no body and no Content-Type. Unknown fields are rejected.
application/json — TestAdvanceRequest
stepsinteger≥ 1≤ 20How many steps forward (default 1); past the scenario's end nothing more happens.
Call it
curl -s -X POST "https://ids.express/api/v1/test/shipments/$ID/advance" \
-H "Authorization: Bearer $IDS_KEY" \
-H "Content-Type: application/json" \
-d '{}'Answers
200 { advanced, synced, scenario, shipment }
Headers: X-Request-Id
application/json — TestAdvance
advancedintegerrequiredScans the carrier reported by this call (0 at the scenario's end).
syncedbooleanrequiredThe shipment's status changed from them.
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) / API_ACCESS_DISABLED / FORBIDDEN_SCOPE / API_OWNER_NOT_BILLABLE
Headers: X-Request-Id
Codes: TEST_MODE_ONLYAPI_ACCESS_DISABLEDFORBIDDEN_SCOPEAPI_OWNER_NOT_BILLABLE
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 TEST_SCENARIO_UNAVAILABLE — booked with the FedEx sandbox, or the label was cancelled
Headers: X-Request-Id
Codes: TEST_SCENARIO_UNAVAILABLE
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.
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).
API_OWNER_NOT_BILLABLEHTTP 403retryable: noThe account cannot be billed through the API (no pricing tier, or an admin account).
NOT_FOUNDHTTP 404retryable: noUnknown path, or an object this key may not see (another account, the other environment).
TEST_SCENARIO_UNAVAILABLEHTTP 409retryable: noThe shipment has no simulated scenario to read or move: it was booked with the FedEx sandbox, or its label was cancelled.
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.