A benefit transaction. Represents a benefit fulfillment.
| 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`. |
| id | String | Unique benefit transaction identifier (format `lbtx_...`). |
| benefitId | String | Unique identifier of the fulfilled benefit (format `lben_...`). |
| earningRuleId | String | Unique identifier of the earning rule that triggered the fulfillment (format `lern_...`). |
| type | TypeEnum | Transaction type. Always `FULFILLMENT`. |
| details | BenefitTransactionDetails | |
| status | StatusEnum | Transaction status. `PENDING` - created, awaiting processing; `APPROVED` - completed successfully; `REJECTED` - rejected (see `details.rejection`). |
| _object | ObjectEnum | Object type marker. Always `benefit_transaction`. |
| Name | Value |
|---|---|
| FULFILLMENT | "FULFILLMENT" |
| Name | Value |
|---|---|
| PENDING | "PENDING" |
| APPROVED | "APPROVED" |
| REJECTED | "REJECTED" |
| Name | Value |
|---|---|
| BENEFIT_TRANSACTION | "benefit_transaction" |