Authorization
API Key
- Used for securing application management endpoints.
- Find your API Key in the Developer console. It will also be included automatically when you open the Explorer.
Authorization: Basic <API_KEY>
User Access Token
- Used for securing user operations.
- Generated from
generateAccessTokenmutation. Read more about the operations in Explorer. Authorization: Bearer <TOKEN>
Queries
getAccountsByUserId
Description
Get all the accounts information for the User using 'Basic
Example
Query
query getAccountsByUserId($userId: UUID!) {
getAccountsByUserId(userId: $userId) {
accountId
type
accountName
seats {
...SeatFragment
}
user {
...UserFragment
}
business {
...BusinessFragment
}
}
}
Variables
{
"userId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
Response
{
"data": {
"getAccountsByUserId": [
{
"accountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"type": "CONSUMER",
"accountName": "xyz789",
"seats": [Seat],
"user": User,
"business": Business
}
]
}
}
getApplicationScopes
Description
Get the allowed scopes of the application using 'Basic
Response
Returns [ScopeType]
Example
Query
query getApplicationScopes {
getApplicationScopes
}
Response
{"data": {"getApplicationScopes": ["LIST_PAYMENT"]}}
getApplicationUsers
Description
Get the users who have granted scopes to the application using 'Basic
Response
Returns [ApplicationUser]
Arguments
| Name | Description |
|---|---|
paginate - OffsetInput
|
Example
Query
query getApplicationUsers($paginate: OffsetInput) {
getApplicationUsers(paginate: $paginate) {
userId
scopes
accounts {
...AccountFragment
}
}
}
Variables
{"paginate": OffsetInput}
Response
{
"data": {
"getApplicationUsers": [
{
"userId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"scopes": ["LIST_PAYMENT"],
"accounts": [Account]
}
]
}
}
getGiftCards
Description
Retrieves the user's gift cards. Requires LIST_PURCHASES scope.
Response
Returns [GiftCard]
Arguments
| Name | Description |
|---|---|
status - [GiftCardStatus]
|
|
paginate - OffsetInput
|
Example
Query
query getGiftCards(
$status: [GiftCardStatus],
$paginate: OffsetInput
) {
getGiftCards(
status: $status,
paginate: $paginate
) {
giftCardId
purchaserUserId
endDate
status
createdAt
merchant {
...MerchantFragment
}
}
}
Variables
{"status": ["ACTIVE"], "paginate": OffsetInput}
Response
{
"data": {
"getGiftCards": [
{
"giftCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaserUserId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"endDate": "2007-12-03T10:15:30Z",
"status": "ACTIVE",
"createdAt": "2007-12-03T10:15:30Z",
"merchant": Merchant
}
]
}
}
getMccList
Description
Query for listing merchant category codes. Requires MAKE_DEPOSIT scope.
Response
Returns [MerchantCategoryCode]
Arguments
| Name | Description |
|---|---|
paginate - OffsetInput
|
Example
Query
query getMccList($paginate: OffsetInput) {
getMccList(paginate: $paginate) {
code
displayDescription
description
}
}
Variables
{"paginate": OffsetInput}
Response
{
"data": {
"getMccList": [
{
"code": "xyz789",
"displayDescription": "xyz789",
"description": "xyz789"
}
]
}
}
getMerchants
Description
Get the active merchant catalog. Requires LIST_OFFERS scope.
Response
Returns [Merchant]!
Arguments
| Name | Description |
|---|---|
name - String
|
|
paginate - OffsetInput
|
|
offerTypes - OfferTypesInput
|
|
filterBy - FilterByInput
|
Apply fine-grained filters to the offers. Example: { deliveryFormat: URL } will only return merchants that have gift card offers with the URL delivery format. |
Example
Query
query getMerchants(
$name: String,
$paginate: OffsetInput,
$offerTypes: OfferTypesInput,
$filterBy: FilterByInput
) {
getMerchants(
name: $name,
paginate: $paginate,
offerTypes: $offerTypes,
filterBy: $filterBy
) {
merchantId
name
slug
offers {
...OfferFragment
}
}
}
Variables
{
"name": "abc123",
"paginate": OffsetInput,
"offerTypes": OfferTypesInput,
"filterBy": FilterByInput
}
Response
{
"data": {
"getMerchants": [
{
"merchantId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"name": "xyz789",
"slug": "xyz789",
"offers": [Offer]
}
]
}
}
getOfferQuote
Description
Get the best offer for merchant based on matching arguments. Requires LIST_OFFERS scope. This requires Fluz to confirm the inventory, response time varies by vendors.
Response
Returns an Offer
Arguments
| Name | Description |
|---|---|
input - GetOfferQuoteInput!
|
Example
Query
query getOfferQuote($input: GetOfferQuoteInput!) {
getOfferQuote(input: $input) {
offeringMerchantId
offerId
type
deliveryFormat
hasStockInfo
offerRates {
...OfferRateFragment
}
denominationsType
stockInfo {
... on StockInfoFixedType {
...StockInfoFixedTypeFragment
}
... on StockInfoVariableType {
...StockInfoVariableTypeFragment
}
}
cloDetails {
...CloDetailsFragment
}
}
}
Variables
{"input": GetOfferQuoteInput}
Response
{
"data": {
"getOfferQuote": {
"offeringMerchantId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"offerId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"type": "GIFT_CARD_OFFER",
"deliveryFormat": "URL",
"hasStockInfo": false,
"offerRates": [OfferRate],
"denominationsType": "VARIABLE",
"stockInfo": [StockInfoFixedType],
"cloDetails": CloDetails
}
}
}
getReferralUrl
Description
Get the referral url for a merchant.
Response
Returns a String
Arguments
| Name | Description |
|---|---|
merchant - MerchantInput
|
Example
Query
query getReferralUrl($merchant: MerchantInput) {
getReferralUrl(merchant: $merchant)
}
Variables
{"merchant": MerchantInput}
Response
{"data": {"getReferralUrl": "abc123"}}
getUserAddresses
Description
getUserAddresses returns the user's addresses.
Response
Returns [UserAddress]
Arguments
| Name | Description |
|---|---|
paginate - OffsetInput
|
Example
Query
query getUserAddresses($paginate: OffsetInput) {
getUserAddresses(paginate: $paginate) {
userAddressId
streetAddressLine1
streetAddressLine2
country
city
state
postalCode
}
}
Variables
{"paginate": OffsetInput}
Response
{
"data": {
"getUserAddresses": [
{
"userAddressId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"streetAddressLine1": "xyz789",
"streetAddressLine2": "abc123",
"country": "abc123",
"city": "xyz789",
"state": "xyz789",
"postalCode": "xyz789"
}
]
}
}
getUserPurchases
Description
Retrieves the user's purchase history. Requires LIST_PURCHASES scope.
Response
Returns [UserPurchase]
Arguments
| Name | Description |
|---|---|
filter - UserPurchaseFilterInput
|
|
paginate - OffsetInput
|
Example
Query
query getUserPurchases(
$filter: UserPurchaseFilterInput,
$paginate: OffsetInput
) {
getUserPurchases(
filter: $filter,
paginate: $paginate
) {
purchaseId
purchaseDisplayId
purchaseBankCardId
bankAccountId
purchaseAmount
fluzpayAmount
seatRewardValue
paypalVaultId
createdAt
giftCard {
...GiftCardFragment
}
virtualCard {
...VirtualCardFragment
}
accountId
purchaserUserId
}
}
Variables
{
"filter": UserPurchaseFilterInput,
"paginate": OffsetInput
}
Response
{
"data": {
"getUserPurchases": [
{
"purchaseId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaseDisplayId": "xyz789",
"purchaseBankCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaseAmount": 123.45,
"fluzpayAmount": 123.45,
"seatRewardValue": 987.65,
"paypalVaultId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"createdAt": "2007-12-03T10:15:30Z",
"giftCard": GiftCard,
"virtualCard": VirtualCard,
"accountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaserUserId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
]
}
}
getVirtualCardBalance
Description
Get balance for multiple virtual cards. Requires PCI_COMPLIANCE and REVEAL_VIRTUALCARD scope.
Response
Returns [VirtualCardBalance!]!
Arguments
| Name | Description |
|---|---|
input - GetVirtualCardBalanceInput!
|
Example
Query
query getVirtualCardBalance($input: GetVirtualCardBalanceInput!) {
getVirtualCardBalance(input: $input) {
virtualCardId
spentAmount
remainingBalance
spendLimit
spendLimitDuration
}
}
Variables
{"input": GetVirtualCardBalanceInput}
Response
{
"data": {
"getVirtualCardBalance": [
{
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"spentAmount": 123.45,
"remainingBalance": 123.45,
"spendLimit": 123.45,
"spendLimitDuration": "DAILY"
}
]
}
}
getVirtualCardBulkOrderStatus
Description
Checks bulk virtual card order status. Requires PCI_COMPLIANCE and REVEAL_VIRTUALCARD scope.
Response
Returns a VirtualCardBulkOrder
Arguments
| Name | Description |
|---|---|
input - GetVirtualCardBulkOrderStatusInput!
|
Example
Query
query getVirtualCardBulkOrderStatus($input: GetVirtualCardBulkOrderStatusInput!) {
getVirtualCardBulkOrderStatus(input: $input) {
orderId
orderStatus
virtualCards {
...VirtualCardDetailsFragment
}
totalCards
successfulCardCreations
failedCardCreations
}
}
Variables
{"input": GetVirtualCardBulkOrderStatusInput}
Response
{
"data": {
"getVirtualCardBulkOrderStatus": {
"orderId": "abc123",
"orderStatus": "PENDING",
"virtualCards": [VirtualCardDetails],
"totalCards": 987,
"successfulCardCreations": 123,
"failedCardCreations": 987
}
}
}
getVirtualCardOffers
Description
Get virtual card offers. Requires CREATE_VIRTUALCARD scope.
Response
Returns [VirtualCardOffer]
Arguments
| Name | Description |
|---|---|
input - GetVirtualCardOffersInput
|
Example
Query
query getVirtualCardOffers($input: GetVirtualCardOffersInput) {
getVirtualCardOffers(input: $input) {
offerId
programName
bin
bankName
programLimits {
...ProgramLimitsFragment
}
rewardValue
}
}
Variables
{"input": GetVirtualCardOffersInput}
Response
{
"data": {
"getVirtualCardOffers": [
{
"offerId": "abc123",
"programName": "abc123",
"bin": "abc123",
"bankName": "xyz789",
"programLimits": ProgramLimits,
"rewardValue": "xyz789"
}
]
}
}
getVirtualCardTransactions
Description
Get transactions for multiple virtual cards with filters. Requires PCI_COMPLIANCE and REVEAL_VIRTUALCARD scope.
Response
Returns [VirtualCardTransactions!]!
Arguments
| Name | Description |
|---|---|
input - GetVirtualCardTransactionsInput!
|
Example
Query
query getVirtualCardTransactions($input: GetVirtualCardTransactionsInput!) {
getVirtualCardTransactions(input: $input) {
virtualCardId
transactions {
...VirtualCardTransactionFragment
}
}
}
Variables
{"input": GetVirtualCardTransactionsInput}
Response
{
"data": {
"getVirtualCardTransactions": [
{
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"transactions": [VirtualCardTransaction]
}
]
}
}
getWallet
Description
getWallet returns the user's wallet balance and payment methods.
Response
Returns a GetWalletResponse
Example
Query
query getWallet {
getWallet {
bankCards {
...BankCardFragment
}
bankAccounts {
...BankAccountFragment
}
paypalAccounts {
...PaypalFragment
}
blockedPaymentTypes
balances {
...UserBalancesFragment
}
}
}
Response
{
"data": {
"getWallet": {
"bankCards": [BankCard],
"bankAccounts": [BankAccount],
"paypalAccounts": [Paypal],
"blockedPaymentTypes": ["BANK_CARD"],
"balances": UserBalances
}
}
}
Mutations
addBankCard
Description
addBankCard adds a bank card to the user's wallet. Requires PCI_COMPLIANCE from the developer and MANAGE_PAYMENT scope. PERSONAL/Private applications are exempt from PCI_COMPLIANCE requirement.
Response
Returns a BankCard
Arguments
| Name | Description |
|---|---|
input - AddBankCardInput!
|
Example
Query
mutation addBankCard($input: AddBankCardInput!) {
addBankCard(input: $input) {
bankCardId
ownerAccountId
addedUserId
cardType
cardProcessor
cardholderName
lastFourDigits
expirationMonth
expirationYear
cardStatus
billingAddressId
}
}
Variables
{"input": AddBankCardInput}
Response
{
"data": {
"addBankCard": {
"bankCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"ownerAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"addedUserId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"cardType": "DEBIT",
"cardProcessor": "abc123",
"cardholderName": "xyz789",
"lastFourDigits": "xyz789",
"expirationMonth": "abc123",
"expirationYear": "xyz789",
"cardStatus": "ACTIVE",
"billingAddressId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
}
}
createUserCashBalance
Description
Mutation for creating a new user cash balance account. Requires MANAGE_PAYMENT scope.
Response
Returns a UserCashBalance!
Arguments
| Name | Description |
|---|---|
input - CreateUserCashBalanceInput!
|
Example
Query
mutation createUserCashBalance($input: CreateUserCashBalanceInput!) {
createUserCashBalance(input: $input) {
userCashBalanceId
totalCashBalance
availableCashBalance
lifetimeCashBalance
nickname
status
createdAt
}
}
Variables
{"input": CreateUserCashBalanceInput}
Response
{
"data": {
"createUserCashBalance": {
"userCashBalanceId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"totalCashBalance": "abc123",
"availableCashBalance": "abc123",
"lifetimeCashBalance": "xyz789",
"nickname": "xyz789",
"status": "ACTIVE",
"createdAt": "2007-12-03T10:15:30Z"
}
}
}
createVirtualCard
Description
Initiates virtual card creation. Requires CREATE_VIRTUALCARD scope. @throws INVALID_INPUT if:
- idempotency key is not provided
- spendLimit less than 5
- lockDate is in the past
- spendLimit is not within card program limit
- offerId is defined and is in uuid format
Response
Returns a VirtualCard
Arguments
| Name | Description |
|---|---|
input - CreateVirtualCardInput!
|
Example
Query
mutation createVirtualCard($input: CreateVirtualCardInput!) {
createVirtualCard(input: $input) {
virtualCardId
userId
cardholderName
expiryMonth
expiryYear
virtualCardLast4
status
cardType
initialAmount
usedAmount
createdAt
authorizationSetting {
...VirtualCardAuthorizationSettingFragment
}
}
}
Variables
{"input": CreateVirtualCardInput}
Response
{
"data": {
"createVirtualCard": {
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"userId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"cardholderName": "abc123",
"expiryMonth": "abc123",
"expiryYear": "xyz789",
"virtualCardLast4": "abc123",
"status": "PENDING",
"cardType": "MULTI_USE",
"initialAmount": 987.65,
"usedAmount": 123.45,
"createdAt": "2007-12-03T10:15:30Z",
"authorizationSetting": VirtualCardAuthorizationSetting
}
}
}
createVirtualCardBulkOrder
Description
Initiates bulk virtual card creation. Requires CREATE_VIRTUALCARD scope.
Response
Returns a VirtualCardBulkOrder
Arguments
| Name | Description |
|---|---|
input - CreateVirtualCardBulkOrderInput!
|
Example
Query
mutation createVirtualCardBulkOrder($input: CreateVirtualCardBulkOrderInput!) {
createVirtualCardBulkOrder(input: $input) {
orderId
orderStatus
virtualCards {
...VirtualCardDetailsFragment
}
totalCards
successfulCardCreations
failedCardCreations
}
}
Variables
{"input": CreateVirtualCardBulkOrderInput}
Response
{
"data": {
"createVirtualCardBulkOrder": {
"orderId": "xyz789",
"orderStatus": "PENDING",
"virtualCards": [VirtualCardDetails],
"totalCards": 987,
"successfulCardCreations": 987,
"failedCardCreations": 123
}
}
}
depositCashBalance
Description
Mutation for depositing into a cash balance. Requires MAKE_DEPOSIT scope.
Response
Returns a DepositCashBalanceResponse!
Arguments
| Name | Description |
|---|---|
input - DepositCashBalanceInput!
|
Example
Query
mutation depositCashBalance($input: DepositCashBalanceInput!) {
depositCashBalance(input: $input) {
cashBalanceDeposits {
...CashBalanceDepositFragment
}
balances {
...UserBalancesFragment
}
}
}
Variables
{"input": DepositCashBalanceInput}
Response
{
"data": {
"depositCashBalance": {
"cashBalanceDeposits": [CashBalanceDeposit],
"balances": UserBalances
}
}
}
editVirtualCard
Description
Mutation to edit virtual cards. Requires EDIT_VIRTUALCARD scope.
Response
Returns a VirtualCard
Arguments
| Name | Description |
|---|---|
input - EditVirtualCardInput!
|
Example
Query
mutation editVirtualCard($input: EditVirtualCardInput!) {
editVirtualCard(input: $input) {
virtualCardId
userId
cardholderName
expiryMonth
expiryYear
virtualCardLast4
status
cardType
initialAmount
usedAmount
createdAt
authorizationSetting {
...VirtualCardAuthorizationSettingFragment
}
}
}
Variables
{"input": EditVirtualCardInput}
Response
{
"data": {
"editVirtualCard": {
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"userId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"cardholderName": "xyz789",
"expiryMonth": "xyz789",
"expiryYear": "abc123",
"virtualCardLast4": "abc123",
"status": "PENDING",
"cardType": "MULTI_USE",
"initialAmount": 123.45,
"usedAmount": 987.65,
"createdAt": "2007-12-03T10:15:30Z",
"authorizationSetting": VirtualCardAuthorizationSetting
}
}
}
generateUserAccessToken
Description
Generate a user token using 'Basic
Response
Returns a GenerateUserAccessTokenResponse
Arguments
| Name | Description |
|---|---|
userId - UUID!
|
The userId that will be associated with the token. |
accountId - UUID!
|
The accountId that will be associated with the token. |
scopes - [ScopeType!]!
|
The scopes that the token will have access to. |
seatId - UUID
|
The seatId will be used to make transactions, default to the most recently created if not provided. |
Example
Query
mutation generateUserAccessToken(
$userId: UUID!,
$accountId: UUID!,
$scopes: [ScopeType!]!,
$seatId: UUID
) {
generateUserAccessToken(
userId: $userId,
accountId: $accountId,
scopes: $scopes,
seatId: $seatId
) {
token
refreshToken
scopes
}
}
Variables
{
"userId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"accountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"scopes": ["LIST_PAYMENT"],
"seatId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
Response
{
"data": {
"generateUserAccessToken": {
"token": "abc123",
"refreshToken": "abc123",
"scopes": ["LIST_PAYMENT"]
}
}
}
lockVirtualCard
Description
Mutation to lock virtual cards. Requires EDIT_VIRTUALCARD scope.
Response
Returns a LockVirtualCardResponse
Arguments
| Name | Description |
|---|---|
input - LockVirtualCardInput!
|
Example
Query
mutation lockVirtualCard($input: LockVirtualCardInput!) {
lockVirtualCard(input: $input) {
virtualCardId
locked
}
}
Variables
{"input": LockVirtualCardInput}
Response
{
"data": {
"lockVirtualCard": {
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"locked": true
}
}
}
purchaseGiftCard
Description
Initiates a gift card purchase transaction. Requires PURCHASE_GIFTCARD scope. The offerId or merchantSlug fields cannot both be empty. If both are provided, offerId will be used.
Response
Returns a UserPurchase
Arguments
| Name | Description |
|---|---|
input - PurchaseGiftCardInput!
|
Example
Query
mutation purchaseGiftCard($input: PurchaseGiftCardInput!) {
purchaseGiftCard(input: $input) {
purchaseId
purchaseDisplayId
purchaseBankCardId
bankAccountId
purchaseAmount
fluzpayAmount
seatRewardValue
paypalVaultId
createdAt
giftCard {
...GiftCardFragment
}
virtualCard {
...VirtualCardFragment
}
accountId
purchaserUserId
}
}
Variables
{"input": PurchaseGiftCardInput}
Response
{
"data": {
"purchaseGiftCard": {
"purchaseId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaseDisplayId": "xyz789",
"purchaseBankCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaseAmount": 987.65,
"fluzpayAmount": 987.65,
"seatRewardValue": 123.45,
"paypalVaultId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"createdAt": "2007-12-03T10:15:30Z",
"giftCard": GiftCard,
"virtualCard": VirtualCard,
"accountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaserUserId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
}
}
refreshUserAccessToken
Description
Refresh a user token using 'Basic
Response
Returns a RefreshUserAccessTokenResponse
Arguments
| Name | Description |
|---|---|
refreshToken - String!
|
The refreshToken issued to get a new access token. |
Example
Query
mutation refreshUserAccessToken($refreshToken: String!) {
refreshUserAccessToken(refreshToken: $refreshToken) {
token
scopes
}
}
Variables
{"refreshToken": "xyz789"}
Response
{
"data": {
"refreshUserAccessToken": {
"token": "abc123",
"scopes": ["LIST_PAYMENT"]
}
}
}
revealGiftCardByGiftCardId
Description
Reveals the Gift Card Code. It has an irreversible effect on the Gift Card status. Requires REVEAL_GIFTCARD scope.
Response
Returns a GiftCardCode
Arguments
| Name | Description |
|---|---|
giftCardId - UUID!
|
Example
Query
mutation revealGiftCardByGiftCardId($giftCardId: UUID!) {
revealGiftCardByGiftCardId(giftCardId: $giftCardId) {
code
pin
url
}
}
Variables
{
"giftCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
Response
{
"data": {
"revealGiftCardByGiftCardId": {
"code": "xyz789",
"pin": "abc123",
"url": "xyz789"
}
}
}
revealVirtualCardByVirtualCardId
Description
Reveals the full card number and CVV of a virtual card, along with its billing details. Requires PCI_COMPLIANCE from the developer and REVEAL_VIRTUALCARD scope. PERSONAL/Private applications are exempt from PCI_COMPLIANCE requirement.
Response
Returns a VirtualCardDetails
Arguments
| Name | Description |
|---|---|
virtualCardId - UUID!
|
Example
Query
mutation revealVirtualCardByVirtualCardId($virtualCardId: UUID!) {
revealVirtualCardByVirtualCardId(virtualCardId: $virtualCardId) {
virtualCardId
cardNumber
expiryMMYY
cvv
cardHolderName
billingAddress {
...VirtualCardAddressInfoFragment
}
authorizationSetting {
...VirtualCardAuthorizationSettingFragment
}
}
}
Variables
{
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
Response
{
"data": {
"revealVirtualCardByVirtualCardId": {
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"cardNumber": "abc123",
"expiryMMYY": "abc123",
"cvv": "abc123",
"cardHolderName": "xyz789",
"billingAddress": VirtualCardAddressInfo,
"authorizationSetting": VirtualCardAuthorizationSetting
}
}
}
verifyUserInformation
Description
Verify and record a user's personal information.
Response
Returns a VerifyUserInformationResponse
Arguments
| Name | Description |
|---|---|
firstName - String!
|
The Fluz user's first name. |
lastName - String!
|
The Fluz user's last name. |
streetLine1 - String!
|
The street address line 1. |
streetLine2 - String
|
The street address line 2. |
city - String!
|
The address city. |
state - String!
|
The address state. |
postalCode - String!
|
The postal code. |
country - String!
|
The address country. |
dateOfBirth - String!
|
The user's date of birth (format MM/DD/YYYY). |
ssnLast4 - String!
|
The user's SSN last 4 digits. |
Example
Query
mutation verifyUserInformation(
$firstName: String!,
$lastName: String!,
$streetLine1: String!,
$streetLine2: String,
$city: String!,
$state: String!,
$postalCode: String!,
$country: String!,
$dateOfBirth: String!,
$ssnLast4: String!
) {
verifyUserInformation(
firstName: $firstName,
lastName: $lastName,
streetLine1: $streetLine1,
streetLine2: $streetLine2,
city: $city,
state: $state,
postalCode: $postalCode,
country: $country,
dateOfBirth: $dateOfBirth,
ssnLast4: $ssnLast4
) {
status
message
}
}
Variables
{
"firstName": "abc123",
"lastName": "xyz789",
"streetLine1": "xyz789",
"streetLine2": "abc123",
"city": "abc123",
"state": "abc123",
"postalCode": "abc123",
"country": "abc123",
"dateOfBirth": "abc123",
"ssnLast4": "abc123"
}
Response
{
"data": {
"verifyUserInformation": {
"status": "APPROVED",
"message": "abc123"
}
}
}
SCALAR
Boolean
Description
The Boolean scalar type represents true or false.
DateTime
Description
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the date-time format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
Example
"2007-12-03T10:15:30Z"
Float
Description
The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.
Example
987.65
Int
Description
The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
123
String
Description
The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Example
"xyz789"
UUID
Description
A version 4 UUID is randomly generated. 4 bits are used to indicate version 4, and 2 or 3 bits to indicate the variant (102 or 1102 for variants 1 and 2 respectively)
Example
"afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
INPUT_OBJECT
AddBankCardInput
Description
Input type for adding a bank card to the user's wallet.
Fields
| Input Field | Description |
|---|---|
cardNumber - String!
|
The card number. |
expirationMonth - String!
|
The expiration month in the format MM. |
expirationYear - String!
|
The expiration year in the format YYYY. |
cvv - String!
|
The three- or four-digit security numbers. |
cardholderName - String!
|
The name of the cardholder. |
billingAddress - UserAddressInput
|
Create the card with a new address. |
userAddressId - UUID
|
Create the card with an existing user address. |
Example
{
"cardNumber": "abc123",
"expirationMonth": "abc123",
"expirationYear": "abc123",
"cvv": "abc123",
"cardholderName": "xyz789",
"billingAddress": UserAddressInput,
"userAddressId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
CreateUserCashBalanceInput
Description
Input type for creating a new user cash balance account.
Fields
| Input Field | Description |
|---|---|
nickname - String!
|
Nickname for the cash balance account. |
Example
{"nickname": "xyz789"}
CreateVirtualCardBulkOrderInput
Fields
| Input Field | Description |
|---|---|
offerId - UUID!
|
The Offer Id of Virtual Card Offer. This offer will be applied to all cards created in this order. |
orderItems - [VirtualCardOrderItemInput!]!
|
A list of configurations for the virtual cards to be created. Each item in this list represents a group of one or more cards with identical settings. The total number of cards across all items cannot exceed 100. |
Example
{
"offerId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"orderItems": [VirtualCardOrderItemInput]
}
CreateVirtualCardInput
Description
Input type for creating virtual cards.
Fields
| Input Field | Description |
|---|---|
idempotencyKey - UUID!
|
A unique client generated UUID to ensure a request is processed only once. |
spendLimit - Float!
|
The maximum amount that you can charge to the card. You will only be charged for the amount you actually used. |
spendLimitDuration - VirtualCardSpendLimitDuration
|
Card limit duration type. Default Lifetime. |
lockDate - String
|
The date when the card will be locked. The default is 47 months. |
lockCardNextUse - Boolean
|
The setting to lock the card after next use. The default is false. |
cardNickname - String
|
The card's nickname. |
primaryFundingSource - VirtualCardFundingSource
|
Primary Funding Source for Virtual Card. |
bankAccountId - UUID
|
The unique identifier for the bank account. |
offerId - UUID
|
The Offer Id of Virtual Card Offer. Use getVirtualCardOffers to fetch a list of active offers. |
userCashBalanceId - UUID
|
The unique identifier of the user cash balance id |
Example
{
"idempotencyKey": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"spendLimit": 987.65,
"spendLimitDuration": "DAILY",
"lockDate": "abc123",
"lockCardNextUse": false,
"cardNickname": "abc123",
"primaryFundingSource": "FLUZ_BALANCE",
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"offerId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"userCashBalanceId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
DepositCashBalanceInput
Description
Input type for depositing cash balance, specifying the amount and deposit type.
Fields
| Input Field | Description |
|---|---|
idempotencyKey - UUID!
|
A unique client generated UUID to ensure a request is processed only once. |
amount - Float!
|
The amount deposited. |
depositType - CashBalanceDepositType
|
Type of the deposit being made. |
merchantCategoryCode - Int
|
A four-digit number that classifies a business by the type of products or services it offers |
bankAccountId - UUID
|
Identifier of the bank account for the deposit. |
bankCardId - UUID
|
Identifier of the bank card for the deposit. |
paypalVaultId - UUID
|
Identifier of the PayPal ID for the deposit. |
Example
{
"idempotencyKey": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"amount": 987.65,
"depositType": "CASH_BALANCE",
"merchantCategoryCode": 123,
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"bankCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"paypalVaultId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
EditVirtualCardInput
Description
Input type for edit virtual card.
Fields
| Input Field | Description |
|---|---|
virtualCardId - UUID!
|
The virtual card to update. |
spendLimit - Float
|
The maximum amount that you can charge to the card. You will only be charged for the amount you actually used. |
spendLimitDuration - VirtualCardSpendLimitDuration
|
Card limit duration type. |
lockDate - String
|
The date when the card will be locked. |
lockCardNextUse - Boolean
|
The setting to lock the card after next use. |
cardNickname - String
|
The card's nickname. |
bankAccountId - UUID
|
The bank account ID. |
primaryFundingSource - VirtualCardFundingSource
|
Primary Funding Source for Virtual Card. |
Example
{
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"spendLimit": 123.45,
"spendLimitDuration": "DAILY",
"lockDate": "abc123",
"lockCardNextUse": true,
"cardNickname": "abc123",
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"primaryFundingSource": "FLUZ_BALANCE"
}
FilterByInput
Description
Input for applying fine-grained filters on offer attributes. This will filter the offers within a merchant. If all of a merchant's offers are filtered out, the merchant itself will be excluded.
Fields
| Input Field | Description |
|---|---|
deliveryFormat - DeliveryFormatType
|
Filters gift card offers by their delivery format. |
Example
{"deliveryFormat": "URL"}
GetOfferQuoteInput
Fields
| Input Field | Description |
|---|---|
merchantSlug - String!
|
Human readable unique identifier for merchant. Can be found in merchant list. |
denomination - Float!
|
The purchase amount |
paymentMethod - PaymentMethodType
|
The payment method to be used for the purchase. Default is FLUZPAY |
Example
{
"merchantSlug": "abc123",
"denomination": 123.45,
"paymentMethod": "BANK_CARD"
}
GetVirtualCardBalanceInput
Description
Input type for get virtual card balance.
Fields
| Input Field | Description |
|---|---|
virtualCardIds - [UUID!]!
|
The virtual card ids to fetch balances. |
Example
{
"virtualCardIds": [
"afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
]
}
GetVirtualCardBulkOrderStatusInput
Description
Input type for get bulk virtual card creation order.
Fields
| Input Field | Description |
|---|---|
orderId - String!
|
Example
{"orderId": "abc123"}
GetVirtualCardOffersInput
Description
Input type for get virtual card offers.
Fields
| Input Field | Description |
|---|---|
cardBrandLocked - Boolean
|
Specify if virtual card offers are brand locked. |
cardType - VirtualCardOfferType
|
Specify virtual card network type. |
cardNetwork - VirtualCardNetwork
|
Specify virtual card network type. |
Example
{"cardBrandLocked": false, "cardType": "DEBIT", "cardNetwork": "MASTERCARD"}
GetVirtualCardTransactionsInput
Description
Input type for fetching transactions for multiple virtual cards.
Fields
| Input Field | Description |
|---|---|
virtualCardIds - [UUID!]!
|
A list of virtual card IDs to fetch transactions for. |
filters - VirtualCardTransactionFiltersInput
|
Filters to apply to the transaction data, such as date range or transaction type. |
paginate - OffsetInput
|
Pagination settings for the results, including offset and limit. |
Example
{
"virtualCardIds": [
"afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
],
"filters": VirtualCardTransactionFiltersInput,
"paginate": OffsetInput
}
LockVirtualCardInput
Description
Input type for lock virtual card.
Fields
| Input Field | Description |
|---|---|
virtualCardId - UUID!
|
The virtual card to update. |
Example
{
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
MerchantInput
Description
Input type for getReferralUrl.
Example
{
"id": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"slug": "abc123",
"name": "abc123"
}
OfferTypesInput
OffsetInput
PurchaseGiftCardInput
Description
Input type for purchase gift card.
Fields
| Input Field | Description |
|---|---|
idempotencyKey - UUID!
|
A unique client generated UUID to ensure a request is processed only once. |
offerId - UUID
|
The unique identifier for the offer. |
amount - Float!
|
The amount to purchase. |
balanceAmount - Float
|
The balance amount. |
bankAccountId - UUID
|
The unique identifier for the bank account. |
bankCardId - UUID
|
The unique identifier of the bank card. |
paypalVaultId - UUID
|
The unique identifier of the PayPal account. |
exclusiveRateId - UUID
|
The unique identifier of the exclusive rate. |
merchantSlug - String
|
Human readable unique identifier for merchant. Can be found in merchant list. |
defaultToBalance - Boolean
|
Use balance as the fallback payment method if the primary payment method fails. Defaults to true. |
minRewardRate - Float
|
The minimum reward rate to purchase if merchantSlug option is chosen. |
userCashBalanceId - UUID
|
The unique identifier of the user cash balance id used for this purchase |
Example
{
"idempotencyKey": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"offerId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"amount": 123.45,
"balanceAmount": 123.45,
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"bankCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"paypalVaultId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"exclusiveRateId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"merchantSlug": "xyz789",
"defaultToBalance": false,
"minRewardRate": 987.65,
"userCashBalanceId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
UserAddressInput
Description
Input type for adding an address to the user.
Example
{
"streetAddressLine1": "xyz789",
"streetAddressLine2": "abc123",
"country": "abc123",
"city": "abc123",
"state": "xyz789",
"postalCode": "abc123"
}
UserPurchaseFilterInput
Description
Input filter type for getUserPurchases
- Default [TOKEN_USER].
Fields
| Input Field | Description |
|---|---|
scope - [PurchaseScopeFilter!]
|
Example
{"scope": ["TOKEN_USER"]}
VirtualCardOrderItemInput
Fields
| Input Field | Description |
|---|---|
quantity - Int!
|
The number of virtual cards to create with this specific configuration. |
spendLimit - Float!
|
The maximum amount that you can charge to the card. You will only be charged for the amount you actually used. |
spendLimitDuration - VirtualCardSpendLimitDuration
|
Card limit duration type. Default is Lifetime. |
lockDate - String
|
The date when the card will be locked. The default is 47 months. |
lockCardNextUse - Boolean
|
The setting to lock the card after next use. The default is false. |
cardNickname - String
|
The card's nickname. This nickname will be applied to all cards in this item. |
primaryFundingSource - VirtualCardFundingSource
|
Primary Funding Source for Virtual Card. |
bankAccountId - UUID
|
The unique identifier for the bank account. |
userCashBalanceId - UUID
|
The unique identifier of the user cash balance id |
Example
{
"quantity": 987,
"spendLimit": 123.45,
"spendLimitDuration": "DAILY",
"lockDate": "xyz789",
"lockCardNextUse": false,
"cardNickname": "abc123",
"primaryFundingSource": "FLUZ_BALANCE",
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"userCashBalanceId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
VirtualCardTransactionFiltersInput
Description
Input type for filtering virtual card transactions.
Fields
| Input Field | Description |
|---|---|
transactionTypes - [VirtualCardTransactionListType!]
|
A list of transaction types to filter by (e.g., PURCHASE, REFUND). |
Example
{"transactionTypes": ["PURCHASE"]}
ENUM
AccountType
Description
Enum describing the types of accounts.
Values
| Enum Value | Description |
|---|---|
|
|
Account is a consumer/personal account. |
|
|
Account is a business account. |
Example
"CONSUMER"
BankAccountStatus
Description
BankAccountStatus represents the current status of a bank account.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"ENABLED"
BankAccountType
Description
BankAccountType represents the type of bank account.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"SAVING"
BankCardStatus
Description
BankCardStatus represents the status of bank card.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"ACTIVE"
BankCardType
Description
BankCardType represents the type of bank card.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"DEBIT"
CashBalanceAvailabilityType
Description
Enum defining the types of availability for a cash balance.
Values
| Enum Value | Description |
|---|---|
|
|
The deposit can be settled immediately. |
|
|
Standard processing times applies. |
Example
"INSTANT"
CashBalanceDepositStatus
Description
Enum representing the status of a cash balance deposit.
Values
| Enum Value | Description |
|---|---|
|
|
The deposit is available in the user's account. |
|
|
The deposit attempt has failed. |
|
|
The deposit is currently being processed. |
|
|
The deposit was refunded. |
|
|
The deposit was reversed after being credited. |
|
|
The deposit is under review. |
Example
"AVAILABLE"
CashBalanceDepositType
Description
Enum representing different types of cash balance deposits.
Values
| Enum Value | Description |
|---|---|
|
|
A regular cash balance deposit. |
|
|
A deposit held in reserve balance. |
|
|
A non-withdrawable deposit for gift card balance. |
Example
"CASH_BALANCE"
CloRateTypeEnum
Description
Indicates the type of rate active for a specific period of a Card Linked Offer.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"REGULAR"
DeliveryFormatType
Description
DeliveryFormatType defines the delivery format of the offer.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
Example
"URL"
GiftCardStatus
Description
GiftCardStatus represents the current state of a gift card.
Values
| Enum Value | Description |
|---|---|
|
|
The default status when a Gift Card is generated. |
|
|
The Gift Card has been marked as used by the user. |
Example
"ACTIVE"
OfferDenominationType
Description
OfferDenominationType is the type of denomination of a specific offer.
Values
| Enum Value | Description |
|---|---|
|
|
VARIABLE means that the offer has a variable denomination. |
|
|
FIXED means that the offer has fixed value denominations. |
|
|
VARIABLENOCENTS means that the offer has a variable denomination but the value must be an integer. |
Example
"VARIABLE"
OfferType
Description
OfferType is the type of offer.
Values
| Enum Value | Description |
|---|---|
|
|
GIFT_CARD_OFFER means that the offer is a gift card. |
|
|
EXCLUSIVE_RATE_OFFER means that the offer is a special rate for gift cards. |
|
|
CARD_LINKED_OFFER means that the offer is a special rate for virtual cards. |
Example
"GIFT_CARD_OFFER"
PayPalAccountStatus
Description
PayPalAccountStatus represents the current status of a PayPal account.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"ACTIVE"
PaymentMethodType
Description
PaymentMethodType represents the type of payment method.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"BANK_CARD"
PurchaseScopeFilter
Description
PurchaseScopeFilter indicates the type of filter to use for getUserPurchases query
- TOKEN_USER: use the userId from the token
- TOKEN_ACCOUNT: use the accountId from the token Presence of both filters means both userId and accountId will be used.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"TOKEN_USER"
ScopeType
Description
Enum describing the various types of access scopes available within the system. These scopes define the extent of access granted to user tokens for specific operations.
Values
| Enum Value | Description |
|---|---|
|
|
Allows access to user's payment methods and account balance. |
|
|
Allows access to user's purchase history. |
|
|
Allows access to offers catalog and inventory data. |
|
|
Allows making a deposit to the user's balance. |
|
|
Allows making a withdrawal from the user's balance. |
|
|
Allows purchasing a gift card. |
|
|
Allows revealing a gift card code. |
|
|
Allows handling payment card information. This scope is granted to a PCI compliant developer and all of their applications. You cannot request this when generating a token. PERSONAL/Private applications are exempt from PCI_COMPLIANCE requirement. |
|
|
Allows making changes to user's payment methods. |
|
|
Allows revealing a virtual card details. |
|
|
Allows access to create virtual card. |
|
|
Allows access to edit virtual card. |
|
|
Allows application to request user KYC verification. |
Example
"LIST_PAYMENT"
UserCashBalanceStatus
Description
Enum representing the status of a user cash balance account.
Values
| Enum Value | Description |
|---|---|
|
|
The cash balance account is active and can be used. |
|
|
The cash balance account has been closed. |
|
|
The cash balance account is temporarily suspended. |
Example
"ACTIVE"
UserVerificationStatus
Description
Enum describing the user verification status.
Values
| Enum Value | Description |
|---|---|
|
|
User verification is approved. |
|
|
User verification is declined. |
|
|
User verification is a duplicate. |
|
|
User verification error. |
Example
"APPROVED"
VirtualCardBulkOrderStatus
Description
VirtualCardBulkOrderStatus represents the current state of a bulk virtual card order status.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"PENDING"
VirtualCardFundingSource
Description
VirtualCardFundingSource represents the funding sources available for Virtual Cards.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"FLUZ_BALANCE"
VirtualCardNetwork
Description
VirtualCardNetwork represents the card network of a virtual card (MASTERCARD or VISA).
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"MASTERCARD"
VirtualCardOfferType
Description
VirtualCardOfferType represents the card type of a virtual card (DEBIT or PREPAID).
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"DEBIT"
VirtualCardSpendLimitDuration
Description
VirtualCardSpendLimitDuration represents the card limit duration type.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"DAILY"
VirtualCardStatus
Description
VirtualCardStatus represents the current state of a virtual card.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"PENDING"
VirtualCardTransactionListType
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"PURCHASE"
VirtualCardType
Description
VirtualCardType indicates whether the card is multi-use or single-use, defining its usability.
Values
| Enum Value | Description |
|---|---|
|
|
MULTI_USE is a Virtual Card that can be stored and reused. |
|
|
SINGLE_USE is a Virtual Card that can be used once. |
Example
"MULTI_USE"
OBJECT
Account
Description
Represents the account operable by the application.
Fields
| Field Name | Description |
|---|---|
accountId - UUID
|
The id of the account. |
type - AccountType
|
The type of account. |
accountName - String
|
The name of the business or first and last name of the user. |
seats - [Seat]
|
The seats owned with the account. |
user - User
|
The user associated with the account. |
business - Business
|
The business associated with the account. |
Example
{
"accountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"type": "CONSUMER",
"accountName": "abc123",
"seats": [Seat],
"user": User,
"business": Business
}
ApplicationUser
Description
Represents the User who grants access to the application with scopes.
Fields
| Field Name | Description |
|---|---|
userId - UUID
|
The userId that has granted the scopes. |
scopes - [ScopeType]
|
The user scopes available the application. |
accounts - [Account]
|
The accounts that the user has access to. |
Example
{
"userId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"scopes": ["LIST_PAYMENT"],
"accounts": [Account]
}
BankAccount
Description
BankAccount is a record of a bank account added by a user.
Fields
| Field Name | Description |
|---|---|
bankAccountId - UUID!
|
The ID of the bank account. |
accountId - UUID!
|
|
type - BankAccountType!
|
|
accountName - String!
|
|
status - BankAccountStatus!
|
|
achRouting - String!
|
|
lastFour - String!
|
|
authChargeBackupPaymentMethod - Boolean!
|
|
billingAddressId - UUID!
|
|
nickname - String
|
Example
{
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"accountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"type": "SAVING",
"accountName": "abc123",
"status": "ENABLED",
"achRouting": "xyz789",
"lastFour": "xyz789",
"authChargeBackupPaymentMethod": true,
"billingAddressId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"nickname": "abc123"
}
BankCard
Description
BankCard is a record of a bank card added by a user.
Fields
| Field Name | Description |
|---|---|
bankCardId - UUID!
|
The ID of the bank card. |
ownerAccountId - UUID!
|
|
addedUserId - UUID!
|
|
cardType - BankCardType
|
|
cardProcessor - String
|
|
cardholderName - String
|
|
lastFourDigits - String
|
|
expirationMonth - String
|
|
expirationYear - String
|
|
cardStatus - BankCardStatus
|
|
billingAddressId - UUID
|
Example
{
"bankCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"ownerAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"addedUserId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"cardType": "DEBIT",
"cardProcessor": "xyz789",
"cardholderName": "xyz789",
"lastFourDigits": "abc123",
"expirationMonth": "abc123",
"expirationYear": "abc123",
"cardStatus": "ACTIVE",
"billingAddressId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
Business
CashBalance
Description
CashBalance represents the balance of a user's cash.
Example
{
"availableBalance": "xyz789",
"totalBalance": "abc123",
"pendingBalance": "xyz789",
"lifetimeBalance": "abc123"
}
CashBalanceDeposit
Description
CashBalanceDeposit represents a cash balance deposit, including details like amount, fee, and status.
Fields
| Field Name | Description |
|---|---|
cashBalanceDepositId - UUID!
|
Unique identifier for the cash balance deposit. |
depositDisplayId - String!
|
Display identifier for the deposit, used for user-facing purposes. |
depositAmount - String!
|
The amount of the deposit. |
depositFee - String
|
Fee associated with the deposit, if applicable. |
bankCardId - UUID
|
Identifier of the bank card used for the deposit. |
bankAccountId - UUID
|
Identifier of the bank account used for the deposit. |
paypalVaultId - UUID
|
Identifier of the PayPal vault used for the deposit. |
transactionDate - DateTime!
|
Date and time when the transaction was made. |
clearedDate - DateTime
|
Date and time when the deposit cleared, if applicable. |
status - CashBalanceDepositStatus!
|
Current status of the deposit. |
expectedClearedDate - DateTime!
|
Expected date and time for the deposit to clear. |
cashBalanceDepositType - CashBalanceDepositType!
|
Type of the cash balance deposit. |
cashBalanceSettlements - [CashBalanceSettlement]
|
Associated settlements for the deposit. |
Example
{
"cashBalanceDepositId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"depositDisplayId": "xyz789",
"depositAmount": "abc123",
"depositFee": "xyz789",
"bankCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"paypalVaultId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"transactionDate": "2007-12-03T10:15:30Z",
"clearedDate": "2007-12-03T10:15:30Z",
"status": "AVAILABLE",
"expectedClearedDate": "2007-12-03T10:15:30Z",
"cashBalanceDepositType": "CASH_BALANCE",
"cashBalanceSettlements": [CashBalanceSettlement]
}
CashBalanceSettlement
Description
CashBalanceSettlement representing a settlement record of a cash balance.
Fields
| Field Name | Description |
|---|---|
cashBalanceSettlementId - UUID!
|
Unique identifier for the cash balance settlement. |
cashBalanceDepositId - UUID!
|
Identifier of the associated cash balance deposit. |
availabilityType - CashBalanceAvailabilityType!
|
Type of availability for the settlement (instant or standard). |
status - CashBalanceDepositStatus!
|
Current status of the cash balance settlement. |
Example
{
"cashBalanceSettlementId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"cashBalanceDepositId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"availabilityType": "INSTANT",
"status": "AVAILABLE"
}
CloDetails
Description
[CLO Only] Contains specific details about rates and periods for a Card Linked Offer. This object is null for non-CLO offer types.
Fields
| Field Name | Description |
|---|---|
currentRateType - CloRateTypeEnum!
|
The type of rate currently active (REGULAR or PROMO) based on evaluation of all periods against the current time. |
regularRate - Float
|
The standard reward rate (%) for the offer. |
promoRate - Float
|
The promotional reward rate (%) potentially active during a PROMO period. |
promoBaseRate - Float
|
The reward rate (%) applied during a PROMO period after the promoMaxCap is exceeded. |
promoMaxCap - Float
|
The maximum purchase amount up to which the promoRate applies during a PROMO period. |
applyPromoBaseRateAfterCap - Boolean
|
If true, the promoBaseRate applies to the purchase amount exceeding the promoMaxCap during a PROMO period. |
minimumPurchaseAmount - Float
|
The minimum purchase amount required to qualify for the CLO reward, if any. |
activePeriodStartDate - String
|
The start date (YYYY-MM-DD) of the currently active offer period, if any. |
activePeriodEndDate - String
|
The end date (YYYY-MM-DD) of the currently active offer period, if any. |
periods - [CloPeriod!]!
|
List of all defined periods for this offer's rates (past, present, future). |
Example
{
"currentRateType": "REGULAR",
"regularRate": 987.65,
"promoRate": 123.45,
"promoBaseRate": 123.45,
"promoMaxCap": 123.45,
"applyPromoBaseRateAfterCap": false,
"minimumPurchaseAmount": 987.65,
"activePeriodStartDate": "xyz789",
"activePeriodEndDate": "xyz789",
"periods": [CloPeriod]
}
CloPeriod
Description
[CLO Only] Represents a specific time period during which a Card Linked Offer rate applies.
Example
{
"id": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"offerRateType": "REGULAR",
"periodType": "xyz789",
"startDate": "abc123",
"endDate": "xyz789",
"startTime": "abc123",
"endTime": "xyz789",
"daysOfWeek": ["abc123"],
"daysOfMonth": ["abc123"]
}
DepositCashBalanceResponse
Description
Response type for the depositCashBalance mutation, returning the resulting deposits and current user balances.
Fields
| Field Name | Description |
|---|---|
cashBalanceDeposits - [CashBalanceDeposit]
|
List of cash balance deposits made as part of the mutation. |
balances - UserBalances
|
User's current balances. |
Example
{
"cashBalanceDeposits": [CashBalanceDeposit],
"balances": UserBalances
}
GenerateUserAccessTokenResponse
Description
Represents the response returned from the generateUserAccessToken mutation. Includes the access token and the scopes that the token grants.
Fields
| Field Name | Description |
|---|---|
token - String
|
The User Access JWT for API requests. |
refreshToken - String
|
The User Access refresh token for API requests. |
scopes - [ScopeType]
|
The list of scopes granted to the token. |
Example
{
"token": "xyz789",
"refreshToken": "abc123",
"scopes": ["LIST_PAYMENT"]
}
GetWalletResponse
Description
GetWalletResponse represents the response to the get wallet request.
Fields
| Field Name | Description |
|---|---|
bankCards - [BankCard]
|
|
Arguments
|
|
bankAccounts - [BankAccount]
|
|
Arguments
|
|
paypalAccounts - [Paypal]
|
|
blockedPaymentTypes - [PaymentMethodType]
|
|
balances - UserBalances
|
|
Example
{
"bankCards": [BankCard],
"bankAccounts": [BankAccount],
"paypalAccounts": [Paypal],
"blockedPaymentTypes": ["BANK_CARD"],
"balances": UserBalances
}
GiftCard
Description
GiftCard represents a record of a gift card purchased by a user.
Fields
| Field Name | Description |
|---|---|
giftCardId - UUID!
|
The ID associated with the gift card. |
purchaserUserId - UUID!
|
The ID of the user who made the purchase. |
endDate - DateTime!
|
The expiration date of the gift card. |
status - GiftCardStatus!
|
The status of the Gift Card. |
createdAt - DateTime!
|
The time the gift card was created. |
merchant - Merchant
|
A connection to the merchant that the gift card can be redeemed at. |
Example
{
"giftCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaserUserId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"endDate": "2007-12-03T10:15:30Z",
"status": "ACTIVE",
"createdAt": "2007-12-03T10:15:30Z",
"merchant": Merchant
}
GiftCardCode
LockVirtualCardResponse
Merchant
Description
Merchant is place that a Gift Card can be use, or can charge a user's VirtualCard.
Example
{
"merchantId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"name": "xyz789",
"slug": "xyz789",
"offers": [Offer]
}
MerchantCategoryCode
Description
MerchantCategoryCode represents the classifier for a business by the types of goods or services it provides.
Example
{
"code": "xyz789",
"displayDescription": "abc123",
"description": "abc123"
}
Offer
Description
Offer is a discounted offer for a merchant.
Fields
| Field Name | Description |
|---|---|
offeringMerchantId - UUID!
|
|
offerId - UUID!
|
|
type - OfferType!
|
|
deliveryFormat - DeliveryFormatType
|
|
hasStockInfo - Boolean
|
|
offerRates - [OfferRate]
|
|
denominationsType - OfferDenominationType
|
|
stockInfo - [StockInfoType]!
|
StockInfo is an object where the key:value pairs represent the amount in stock for each denomination (key = denomination; value = amount in stock). It's only available if the offer hasStockInfo. This requires Fluz to confirm the inventory, response time varies by vendors. |
cloDetails - CloDetails
|
[CLO Only] Contains specific details about rates and periods for a Card Linked Offer. Returns null for non-CLO offer types. |
Example
{
"offeringMerchantId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"offerId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"type": "GIFT_CARD_OFFER",
"deliveryFormat": "URL",
"hasStockInfo": false,
"offerRates": [OfferRate],
"denominationsType": "VARIABLE",
"stockInfo": [StockInfoFixedType],
"cloDetails": CloDetails
}
OfferRate
Description
OfferRate is the rate of a specific offer.
Example
{
"maxUserRewardValue": 987.65,
"cashbackVoucherRewardValue": 987.65,
"boostRewardValue": 987.65,
"displayBoostReward": false,
"denominations": ["xyz789"],
"allowedPaymentMethods": ["abc123"]
}
Paypal
Description
Paypal represents a PayPal account added by a user.
Fields
| Field Name | Description |
|---|---|
paypalVaultId - UUID!
|
The ID of the PayPal account. |
userId - UUID!
|
|
status - PayPalAccountStatus!
|
|
email - String!
|
Example
{
"paypalVaultId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"userId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"status": "ACTIVE",
"email": "xyz789"
}
ProgramLimits
Description
Represents the bank program spent limits.
Example
{
"dailyLimit": "abc123",
"weeklyLimit": "abc123",
"monthlyLimit": "abc123"
}
RefreshUserAccessTokenResponse
Description
Represents the response returned from the generateUserAccessToken mutation. Includes the access token and the scopes that the token grants.
Fields
| Field Name | Description |
|---|---|
token - String
|
The User Access JWT for API requests. |
scopes - [ScopeType]
|
The list of scopes granted to the token. |
Example
{
"token": "abc123",
"scopes": ["LIST_PAYMENT"]
}
RewardsBalance
Description
RewardsBalance represents the balance of a user's rewards.
Example
{
"availableBalance": "xyz789",
"totalBalance": "abc123",
"lifetimeBalance": "abc123"
}
Seat
StockInfoFixedType
StockInfoVariableType
User
Description
Represents the User who has access to the account.
Example
{
"userId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"firstName": "xyz789",
"lastName": "abc123"
}
UserAddress
Description
UserAddress represents a User Address record.
Example
{
"userAddressId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"streetAddressLine1": "xyz789",
"streetAddressLine2": "xyz789",
"country": "abc123",
"city": "abc123",
"state": "xyz789",
"postalCode": "abc123"
}
UserBalances
Description
UserBalances represents the balances of a user's rewards, cash, and gift card cash.
Fields
| Field Name | Description |
|---|---|
rewardsBalance - RewardsBalance
|
|
cashBalance - CashBalance
|
|
giftCardCashBalance - CashBalance
|
Example
{
"rewardsBalance": RewardsBalance,
"cashBalance": CashBalance,
"giftCardCashBalance": CashBalance
}
UserCashBalance
Description
UserCashBalance represents a user's cash balance account.
Fields
| Field Name | Description |
|---|---|
userCashBalanceId - UUID!
|
Unique identifier for the user cash balance. |
totalCashBalance - String!
|
Total cash balance. |
availableCashBalance - String!
|
Available cash balance. |
lifetimeCashBalance - String!
|
Lifetime cash balance (cumulative total ever deposited). |
nickname - String
|
Custom nickname for the balance. |
status - UserCashBalanceStatus!
|
Status of the cash balance account. |
createdAt - DateTime!
|
Date and time when the account was created. |
Example
{
"userCashBalanceId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"totalCashBalance": "abc123",
"availableCashBalance": "abc123",
"lifetimeCashBalance": "abc123",
"nickname": "xyz789",
"status": "ACTIVE",
"createdAt": "2007-12-03T10:15:30Z"
}
UserPurchase
Description
UserPurchase represents a record of a purchase made by a user, detailing the payment methods and other relevant information.
Fields
| Field Name | Description |
|---|---|
purchaseId - UUID!
|
The ID associated with the purchase. |
purchaseDisplayId - String
|
The display ID of the purchase. |
purchaseBankCardId - UUID
|
The ID of the Bank Card used to make the purchase. |
bankAccountId - UUID
|
The ID of the Bank Account used to make the purchase. |
purchaseAmount - Float!
|
The amount of the purchase. |
fluzpayAmount - Float
|
The amount of the balance applied. |
seatRewardValue - Float!
|
The amount of the cashback reward from the purchase. |
paypalVaultId - UUID
|
The ID of the PayPal used to make the purchase. |
createdAt - DateTime!
|
The time the purchase was created. |
giftCard - GiftCard
|
A connection to the gift card associated with the purchase. |
virtualCard - VirtualCard
|
A connection to the virtual card associated with the purchase. |
accountId - UUID
|
The unique identifier for the fluz account. |
purchaserUserId - UUID
|
The unique identifier for the user who made the purchase. |
Example
{
"purchaseId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaseDisplayId": "xyz789",
"purchaseBankCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"bankAccountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaseAmount": 123.45,
"fluzpayAmount": 123.45,
"seatRewardValue": 123.45,
"paypalVaultId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"createdAt": "2007-12-03T10:15:30Z",
"giftCard": GiftCard,
"virtualCard": VirtualCard,
"accountId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"purchaserUserId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c"
}
VerifyUserInformationResponse
Description
Represents the response returned from the verifyUserInformation mutation.
Fields
| Field Name | Description |
|---|---|
status - UserVerificationStatus!
|
The verification status. |
message - String
|
The response message if any. |
Example
{"status": "APPROVED", "message": "xyz789"}
VirtualCard
Description
VirtualCard represents a record of a virtual card generated by a user.
Fields
| Field Name | Description |
|---|---|
virtualCardId - UUID!
|
The ID associated with the virtual card. |
userId - UUID!
|
The ID of the user who created the virtual card. |
cardholderName - String!
|
The cardholder name appeared on the virtual card. |
expiryMonth - String!
|
The expiration month of the virtual card. |
expiryYear - String!
|
The expiration year of the virtual card. |
virtualCardLast4 - String!
|
The last 4 digits of the virtual card number. |
status - VirtualCardStatus!
|
The status of the virtual card. |
cardType - VirtualCardType!
|
The type of the virtual card. |
initialAmount - Float!
|
The initial amount requested when the card was generated. |
usedAmount - Float
|
The total amount spent on the virtual card. |
createdAt - DateTime!
|
The time the virtual card was generated. |
authorizationSetting - VirtualCardAuthorizationSetting
|
A connection to the authorization setting of the virtual card. |
Example
{
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"userId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"cardholderName": "abc123",
"expiryMonth": "abc123",
"expiryYear": "xyz789",
"virtualCardLast4": "xyz789",
"status": "PENDING",
"cardType": "MULTI_USE",
"initialAmount": 987.65,
"usedAmount": 987.65,
"createdAt": "2007-12-03T10:15:30Z",
"authorizationSetting": VirtualCardAuthorizationSetting
}
VirtualCardAddressInfo
Description
VirtualCardAddressInfo provides the address information associated with a virtual card.
Example
{
"streetAddress": "xyz789",
"billingAddrLine2": "xyz789",
"postalCode": "xyz789",
"city": "xyz789",
"state": "xyz789"
}
VirtualCardAuthorizationSetting
Description
VirtualCardAuthorizationSetting defines the authorization settings for a virtual card.
Fields
| Field Name | Description |
|---|---|
virtualCardAsaSettingsId - UUID!
|
The unique identifier for the authorization setting of the virtual card. |
virtualCardId - UUID!
|
The unique identifier for the virtual card. |
lockDate - String
|
The date when the card was locked. |
dailySpendLimit - String
|
The daily spending limit for the card. |
weeklySpendLimit - String
|
The weekly spending limit for the card. |
monthlySpendLimit - String
|
The monthly spending limit for the card. |
annualSpendLimit - String
|
The annual spending limit for the card. |
lifetimeSpendLimit - String
|
The lifetime spending limit for the card. |
dailySpent - String
|
The amount spent daily on the card. |
weeklySpent - String
|
The amount spent weekly on the card. |
monthlySpent - String
|
The amount spent monthly on the card. |
annualSpent - String
|
The amount spent annually on the card. |
lifetimeSpent - String
|
The amount spent over the lifetime of the card. |
tokenized - Boolean
|
Whether the card is tokenized or not. |
lockedByUser - Boolean
|
Whether the card is locked by the user or not. |
lockCardNextUse - Boolean
|
Whether the card should be locked after the next use. |
cardNickname - String
|
The nickname of the card. |
Example
{
"virtualCardAsaSettingsId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"lockDate": "xyz789",
"dailySpendLimit": "abc123",
"weeklySpendLimit": "abc123",
"monthlySpendLimit": "xyz789",
"annualSpendLimit": "xyz789",
"lifetimeSpendLimit": "abc123",
"dailySpent": "xyz789",
"weeklySpent": "abc123",
"monthlySpent": "xyz789",
"annualSpent": "xyz789",
"lifetimeSpent": "abc123",
"tokenized": false,
"lockedByUser": false,
"lockCardNextUse": true,
"cardNickname": "abc123"
}
VirtualCardBalance
Description
VirtualCardBalance provides information about virtual card balance.
Fields
| Field Name | Description |
|---|---|
virtualCardId - UUID!
|
Virtual Card ID. |
spentAmount - Float!
|
Current card spent amount. |
remainingBalance - Float!
|
Remaining card balance. |
spendLimit - Float!
|
Spend limit for card. |
spendLimitDuration - VirtualCardSpendLimitDuration
|
Card limit duration type. Default is Lifetime. |
Example
{
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"spentAmount": 123.45,
"remainingBalance": 987.65,
"spendLimit": 987.65,
"spendLimitDuration": "DAILY"
}
VirtualCardBulkOrder
Description
VirtualCardBulkOrder provides information about bulk creation order.
Fields
| Field Name | Description |
|---|---|
orderId - String!
|
Order ID. |
orderStatus - VirtualCardBulkOrderStatus!
|
Status of the order. |
virtualCards - [VirtualCardDetails]
|
Created virtual card details. |
totalCards - Int
|
Total cards count. |
successfulCardCreations - Int
|
Successful card creation count. |
failedCardCreations - Int
|
Failed card creation count. |
Example
{
"orderId": "abc123",
"orderStatus": "PENDING",
"virtualCards": [VirtualCardDetails],
"totalCards": 987,
"successfulCardCreations": 123,
"failedCardCreations": 987
}
VirtualCardDetails
Description
The VirtualCardDetails type represents the details of a virtual card.
Fields
| Field Name | Description |
|---|---|
virtualCardId - UUID
|
The card ID. |
cardNumber - String
|
The card number. |
expiryMMYY - String
|
The expiry date in MMYY format. |
cvv - String
|
The CVV code. |
cardHolderName - String
|
The card holder's name. |
billingAddress - VirtualCardAddressInfo
|
The billing address. |
authorizationSetting - VirtualCardAuthorizationSetting
|
The authorization setting. |
Example
{
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"cardNumber": "abc123",
"expiryMMYY": "xyz789",
"cvv": "abc123",
"cardHolderName": "abc123",
"billingAddress": VirtualCardAddressInfo,
"authorizationSetting": VirtualCardAuthorizationSetting
}
VirtualCardOffer
Description
Represents the Bank identification numbers (BINs).
Example
{
"offerId": "xyz789",
"programName": "xyz789",
"bin": "abc123",
"bankName": "abc123",
"programLimits": ProgramLimits,
"rewardValue": "xyz789"
}
VirtualCardTransaction
Description
Virtual card transaction type.
Example
{
"transactionDate": "xyz789",
"transactionType": "PURCHASE",
"transactionAmount": 123.45,
"transactionApproval": "abc123",
"transactionResponseCode": "xyz789",
"transactionStatus": "abc123",
"merchantName": "xyz789",
"paymentMethod": "abc123"
}
VirtualCardTransactions
Description
Virtual card transactions, grouped by virtual card ID.
Fields
| Field Name | Description |
|---|---|
virtualCardId - UUID!
|
|
transactions - [VirtualCardTransaction!]!
|
Example
{
"virtualCardId": "afa75cac-9cea-437c-9d9d-2a1fbf47c66c",
"transactions": [VirtualCardTransaction]
}
UNION
StockInfoType
Description
StockInfoType describes the stock for either fixed or variable offers. Used by the Offer type.
Types
| Union Types |
|---|
Example
StockInfoFixedType