Payment
Overview
The payment object defines how a member pays using loyalty assets such as points or credit. It is used within /payment and /transaction calls to either apply a payment or cancel a previous one.
When to Use This Object
Include a payment object when:
- A member is redeeming loyalty points or credit during a transaction
- You are canceling a previously confirmed loyalty payment
- A payment breakdown is required in a submitted transaction payload
Field Reference
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | "pay" or "cancel" — defines if this is a new payment or a cancellation |
amount | number | Yes | Amount to be processed (positive for pay, negative for cancel) |
confirmationCode | string | Conditional | Required only for cancel — must match a previously issued payment |
Example: Payment Request
{
"payment": {
"action": "pay",
"amount": 1000
}
}
Example: Payment Cancellation
{
"payment": {
"action": "cancel",
"confirmationCode": "ABC123XYZ",
"amount": -1000
}
}
Notes
- For
"pay"actions, theamountmust be positive - For
"cancel"actions, theamountmust be negative and a validconfirmationCodemust be provided - This object is required in
/paymentendpoint calls and may be embedded in/transactioncalls for reporting purposes
Related Use Cases
- Member pays partially with points and the rest with card
- Member cancels a previous payment, and their balance is refunded
- Detailed loyalty payment tracking for reporting or audit purposes