Retrieve a Redemption
Authorizations
Authentication using Bearer tokens. Include your API key in the Authorization header.
Key Types:
- Test Keys:
sk_test_*for development and testing - Live Keys:
sk_*for production environments - Public Keys:
pk_test_*orpk_*for client-side operations
📩 Need access? Contact Support to request your API keys.
Usage:
Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dcPath Parameters
Redemption id. Prefixed form: rdm_<24 hex ObjectId>. The prefix is part of the identifier. Clients should round trip it verbatim.
^rdm_[a-f0-9]{24}$Response
Redemption
^rdm_[a-f0-9]{24}$"rdm_663a1b9c8e4f2a0012abcd34"
Lifecycle status of the redemption aggregate.
draft, reserved, confirmed, failed Resource version for optimistic concurrency. Starts at 1 on creation and increments on every state change. Use the latest value when reconciling concurrent updates.
x >= 13
Requested amount in cents.
Amount reversed back to the provider in cents.
3"ZAR"
Namespaced redemption type in category.type form. The category selects the value class and the suffix selects the specific provider that will fulfil the redemption.
Only the vouchers category is available today. Loyalty point categories (for example loyalty_points.skywards, loyalty_points.ebucks) are planned.
vouchers.one_voucher, vouchers.ott, vouchers.blu Latest provider side reference bag. Shape depends on the most recent operation.
Amount currently reserved against the provider in cents.
Amount captured by the provider in cents. May differ from amount on partial redeems.
Provider specific source credential object that identifies the voucher being redeemed. The shape is owned by the adapter and selected by the parent type field.
- 1Voucher
- OTT
- Blu
Provider specific configuration bag forwarded on each operation.
Replacement voucher issued by the provider when a partial redemption is performed (redeemed amount less than the original voucher value). Populated by 1Voucher and Blu today. The shape is selected by the redemption type.
Customer must keep pin to spend the remainder. amount, when present, is in cents. Blu does not return an amount for the replacement voucher, so the field is omitted. Caller can issue a stored value lookup against pin for the balance.
- 1Voucher
- Blu
Provider mapped error attached to a failed operation or to a failed redemption aggregate.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. NEW Limitations:
- Maximum 20 keys
- Key names must be strings (max 40 characters)
- Values must be strings (max 500 characters)
{
"customer_id": "cust_123456",
"order_id": "ord_789012"
}
