Skip to main content
This guide covers the full employee card lifecycle: onboarding a new cardholder, issuing a virtual card, configuring optional spending restrictions, and safely offboarding when an employee departs.

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.
Response:
If 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 a threshold (spending limit) and a periodicity that resets it automatically.
Response:
Save the card 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.
This example restricts usage to weekdays only and allows spending solely at transportation, car rental, hotel, and food merchants. Common configurations: 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.
Confirm status.code is "ACTIVE" before sharing the card details with the cardholder.

Adjust the spending limit

To raise or lower the threshold at any time:

Offboarding

When an employee leaves, first lock the card to immediately block usage, then delete it once you’ve confirmed there are no pending transactions. Lock the card (immediately blocks all charges):
Delete the card (permanent, cannot be recovered):
Deleted cards cannot be recovered. Lock first, wait 24–48 hours to confirm no settlements are pending, then delete.