A card transaction.
| Name | Type | Description |
|---|---|---|
| id | String | Unique card transaction ID assigned by Voucherify. |
| cardId | String | ID of the card the transaction belongs to. Assigned by Voucherify. |
| programId | String | ID of the loyalty program. Assigned by Voucherify. |
| memberId | String | ID of the member owning the card. Assigned by Voucherify. |
| cardDefinitionId | String | ID of the card definition of the card. Assigned by Voucherify. |
| cardType | CardTypeEnum | Card type. |
| type | TypeEnum | Transaction type. Options depend on the endpoint and the transaction variant. |
| details | CardTransactionDetails | |
| status | StatusEnum | Transaction processing status. Transactions are created as `PENDING` and processed asynchronously. |
| createdAt | OffsetDateTime | Timestamp when the transaction was created (ISO 8601). |
| updatedAt | OffsetDateTime | Timestamp when the transaction was last updated (ISO 8601), or `null`. |
| _object | ObjectEnum | Object type marker, always `card_transaction`. |
| Name | Value |
|---|---|
| INDIVIDUAL | "INDIVIDUAL" |
| Name | Value |
|---|---|
| ADMIN_CREDIT | "ADMIN_CREDIT" |
| ADMIN_DEBIT | "ADMIN_DEBIT" |
| ADMIN_POINTS_EXPIRATION | "ADMIN_POINTS_EXPIRATION" |
| POINTS_EARNED | "POINTS_EARNED" |
| POINTS_SPENT_ON_REWARD | "POINTS_SPENT_ON_REWARD" |
| POINTS_PURCHASED | "POINTS_PURCHASED" |
| POINTS_PURCHASE_REVERSED | "POINTS_PURCHASE_REVERSED" |
| POINTS_SPENT_ON_ORDER | "POINTS_SPENT_ON_ORDER" |
| POINTS_REFUNDED | "POINTS_REFUNDED" |
| POINTS_RETURNED | "POINTS_RETURNED" |
| POINTS_EXPIRED | "POINTS_EXPIRED" |
| PENDING_POINTS_ADDED | "PENDING_POINTS_ADDED" |
| PENDING_POINTS_ACTIVATED | "PENDING_POINTS_ACTIVATED" |
| PENDING_POINTS_CANCELED | "PENDING_POINTS_CANCELED" |
| REFERRER_POINTS_EARNED | "REFERRER_POINTS_EARNED" |
| REFEREE_POINTS_EARNED | "REFEREE_POINTS_EARNED" |
| Name | Value |
|---|---|
| PENDING | "PENDING" |
| PROCESSING | "PROCESSING" |
| APPROVED | "APPROVED" |
| REJECTED | "REJECTED" |
| Name | Value |
|---|---|
| CARD_TRANSACTION | "card_transaction" |