invalid_body | 400 | Body is missing, not JSON, or structurally unreadable |
unauthorized | 401 | Key is missing, malformed, revoked, or expired |
card_required | 402 | No card on file for the clinic — order cannot be charged |
payment_declined | 402 | The clinic’s card on file was declined |
insufficient_scope | 403 | Key lacks the scope this endpoint requires |
not_vita_clinic | 403 | Write endpoint called by an org that is not an active Vita Clinic |
not_found | 404 | Resource does not exist or belongs to another organization |
patient_not_found | 404 | Referenced patient does not exist for this organization |
duplicate_request | 409 | Idempotency conflict — the external id is in use with a different payload |
validation_failed | 422 | Well-formed JSON that failed field validation |
product_not_found | 422 | A referenced product_id does not exist |
product_not_allowed | 422 | The product exists but is not orderable by this clinic |
rate_limited | 429 | Per-key write rate limit exceeded |
internal_error | 500 | Unexpected server failure |