Measura API documentation · v1
Use the HTTP status and error.code together, then check the endpoint reference for resource-specific validation.
{
"success": false,
"data": null,
"error": {
"code": "unauthorized",
"message": "Malformed key."
}
}error.details, meta, and requestId are optional and may be omitted. Details can contain JSON values, including arrays. Do not assume every response has a request ID or retry delay. See the ApiError object.
Scroll horizontally to see all columns.
| Status | Meaning | Action |
|---|---|---|
| 400 | Bad Request | Malformed JSON, invalid parameters, missing Idempotency-Key, or missing revision. Correct the request against the endpoint schema. |
| 401 | Unauthorized | Missing, invalid, revoked, or expired key. Use Authorization: Bearer apik_<keyId>_<secret>. |
| 403 | Forbidden | Public API access is unavailable, the required add-on is inactive, or an applicable feature/tier is unavailable. |
| 404 | Not Found | The resource is absent or unavailable to this shop. Invalid operation IDs also return 404. |
| 405 | Method Not Allowed | The resource does not support the requested write method. Check the Allow header when provided. |
| 409 | Conflict | Revision, inventory, idempotency, or concurrent operation conflict. Inspect error.code before retrying. |
| 422 | Unprocessable Entity | The payload cannot be applied to the resource, measurement configuration, inventory, or supported workflow. |
| 429 | Too Many Requests | Back off if rate limiting is applied. Honor Retry-After when present; no fixed retry interval is guaranteed. |
| 500 | Internal Server Error | An unexpected failure. For reads, retry with backoff. For writes, preserve the same key and inspect the receipt when available. |
Scroll horizontally to see all columns.
| Error code | HTTP status | Meaning |
|---|---|---|
| bad_request | 400 | Invalid parameters or request body. |
| unauthorized | 401 | Authentication failed. |
| forbidden | 403 | Plan, feature, or add-on access is unavailable. |
| not_found | 404 | Resource not found in this shop or endpoint context. |
| method_not_allowed | 405 | Unsupported method on a write resource. |
| conflict / revision_conflict | 409 | The order or recipe changed. Read it again before preparing a new operation. |
| idempotency_key_reused | 409 | The key is already bound to a different request. |
| operation_in_progress | 409 | The identical kit/order write is processing. Inspect error.details.operationId; Retry-After is 2 seconds. |
| resource_in_progress | 409 | Another kit/order operation owns this scope. This request had no effects; retry its same key after the owner finishes. Retry-After is 2 seconds. |
| operation_requires_review | 409 | Changes or receipt persistence may have occurred. Reconcile the operation before starting another write. |
| unprocessable_entity | 422 | Resource state or configuration cannot support this request. |
| rate_limited | 429 | Too many requests. |
| internal_error | 500 | Unexpected server failure; a failed write response alone does not prove rollback. |
Resource-specific codes include kit inventory shortages, recipe limits, ineligible variants, and measured order restrictions. The fractional inventory reference documents its separate conflict and partial-failure contract. Read each endpoint’s error table as well as this common reference.
Kit and order errors may contain operationId and operationStatus in error.details. Retrieve operation status after a lost response or uncertain result. Reuse the original key and identical input for a retry; never bypass processing or requires_review with a new key. A saved rejected operation replays its error, so corrected input needs a new key after the rejection is resolved.
The write safety guide describes permanent kit/order receipts, revision checks, and recovery. Contact support with the operation ID, error code, and request ID when available.