Prerequisites
- A valid Bearer token and mTLS client certificate. See Authentication.
- The employee’s name, email, and role.
Step 1: Look up the user
Before creating a card, check whether the user already exists in Clara. Query by email to avoid duplicates.totalElements is 0, the user doesn’t exist yet — create them first via the Users API, then proceed with the uuid returned.
Step 2: Issue a virtual card
Create a virtual card assigned to the user. Set athreshold (spending limit) and a periodicity that resets it automatically.
uuid — you’ll need it for configuration and status checks.
Step 3: Apply spending restrictions (optional)
Use the Card Configurations API to add time, day-of-week, or merchant category restrictions. All fields are optional and can be combined.
See Card Configurations for the full list of merchant categories and options.
Step 4: Confirm the card is active
Verify the card is ready before distributing it to the employee.status.code is "ACTIVE" before sharing the card details with the cardholder.
