Skip to main content
CHIP Collect returns errors in two places:
  • HTTP responses to your API requests. Errors come back as 4xx (client errors) or 5xx (server errors) with a JSON body containing a code and a human-readable message.
  • Webhook events for things that happen after the initial request, such as purchase.payment_failure with an error_code field in the payload.
This page lists the most common codes and the recommended next step. Always log the full response so you can debug from the raw error.

HTTP error responses

Webhook error_code values

These appear on purchase.payment_failure and purchase.cancelled events.

Idempotency

For write operations (create, charge, capture, refund, etc.), the same request body sent twice with the same Idempotency-Key header will return the same result without performing the action twice. Always generate an Idempotency-Key server-side for non-idempotent operations so a network retry does not create duplicates.

When to contact support

Open a ticket to support@chip-in.asia if:
  • The same error code is returned for more than 1% of your traffic.
  • You receive an HTTP 5xx response that retries do not clear.
  • A webhook event_id is not delivered within 5 minutes of the corresponding purchase.paid event.
Always include the purchase_id, the request timestamp, and the full response body.