JSON and identifiers#
Send ordinary JSON with Content-Type: application/json when a body is required.
You do not need to sort object keys or apply repository-specific canonical JSON serialization.
Use the exact field names and identifier values in the operation schema.
A field can be optional without accepting null.
For example, omitting a field can leave it unchanged while sending null can clear it, where the schema allows that.
Do not infer writable fields from a response record.
Pagination#
A list can return an opaque nextToken. Pass it back unchanged, URL-encoded.
Keep the workspace, filters, sorting, and page limit the same.
When you change any of those, start a new traversal without the token.
Customer and product lists use items; product catalog lookup also returns
items (and may return unpricedItems). Work-item lists and searches use
results. Location, vendor, purchase-order, receipt, and purchasing-return
lists use their resource-specific plural field (locations, vendors,
purchaseOrders, receipts, or purchasingReturns). Customer service history
uses items plus followUps and a coverage block. The per-order receipt
operation returns the complete receipt set for that order and is not paginated;
the workspace-wide receipt list is paginated.
Stop when no continuation token is returned, rather than when a page is shorter than your requested limit.
A traversal is not a promised point-in-time snapshot.
Errors#
Read the HTTP status first. Error bodies can include message, code, issues, or a diagnostic reference.
Those fields vary by operation; there is no single guaranteed error envelope.
| Status | What to do |
|---|---|
| 400 | Correct the request or its prerequisites. Repeating it unchanged will not help. |
| 401 | Check the key, environment, expiration, and revocation. |
| 403 | Check workspace membership rules, permissions, and workspace state. |
| 404 | Check the workspace and record ID. |
| 409 | Read current state and resolve the reported conflict. |
| 428 | Send the required precondition header. The operation reference names it. |
| 429 | Honor the Retry-After header before retrying. |
| 500 / 503 | Retry reads with bounded backoff. Reconcile writes before retrying. |
Do not promise a fixed quota in your application. Rate limits depend on server configuration. Apply a finite retry budget, increasing delays, and jitter. If 500 or 503 responses persist, check Zelikore status before widening your retry budget.
Timeouts and uncertain writes#
A timeout only tells you that your client did not receive a result. The server may have committed the write. Preserve the command's idempotency key and payload. Read current state or retry the same command where supported. Do not generate a new key just because the previous request timed out.
See writes and conflicts for the operation-specific rules.