Measura API documentation · v1

ApiError

The error object in a failed API response. Successful responses set error to null.

Fields

Scroll horizontally to see all columns.

FieldTypeDescription
codestringMachine-readable error code. Interpret it together with the HTTP status and endpoint contract.
messagestringHuman-readable explanation of the failure.
detailsJSON value (optional)Context-specific details, omitted when not provided. May be an object, array, primitive, or null; do not require an empty object.
details.operationIdstring (optional)For kit/order operation failures, a UUID that can be retrieved through GET /operations/{operationId}. When details is an object, this may identify the receipt.
details.operationStatusstring (optional)May be rejected or requires_review for a saved kit/order failure. A requires_review state can mean changes already applied.

Note

meta and requestId are optional envelope fields. They are not fields of ApiError. Retry information is provided only where the endpoint specifies it; honor a Retry-After header when present.

Related:

See error codes and write safety and recovery before retrying writes.

Code example
{
  "success": false,
  "data": null,
  "error": {
    "code": "operation_in_progress",
    "message": "This request is already processing. Retrieve its operation status before retrying.",
    "details": {
      "operationId": "12345678-1234-4234-a234-123456789abc"
    }
  }
}