Skip to main content
A gift card’s activity history shows who bought the card, every change to its status and balance, who it was shared with, and the approval behind the purchase. Read it with objectChangeHistory and objectType: GIFT_CARDS.
Prerequisites: a user access token with the VIEW_OBJECT_CHANGE_HISTORY scope, and the giftCardId of a gift card on the account. See Activity history overview for the full query, response fields, and access rules.

Purchase

The gift card records OBJECT_CREATED, with change: {}, when it’s purchased. A card bought through an approval also gets the request’s APPROVAL_REQUESTED and APPROVAL_APPROVED events, dated when they happened. A declined request doesn’t buy a card, so there’s no history to read. New gift cards also record OWNER_ASSIGNED for their first owner, and an ACCESS_GRANTED event with "reason": "owner-floor" for the owner’s SPENDER access. See Ownership and access.

Status changes

Archiving or reactivating a gift card records FIELD_CHANGED with field: "status". The actor is the user who made the change. A card with the older used status can show old as USED when the change is made in the web app, or NOT ACTIVE when it’s made in the mobile app.

Balance changes

Editing a gift card’s remaining balance records FIELD_CHANGED with field: "balance". old and new are numbers in the card’s currency, for example 25 → 12.5. Balance edits are made in the Fluz web and mobile apps. The balance event records an edit by a user. Spending the card at the merchant isn’t recorded.

Expense details

Memos, receipts, and categories belong to a transaction, not to the card. When one changes on a gift card purchase, Fluz records a FIELD_CHANGED event on the gift card. Each event also carries transaction_log_id, transaction_record_id (the transaction’s recordId, when it’s known), and, on category events, old_id and new_id for the side that has a category. These events are recorded for updateTransactionMetadata, the UPDATE_TRANSACTION_METADATA bulk operation (memo and category), bulkUpdateErpTransactionMetadata (QuickBooks category), edits in the Fluz web app, and receipt uploads, receipt removals, and QuickBooks category changes in the Fluz mobile app. A category counts as changed only when its ID changes. A memo, category, or receipt passed to purchaseGiftCard is part of the purchase. It doesn’t record a separate expense details event.

Sharing and access

A gift card’s ownership, access, and invite events follow the shared rules in Ownership and access.

Approvals

An access request that nobody decides in time records APPROVAL_EXPIRED on the gift card. See Approvals for how the trail is linked.

Systems you can see


What isn’t recorded

  • Revealing the gift card code, with revealGiftCardByGiftCardId or in the Fluz app.
  • Redeeming or spending the card at the merchant.
  • A memo or category set at purchase time.
  • Archiving or reactivating a gift card in Fluz Enterprise.

Next steps

Activity history overview

The query, response fields, actors, approvals, and access levels.

View gift cards

List the gift cards on an account and get their IDs.