IMS Documentation
IMS API 1.1.0.0 • Business API v1

Errors & Rate Limits

Use status codes to distinguish authentication, authorization, validation, throttling and service failures. Parse error bodies defensively because validation and unexpected errors can have different shapes.

Common responses

StatusErrorMeaning
400invalid_company, invalid_page, invalid_page_size, date_range_required, invalid_date_range and endpoint-specific validation codesThe request is authenticated but invalid. Correct the request before retrying.
401unauthorizedAPI key is invalid or inactive (including revoked/expired key behavior).
403forbiddenThe client is valid but does not have the required scope.
404company_not_foundThe company is unavailable or the client is not authorized for it.
429rate_limit_exceededThe client exceeded its configured minute or daily request limit.
409non_unique_delta_keyThe ordinary Delta catalog cannot be paginated by unique item keys; contact the administrator.
503maintenance_active, maintenance_status_unavailable or resource-specific unavailable errorsTemporarily unavailable. Preserve cursor state; see maintenance and contract recovery below.

Endpoint-specific 400 codes include invalid_timestamp_range, invalid_transaction_type, invalid_document_state, invalid_movement_type, invalid_promotion_type, invalid_promotion, invalid_expiry_range and invalid_coupon_event. Partner Data adds its policy and cursor errors, including contract-unavailable 503.

Rate-limit response

{
  "error": "rate_limit_exceeded",
  "message": "The API client has exceeded its minute request limit.",
  "retryAfterSeconds": 60
}

When throttled, wait for the supplied retry period and honor the HTTP Retry-After header. Do not continuously retry a 429 response.

Company maintenance protection

Maintenance is evaluated for the requested company, not by a fixed clock window. The following GET resources temporarily reject requests while the company is in maintenance:

Sales, stores, suppliers and other resources not listed are not blocked by this maintenance gate. Standard authorization and validation still apply.

HTTP/1.1 503 Service Unavailable
Retry-After: 60
Cache-Control: no-store
{
  "error": "maintenance_active",
  "message": "IMS maintenance is in progress for this company. Retry after maintenance has finished.",
  "companyId": 1
}

If maintenance status is unavailable, affected resources return HTTP 503 with maintenance_status_unavailable rather than returning business data. Respect the actual Retry-After header, preserve the last successfully applied page/cursor and retry the same request. Do not treat a 503 as zero data or fullSyncRequired. A maintenance interval alone does not require a full synchronization. If the service remains unavailable, contact the administrator.

Validation examples

{
  "error": "forbidden",
  "message": "The API client does not have the inventory.read scope."
}
{
  "error": "company_not_found",
  "message": "The company does not exist or this API client does not have access to it."
}

Error-shape boundaries

Validation failures can return different JSON error shapes. Do not require every 400 or 500 response to include the illustrated error and message fields. Handle the HTTP status and documented API errors, and retain useful request details when seeking support.

Configured rate limits

Each API client has administrator-configured minute and daily request limits; there is no universal requests-per-minute value. An authenticated request can count toward the allowance even when a later validation fails. Do not assume that separate API nodes or requests share an export-wide quota snapshot. The sample 60-second retry is illustrative; always use the actual Retry-After value.

Request logging

Global Administrators can review recorded API requests through IMS Global → API Administration → Request Log. This is a product activity view, not a substitute for the organization's complete network and security logging. When investigating denied or failed calls, coordinate with the responsible administrator.

Contract, Delta and Footfall errors

Status / codeSafe recovery
403 contract_policy_not_configuredAsk the administrator to configure the ordinary company contract. Do not substitute a wider key or scope.
400 delta_revision_requiredCustomer since requires revision. Use the revision captured before full export or returned by the previous successful window.
400 incomplete_delta_cursorCustomer afterCustomerId needs since, through and revision. Partner afterItemId needs through and policyVersion; also preserve since for the active window.
400 invalid_delta_cursorCustomer afterCustomerId must be nonnegative. Ordinary Delta validates its item cursor, required window/version and inventory key pair. Reuse the server-returned key(s).
400 invalid_delta_windowUse the saved baseline/window. Partner since later than the safe watermark also fails this check. Retain the last valid durable cursor and correct the timestamp; omit through on a new window so the server selects it.
400 invalid_timestamp_rangeSupply both local timestamp bounds without offsets; start must precede end; omit fromDate and toDate.
409 non_unique_delta_keyAsk the administrator to resolve ordinary Delta catalog identity before resuming. Do not skip rows.
503 business_delta_contract_unavailableAsk the administrator to check ordinary Delta availability; preserve the cursor.
503 customer_delta_not_installedAsk the administrator to resolve company Delta availability; retain the cursor and repeat only after service is available.
503 footfall_view_not_installedAsk the administrator to resolve company Footfall availability; retry the same range without treating failure as zero traffic.
200 fullSyncRequired=trueThis is a synchronization instruction, not a transport error. Rebuild the corresponding full catalog or inventory using the new baseline/revision or policyVersion, then resume Delta.