idstring | Unique redemption ID.Example:r_0bc92f81a6801f9bca |
objectstring | The type of the object represented by the JSONAvailable values: redemption |
datestring | Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format.Example:2021-12-22T10:13:06.487Z |
customer_idstring, null | Unique customer ID of the redeeming customer.Example:cust_i8t5Tt6eiKG5K79KQlJ0Vs64 |
tracking_idstring, null | Hashed customer source ID. |
metadataobject, null | The metadata object stores all custom attributes assigned to the redemption. |
amountinteger | For gift cards, this is a positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the number of redeemed credits.For loyalty cards, this is the number of loyalty points used in the transaction.Example:10000 |
redemptionstring, null | Unique redemption ID of the parent redemption.Example:r_0c656311b5878a2031 |
resultstring | Redemption result.Available values: SUCCESS, FAILURE |
statusstring | Redemption status.Available values: SUCCEEDED, FAILED, ROLLED_BACK |
sessionobject | Contains details about the redemption session lock. Sessions can be established only for discount vouchers, promotions, and gift cards.Attributes Descriptionkeystring
The session unique ID assigned by Voucherify or your own unique session ID sent in the request. |
related_redemptionsobject | Attributes Descriptionrollbacksarray Array of:
Redemption Related Redemptions Rollbacks Item
Attributes Descriptionidstring
Unique rollback redemption ID.
Example:
rr_0bc92f81a6801f9bca
datestring
Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format.
Example:
2021-12-22T10:13:06.487Z
rollback_order_modestring
Defines the rollback mode for the order. WITH_ORDER is a default setting. The redemption is rolled back together with the data about the order, including related discount values. WITHOUT_ORDER allows rolling the redemption back without affecting order data, including the applied discount values. This is returned only in GET v1/redemptions/ and GET v1/redemptions/{redemptionId} endpoints.
Available values: WITH_ORDER, WITHOUT_ORDER
redemptionsarray Array of:
Redemption Related Redemptions Item
Attributes Descriptionidstring
Unique redemption ID.
Example:
r_0bc92f81a6801f9bca
datestring
Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format.
Example:
2021-12-22T10:13:06.487Z |
failure_codestring | If the result is FAILURE, this parameter will provide a generic reason as to why the redemption failed.Example:customer_rules_violated |
failure_messagestring | If the result is FAILURE, this parameter will provide a more expanded reason as to why the redemption failed. |
| order | All of: 1. Order Calculated No Customer Data |
| 2.Attributes Descriptionitemsarray
Array of items applied to the order. It can include up to 500 items. | |
channelobject | Defines the details of the channel through which the redemption was issued.Attributes Descriptionchannel_idstring
Unique channel ID of the user performing the redemption. This is either a user ID from a user using the Voucherify Dashboard or an X-APP-Id of a user using the API. For AUTO_REDEEM, it is the reward assignment ID.
Example:
user_g24UoRO3Caxu7FCT4n5tpYEa3zUG0FrH
channel_typestring
The source of the channel for the redemption. A USER corresponds to the Voucherify Dashboard, API corresponds to the API, and AUTO_REDEEM corresponds to a loyalty campaign reward that has been redeemed automatically.
Available values: USER, API, AUTO_REDEEM |
| customer | Simple Customer |
related_object_typestring | Defines the related object.Available values: voucher, promotion_tier, redemption |
related_object_idstring | Unique related object ID assigned by Voucherify, i.e. v_lfZi4rcEGe0sN9gmnj40bzwK2FH6QUno for a voucher. |
| promotion_tier | Contains details of the promotion tier and the parent campaign.Promotion Tier |
| reward | See: Redemption Reward Result |
giftobject | Contains the amount subtracted from the gift card for the redemption.Attributes Descriptionamountinteger
Amount subtracted from the gift card as a result of the redemption. The amount is expressed as the smallest currency unit (e.g. 100 cents for $1.00). |
loyalty_cardobject | Contains the number of points subtracted from the loyalty card for the redemption.Attributes Descriptionpointsinteger
Number of points subtracted from the loyalty card as a result of the redemption. |