View Transactions

getUserPurchases

To view historical gift card purchases and virtual cards on your account, use the getUserPurchases query. The query requires LIST_PURCHASES scope. This query response can get bulky, so we ask you to provide a pagination input:

Pagination Input

The OffsetInput argument is used to manage pagination in API responses, allowing you to control how many items are returned per page and how many items should be skipped from the beginning of the list.

Fields

limit (Int): This field specifies the number of items to return per page. The maximum number of items you can request per page is 20. If you do not specify a value for limit, it will default to 20.

offset (Int): This field specifies the number of items to skip before starting to return the items. If you do not specify a value for offset, it will default to 0, meaning it will start from the first item in the list.

Response

When you run this query, it will respond with an array of your historical gift card purchases and generated virtual cards.

{
  "data": {
    "getUserPurchases": [
      {
        "purchaseId": "255f8245-02c7-4817-901e-15fe265f6968",
        "purchaseDisplayId": "1019688",
        "purchaseBankCardId": "255f8245-02c7-4817-901e-15fe265f6968",
        "bankAccountId": "255f8245-02c7-4817-901e-15fe265f6968",
        "purchaseAmount": 987.65,
        "fluzpayAmount": 123.45,
        "seatRewardValue": 987.65,
        "paypalVaultId": "255f8245-02c7-4817-901e-15fe265f6968",
        "createdAt": "2007-12-03T10:15:30Z",
        "giftCard": {
          // GiftCardFragment details
        },
        "virtualCard": {
          // VirtualCardFragment details
        }
      },
      {
        "purchaseId": "4f4b3c5d-6f7e-8a9b-0c1d-23e4f5678a90",
        "purchaseDisplayId": "1019688",
        "purchaseBankCardId": "4f4b3c5d-6f7e-8a9b-0c1d-23e4f5678a90",
        "bankAccountId": "4f4b3c5d-6f7e-8a9b-0c1d-23e4f5678a90",
        "purchaseAmount": 250.00,
        "fluzpayAmount": 50.00,
        "seatRewardValue": 10.00,
        "paypalVaultId": "4f4b3c5d-6f7e-8a9b-0c1d-23e4f5678a90",
        "createdAt": "2024-01-10T08:20:00Z",
        "giftCard": {
          // GiftCardFragment details
        },
        "virtualCard": {
          // VirtualCardFragment details
        }
      },
      {
        "purchaseId": "7e8f9a0b-1c2d-3e4f-5g6h-789i0jklm1no",
        "purchaseDisplayId": "1019688",
        "purchaseBankCardId": "7e8f9a0b-1c2d-3e4f-5g6h-789i0jklm1no",
        "bankAccountId": "7e8f9a0b-1c2d-3e4f-5g6h-789i0jklm1no",
        "purchaseAmount": 450.75,
        "fluzpayAmount": 75.00,
        "seatRewardValue": 30.00,
        "paypalVaultId": "7e8f9a0b-1c2d-3e4f-5g6h-789i0jklm1no",
        "createdAt": "2024-02-15T14:45:00Z",
        "giftCard": {
          // GiftCardFragment details
        },
        "virtualCard": {
          // VirtualCardFragment details
        }
      }
    ]
  }
}

Fields in the UserPurchase Object

Field nameTypeDescription
purchaseIdStringA unique identifier for the purchase.
purchaseDisplayIdStringThe display ID of the purchase.
purchaseBankCardIdStringThe identifier of the bank card used for the purchase.
bankAccountIdStringThe identifier of the bank account associated with the purchase.
purchaseAmountFloatThe total amount spent in the purchase.
fluzpayAmountFloatThe amount of available Fluz balance used in the transaction.
seatRewardValueFloatThe value of any network seat rewards generated from the purchase.
paypalVaultIdStringThe identifier of the PayPal vault used for the purchase.
createdAtDateTimeThe timestamp indicating when the purchase was made.
giftCardGiftCardContains details about any gift card used in the purchase, represented by the GiftCardFragment.
virtualCardVirtualCardContains details about any virtual card used in the purchase, represented by the VirtualCardFragment.