Errors
A successful request returns HTTP 200 with "success": true. Branch on the HTTP status and on success: one error, SHOP_UNINSTALLED, is returned with HTTP 200.
Status and error codes
| Status | Code | Meaning | What to do |
|---|---|---|---|
200 | SHOP_UNINSTALLED | App not installed on shop. Returned with HTTP 200; check success/code, not only the status | Reinstall the app |
400 | — | Bad request: invalid parameters or request data | Fix the parameters or request data |
401 | — | Unauthorized: missing or invalid authentication | Check both authentication headers |
402 | plan_upgrade_required | Payment required: the API is not included in the plan (Free/Starter). The code is in the error field | Upgrade to Pro or higher |
403 | — | Forbidden: read-only key (or private bot key) used for a non-GET request | Use a full-access key for non-GET requests |
404 | CUSTOMER_NOT_FOUND | Customer doesn't exist | Verify customer ID |
404 | PROGRAM_NOT_FOUND | Program doesn't exist | Check program ID |
404 | TIER_NOT_FOUND | Tier doesn't exist | Verify tier ID |
404 | — | Resource doesn't exist | Verify the resource ID |
429 | daily_quota_exceeded | Daily quota used up | Wait Retry-After seconds (until next UTC midnight), or upgrade the plan |
429 | rate_limit_exceeded | Burst limit or 120/10s ceiling exceeded | Wait Retry-After seconds (10) |
500 | — | Internal server error: unexpected server error | Check API status (opens in a new tab) |
See Rate limits for the limits behind each 429.
Error bodies
Errors come in two shapes. Read the code from error.code in the standard envelope, or from error itself in the flat body.
Standard envelope
{
"success": false,
"error": {
"message": "Customer not found",
"code": "CUSTOMER_NOT_FOUND",
"statusCode": 404
},
"timestamp": "2023-07-28T07:27:54.123Z"
}The fields are described in Response format.
Plan and rate-limit errors (402, 429)
Plan and rate-limit errors use a flat body, with the code in error:
{
"success": false,
"error": "daily_quota_exceeded",
"message": "You've reached your daily API limit (200 requests/day) on the pro_3_2025 plan. Your limit resets at midnight UTC, or upgrade your plan for a higher limit.",
"limit": 200,
"used": 201,
"resetsAt": "2026-10-24T00:00:00.000Z",
"upgrade_url": "https://admin.shopify.com/store/<store>/apps/<app>/embed/subscription"
}| Field | Type | When present |
|---|---|---|
success | boolean | Always (false) |
error | string | Always: plan_upgrade_required (plan access), daily_quota_exceeded (daily quota) or rate_limit_exceeded (burst or ceiling limit) |
message | string | All three errors |
limit | number | daily_quota_exceeded, rate_limit_exceeded |
used | number | daily_quota_exceeded |
resetsAt | string (ISO 8601) | daily_quota_exceeded |
periodSeconds | number | rate_limit_exceeded |
upgrade_url | string | plan_upgrade_required, daily_quota_exceeded |