award.reversed
When it is sent. An award was taken back, in full or in part: a refund through the API, or a cashier undoing a sale at the counter.
What to do with it. Update the balance you show. When the card no longer held enough to take everything back, refund.unresolved follows with the shortfall.
It arrives as a signed POST to each of your endpoints that chose it, and is also in the event feed. See how events work, including how to check the signature.
The event
Section titled “The event”| Field | Type | Required | What it is |
|---|---|---|---|
id |
string (uuid) | yes | The event id, sent as webhook-id. |
type |
"award.reversed" |
yes | |
timestamp |
string (date-time) | yes | When it happened. |
data |
object | yes | |
data.card |
object (CardIds) | yes | The card’s id and, where shown, its printed card ID. |
data.card.id |
string (uuid) | yes | |
data.card.card_id |
string or null | yes | The printed card ID, only when the call named the card by serial or card_id, the call made the card (a created sign-up), or this connection’s external_id was linked with the card. Null when the card was found by phone, email or an unproven link. |
data.customer |
object (CustomerIds) | yes | This connection’s external_id, if it set one. |
data.customer.id |
string (uuid) | yes | |
data.customer.external_id |
string or null | yes | |
data.program |
object (ProgramIds) | yes | |
data.program.id |
string (uuid) | yes | |
data.program.type |
stamps, points, coupon, prepaid, membership, tiers |
yes | tiers is the VIP card; prepaid the prepaid card. |
data.reversal |
object | yes | |
data.reversal.id |
string (uuid) | yes | |
data.award |
object | yes | |
data.award.id |
string (uuid) | yes | |
data.award.reference |
string or null | yes | This connection’s reference, when it wrote the row; otherwise null. |
data.kind |
full, partial |
yes | |
data.reversed |
object (Value) | yes | An amount in the card’s own units. Only the keys its type counts in are present; a check-in is {}. |
data.reversed.stamps |
integer | ||
data.reversed.rewards |
integer | Stamp-card rewards. | |
data.reversed.points |
integer | ||
data.reversed.rupees |
number | A prepaid card’s own rupees. | |
data.reversed.bonus_rupees |
number | A prepaid top-up’s bonus, on top of rupees. |
|
data.reversed.value_rupees |
number | What points spent on a cash-back points card are worth off the bill, for the caller’s discount line. | |
data.reversed.sessions |
integer | ||
data.reversed.deals |
integer | Coupon deals. | |
data.reversed.qualifying |
integer | Towards a VIP card’s tier, in the card’s measure: visits, or whole rupees of spend. | |
data.reversed.paid_through |
string (date) | A membership renewed to this day. | |
data.shortfall |
object (Value) or null | yes | |
data.shortfall.stamps |
integer | ||
data.shortfall.rewards |
integer | Stamp-card rewards. | |
data.shortfall.points |
integer | ||
data.shortfall.rupees |
number | A prepaid card’s own rupees. | |
data.shortfall.bonus_rupees |
number | A prepaid top-up’s bonus, on top of rupees. |
|
data.shortfall.value_rupees |
number | What points spent on a cash-back points card are worth off the bill, for the caller’s discount line. | |
data.shortfall.sessions |
integer | ||
data.shortfall.deals |
integer | Coupon deals. | |
data.shortfall.qualifying |
integer | Towards a VIP card’s tier, in the card’s measure: visits, or whole rupees of spend. | |
data.shortfall.paid_through |
string (date) | A membership renewed to this day. | |
data.balance |
object | yes | The card’s standing after the call, by its type. |