Skip to main content
The createVirtualCardBulkOrder mutation allows you to create multiple virtual cards in a single request.
Prerequisites: a user access token with the CREATE_VIRTUALCARD scope, and a CreateVirtualCardBulkOrderInput object. To find an offerId, see Get Virtual Card Offers.
Bulk orders are processed asynchronously. This mutation returns an orderId and an initial orderStatus of PENDING — poll Get Bulk Order Status to track completion.

Sandbox test offers

Important considerations

  • Offer ID: The offerId is applied to all cards created within the bulk order.
  • Funding Source: You can fund your virtual cards using either your Fluz balance or a linked bank account.
    • If you select a bank account as the primaryFundingSource, you must provide the bankAccountId.
  • Spend Limits: The spendLimit you set must adhere to the program’s defined spend limits for the chosen spendLimitDuration. An error will occur if the limit is exceeded.
  • Quantity: Each item in the orderItems array includes a quantity, allowing you to create multiple cards with the same configuration efficiently.

Arguments

  • input (CreateVirtualCardBulkOrderInput!): The input object containing details for the new virtual card bulk order.

CreateVirtualCardBulkOrderInput fields

CreateVirtualCardBulkOrderItemInput fields

cURL example

Sample mutation

Sample response

Response fields

Next steps

Get bulk order status

Poll the orderId to track processing and retrieve the cards as they’re issued.