Permanently blocks a card by its card ID.
This method calls Girasol's PATCH /v1/cards/{cardId}/block endpoint and returns the updated card info.
Performs a cash-in operation to transfer funds from the CFX Master Account to a customer card account.
This method calls Girasol's POST /v1/accounts/cash-in endpoint and returns the transaction details.
Performs a cash-out operation to transfer funds from a customer card account to the CFX Master Account.
This method calls Girasol's POST /v1/accounts/cash-out endpoint and returns the transaction details.
Creates a new company user account.
This method calls Girasol's POST /v1/accounts/create-company-user endpoint
and returns the created company account details.
Format: email
ISO 3166-1 alpha-3 country code where the company was incorporated. For more info go to country codes
ISO 3166-1 alpha-3 country code of the legal representative's nationality. For more info go to country codes
OptionallegalRepresentativePassport?: stringCreates a new physical card associated with an account.
This method calls Girasol's POST /v1/cards/create-card endpoint and returns the created card details.
Creates a new virtual card associated with an account.
This method calls Girasol's POST /v1/cards/create-virtual-card endpoint and returns the created card details.
Freezes an account by changing its status to inactive (status: 2).
This method calls Girasol's PATCH /v1/accounts/change-account-status endpoint
and returns the updated account status information. Calling this 'freeze' purely to align
with the terminology used for cards.
Freezes a card by its card ID.
This method calls Girasol's PATCH /v1/cards/{cardId}/freeze endpoint and returns the updated card info.
Retrieves account information by account ID.
This method calls Girasol's GET /v1/accounts/customer-info/{numberAccount} endpoint and returns the account details.
Retrieves card information by card ID.
This method calls Girasol's GET /v1/cards/info-by-card-id/{cardId} endpoint and returns the card details.
Retrieves cards by account ID.
This method calls Girasol's GET /v1/cards/info-by-account/{accountNumber} endpoint and returns the card details.
Get card token by card ID to retrieve card sensitive data.
This method calls the GET /v1/cards/card-token/{cardId} endpoint, and returns the card token.
Retrieves clearing information for a specific date.
This method calls Girasol's GET /v1/clearing?date={date} endpoint and returns the clearing details.
Unfreezes an account by changing its status to active (status: 1).
This method calls Girasol's PATCH /v1/accounts/change-account-status endpoint
and returns the updated account status information. Calling this 'unfreeze' purely to align
with the terminology used for cards.
Unfreezes a card by its card ID.
This method calls Girasol's PATCH /v1/cards/{cardId}/unfreeze endpoint and returns the updated card info.
The status will change from "FREEZED" to "ACTIVE".
Client for Girasol's B2B card-issuing API.
Every Girasol payload arrives inside an envelope —
{ statusCode, error, data }— so the useful body isresponse.data.data: openapi-fetch'sdata(the parsed 2xx body), then the envelope's owndata.handleErrorchecks both the HTTP status and the envelope'serrorflag before anything reads through it.See README.md for how
girasol.d.tsis regenerated and which parts of the vendor spec are not trustworthy.