A reward transaction. Represents a reward purchase or a reward refund.
| Name | Type | Description |
|---|---|---|
| programId | String | Unique identifier of the loyalty program (format `lprg_...`). |
| memberId | String | Unique identifier of the program member (format `lmbr_...`). |
| createdAt | OffsetDateTime | Timestamp when the transaction was created (ISO 8601). |
| updatedAt | OffsetDateTime | Timestamp when the transaction was last updated (ISO 8601), or `null`. |
| cardId | String | Unique identifier of the loyalty card the points were spent from (format `lcrd_...`). |
| id | String | Unique reward transaction identifier (format `lrtx_...`). Absent for `DRY_RUN` (SIMULATED) transactions, which are never persisted. |
| cardDefinitionId | String | Unique identifier of the card definition for that card (format `lcdef_...`). `null` when none is stored. |
| cardTransactionId | String | Identifies of the underlying card transaction (format `lctx_...`). `null` for `DRY_RUN` (SIMULATED) transactions. |
| rewardId | String | Unique identifier of the purchased reward (format `lrew_...`). |
| status | StatusEnum | Transaction status: - `PENDING`: Created and awaiting processing. - `PROCESSING`: Being processed. - `APPROVED`: Completed successfully. - `REJECTED`: Rejected (see `details.rejection`). - `SIMULATED`: Dry-run result that is not persisted. - `REFUNDED`: Purchase has been refunded. |
| type | TypeEnum | Transaction type. |
| details | Object | |
| _object | ObjectEnum | Object type marker. Always `reward_transaction`. |
| Name | Value |
|---|---|
| PENDING | "PENDING" |
| PROCESSING | "PROCESSING" |
| APPROVED | "APPROVED" |
| REJECTED | "REJECTED" |
| SIMULATED | "SIMULATED" |
| REFUNDED | "REFUNDED" |
| Name | Value |
|---|---|
| PURCHASE | "PURCHASE" |
| REFUND | "REFUND" |
| Name | Value |
|---|---|
| REWARD_TRANSACTION | "reward_transaction" |