Errors
Error formats, status codes, and troubleshooting.
Status codes
| Status | Meaning |
|---|---|
| 400 | Invalid payload or validation error. |
| 401 | Missing or invalid API key. |
| 405 | Method not allowed. |
| 404 | Missing config for the shop. |
Validation error format
{
"error": "Invalid payload",
"issues": [{ "path": ["identity", "sessionId"], "message": "Required" }]
}Unauthorized error format
{
"error": "Unauthorized"
}Troubleshooting
- Check API key header is present.
- Ensure
identity.customerIdoridentity.sessionIdis set. - For
GET /product/visit, use query params.