Bunne

API Documentation

Errors

Stable error envelopes for every REST endpoint.

Public errors return a safe type, code, message and request_id. The request id should be logged by integrators and support teams.

Error envelope
{  "error": {    "type": "validation_error",    "code": "invalid_request",    "message": "Invalid request payload.",    "request_id": "req_xxx",    "issues": []  }}

Error types

FieldTypeDescription
authentication_error401Missing, malformed or invalid API key.
permission_error403The key is valid but does not include the required permission.
validation_error400The request body, path or query parameters are invalid.
idempotency_error409The Idempotency-Key was reused with a different request.
not_found_error404The resource does not exist in the current API key scope.
rate_limit_error429The integration exceeded the configured rate limit.
configuration_error400The platform configuration is incomplete for this operation.
api_error5xxUnexpected platform or downstream failure.

Common codes

FieldTypeDescription
invalid_api_keyauthThe Authorization header is missing or invalid.
insufficient_permissionsauthzThe key cannot perform this action.
invalid_requestvalidationThe payload failed schema validation.
raw_card_not_allowedPCIRaw card data was sent to a non-tokenization endpoint.
pricing_plan_not_configuredconfigThe platform has not configured its pricing plan for this method/installments yet.
idempotency_key_conflictretryThe same key was used for a different operation.
internal_errorserverUnexpected failure; use request_id when contacting support.