MiB

Errors

Error formats, status codes, and troubleshooting.

Status codes

StatusMeaning
400Invalid payload or validation error.
401Missing or invalid API key.
405Method not allowed.
404Missing 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.customerId or identity.sessionId is set.
  • For GET /product/visit, use query params.

On this page