Errors
When Shop Light refuses a request, you get an HTTP status and usually an error body with code, message, correlation_id, retryable, and details.
Error fields
| Field | Meaning |
|---|---|
code | Error code |
message | Human-readable message |
correlation_id | Keep this if you contact support |
retryable | Whether a retry may work |
details | Extra context (object or null) |
A bad request body may return 422 with a detail list instead of code.
HTTP status codes
| HTTP | Meaning | What to do |
|---|---|---|
401 | Unauthorized | Check X-Api-Key |
402 | Payment required | Check that your Google Shop Light plan is active and has requests left |
408 | Timeout | Retry if retryable is true |
422 | Invalid parameters | Fix the field named in the response (ID, product link, or more_stores range) |
422 | PRODUCT_NOT_FOUND | Google has no product with that catalog ID. Check the ID or try another URL |
422 | UPSTREAM_BLOCKED | Google declined the lookup. Retry the same request with backoff |
429 | Rate limited | Slow down and try again after a short wait |
500 | Internal server error | Check retryable and keep correlation_id |
502 | Upstream unreachable | Retry if retryable is true |
503 | Service unavailable | Try again later |
Retry guidance
- Respect
retryable - Keep
correlation_idwhen you write to support
Billing reminders
- Failed lookups are free
- A returned product costs one request, even if the seller list is partial or completeness is unknown
Next
Was this page helpful?