REST API v2
Errors

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

StatusCodeMeaningWhat to do
200SHOP_UNINSTALLEDApp not installed on shop. Returned with HTTP 200; check success/code, not only the statusReinstall the app
400—Bad request: invalid parameters or request dataFix the parameters or request data
401—Unauthorized: missing or invalid authenticationCheck both authentication headers
402plan_upgrade_requiredPayment required: the API is not included in the plan (Free/Starter). The code is in the error fieldUpgrade to Pro or higher
403—Forbidden: read-only key (or private bot key) used for a non-GET requestUse a full-access key for non-GET requests
404CUSTOMER_NOT_FOUNDCustomer doesn't existVerify customer ID
404PROGRAM_NOT_FOUNDProgram doesn't existCheck program ID
404TIER_NOT_FOUNDTier doesn't existVerify tier ID
404—Resource doesn't existVerify the resource ID
429daily_quota_exceededDaily quota used upWait Retry-After seconds (until next UTC midnight), or upgrade the plan
429rate_limit_exceededBurst limit or 120/10s ceiling exceededWait Retry-After seconds (10)
500—Internal server error: unexpected server errorCheck 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"
}
FieldTypeWhen present
successbooleanAlways (false)
errorstringAlways: plan_upgrade_required (plan access), daily_quota_exceeded (daily quota) or rate_limit_exceeded (burst or ceiling limit)
messagestringAll three errors
limitnumberdaily_quota_exceeded, rate_limit_exceeded
usednumberdaily_quota_exceeded
resetsAtstring (ISO 8601)daily_quota_exceeded
periodSecondsnumberrate_limit_exceeded
upgrade_urlstringplan_upgrade_required, daily_quota_exceeded