Card object that will be used to issue and manage virtual cards through Confido Legal.
The Card Object
Creating a Card
ThecardCreate mutation issues a new virtual card. Call it with the Firm API token.
authorizationControls— restrictions on where and how the card can be used (nullable)bankAccountId— the ID of the bank account the card is funded frombillingAddress— the billing address associated with the card, defaults to the firm address (nullable)cardholderName— the name of the cardholder, defaults to the firm name (nullable)clientId— the ID of the client to associate with the card (nullable)matterId— the ID of the matter to associate with the card (nullable)nickname— an optional nickname for the card (nullable)vendorId— the ID of the vendor to associate with the card (nullable)
Update a Card
ThecardUpdate mutation updates an existing virtual card. Call it with the Firm API token.
id— the ID of the card to updateauthorizationControls— restrictions on where and how the card can be used (nullable)billingAddress— the billing address associated with the card (nullable)clientId— the ID of the client to associate with the card (nullable)matterId— the ID of the matter to associate with the card (nullable)nickname— an optional nickname for the card (nullable)status— the status of the card (nullable)vendorId— the ID of the vendor to associate with the card (nullable)
Viewing Card Details
Sensitive card details (PAN, CVV, and expiration) are never returned directly from the API. To view a card, mint a short-lived token from your server, then open Confido’s hosted card page or embed it in an iframe. Card data is rendered on Confido’s hosted page, so your servers stay out of PCI scope for card display.High level flow
1
Mint a card view token from your server
2
Open the hosted card page or embed an iframe using the token
3
Mint a new token when the previous one expires
1. Create a token
CallcardDetailsTokenCreate with the Firm API token and the card ID:
cardId— the ID of the card to view
token— a short-lived token used to access the card details pageexpiresAt— when the token expires (one hour after creation)
token should be sent to the browser.
2. View the card
Hosted page
Redirect the user (or open a new tab) to the card details page with the token as a query parameter:
Notes
- Tokens expire after one hour. When a token expires, call
cardDetailsTokenCreateagain and update the page URL or iframesrc. - Do not cache or log full card details. Treat the token as sensitive while it is valid.
- Your application should never collect or store PAN or CVV from the displayed card.