Skip to main content
Clara provides a sandbox environment for testing your integration end-to-end without affecting real data or triggering real financial operations.

Sandbox Base URLs

The sandbox uses the same base domain as production, with /api-test/ instead of /api/ in the path:

Example

Authentication in Sandbox

Authentication works identically to production — you still need a valid mTLS client certificate and a Bearer token obtained from the OAuth endpoint. Sandbox and production share the same auth flow.

Getting Sandbox Credentials

Sandbox credentials are separate from production credentials. Contact your Clara integration team to request access:

What You Can Test

The sandbox supports the same endpoints as production. You can test:
  • Card creation, configuration, lock/unlock, and deletion
  • Transaction retrieval with filters and pagination
  • User management
  • Billing statement retrieval
  • VCN lifecycle (create, update, cancel)

Differences from Production

Sandbox data is periodically reset. Do not build long-running dependencies on sandbox UUIDs or state — treat each test session as ephemeral.

Webhooks in sandbox

Sandbox supports webhook subscriptions and on-demand events, isolated from production. A sandbox webhook is identical to the production one: same payload, same signature, same status rules.
  1. Create a sandbox subscription with POST /api-test/v3/webhooks/subscriptions (same body as production; environment is SANDBOX). Use a callbackUrl that none of your production subscriptions uses.
  2. Submit an event with POST /api-test/v3/webhooks/events (scope write:subscribers, Content-Type: application/json).
The event body is the production payload: status, type, modelVersion and data.
  • status takes the production values: NOTIFICATION, PRE_AUTHORIZED, AUTHORIZED, SYSTEM_TRANSACTION, REJECTED, DELETED (case-sensitive). The event reaches subscriptions that contain that status; to test REFUNDED, send "type": "REFUND" with "status": "AUTHORIZED" (other refund stages are not delivered).
  • data.uuid is the event identity. data.companyUUID is optional and, when present, must be your company.
  • The body must be UTF-8 (no byte order mark). Clara delivers exactly the bytes you submit, signed with your sandbox subscription’s secret.
Clara delivers synchronously and answers with the result:
Sandbox deliveries are attempted once: a failed callback is reported in deliveries and is not retried. See Webhooks for signature verification and delivery guarantees.