Errors
Errors use standard HTTP status codes and a JSON body with a human-readable message:
{ "error": "API key is missing the read:patients scope" }| Status | Meaning |
|---|---|
| 400 | The request is malformed, a value is out of range, or an id doesn’t belong to your clinic |
| 401 | The key is missing, wrong or revoked |
| 403 | The key doesn’t have the scope this endpoint needs |
| 404 | No such patient or prescription in your clinic |
| 422 | The request is valid but not allowed (for example the prescriber can’t prescribe, or an impossible status change) |
One exception: if checkout’s card hold or charge fails, the order still exists, so the API replies 200 with "status": "FAILED" and an error field, not an error status. Check status on every checkout response.
Was this page helpful?Thanks for letting us know.Sorry about that. Email us what was missing and we'll help.

