Vincent is here! Just say the word, and Vincent will build the campaigns for you! Get early access.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/redemptions/{redemptionId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "r_0bade27c428db5873e",
"object": "redemption",
"date": "2022-09-12T07:29:28.211Z",
"customer_id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
"tracking_id": "track_9B0kB92+bJa8a+PegaWREw==",
"metadata": {},
"result": "SUCCESS",
"order": {
"id": "ord_ebmAU9uv3dTE2Khqyh7i5ka7",
"source_id": null,
"created_at": "2022-09-12T07:29:26.245Z",
"updated_at": null,
"status": "PAID",
"amount": 22500,
"discount_amount": 300,
"total_discount_amount": 300,
"total_amount": 22200,
"applied_discount_amount": 300,
"total_applied_discount_amount": 300,
"items": [
{
"object": "order_item",
"product_id": "prod_0b2c36568000039138",
"quantity": 1,
"amount": 22500,
"price": 22500,
"subtotal_amount": 22500,
"product": {
"id": "prod_0b2c36568000039138",
"source_id": "86",
"name": "[Sample] Able Brewing System",
"price": 22500
}
}
],
"metadata": {},
"customer": {
"id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
"object": "customer"
},
"customer_id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
"referrer_id": null,
"object": "order",
"redemptions": {
"r_0bade27c428db5873e": {
"date": "2022-09-12T07:29:26.282Z",
"related_object_type": "voucher",
"related_object_id": "v_c1yOEjZXOyVIe89VAYiRvL3QimZjXo8h"
}
}
},
"channel": {
"channel_id": "user_g24UoRO3Caxu7FCT4n5tpYEa3zUG0FrH",
"channel_type": "USER"
},
"customer": {
"id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
"name": "Bob Jones",
"email": "bob.jones@email.com",
"source_id": "36_bob",
"metadata": {
"accepts_marketing": false
},
"object": "customer"
},
"related_object_type": "voucher",
"related_object_id": "v_c1yOEjZXOyVIe89VAYiRvL3QimZjXo8h",
"voucher": {
"id": "v_c1yOEjZXOyVIe89VAYiRvL3QimZjXo8h",
"code": "FB-metadata-string",
"campaign": null,
"campaign_id": null,
"category": null,
"categories": [],
"discount": null,
"gift": null,
"loyalty_card": null,
"start_date": null,
"expiration_date": null,
"validity_timeframe": null,
"validity_day_of_week": null,
"additional_info": null,
"assets": {
"qr": {},
"barcode": {}
},
"updated_at": null,
"object": "voucher"
}
}Return a redemption or redemption rollback object. This object can either be a successfull or failed redemption or redemption rollback.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/redemptions/{redemptionId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "r_0bade27c428db5873e",
"object": "redemption",
"date": "2022-09-12T07:29:28.211Z",
"customer_id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
"tracking_id": "track_9B0kB92+bJa8a+PegaWREw==",
"metadata": {},
"result": "SUCCESS",
"order": {
"id": "ord_ebmAU9uv3dTE2Khqyh7i5ka7",
"source_id": null,
"created_at": "2022-09-12T07:29:26.245Z",
"updated_at": null,
"status": "PAID",
"amount": 22500,
"discount_amount": 300,
"total_discount_amount": 300,
"total_amount": 22200,
"applied_discount_amount": 300,
"total_applied_discount_amount": 300,
"items": [
{
"object": "order_item",
"product_id": "prod_0b2c36568000039138",
"quantity": 1,
"amount": 22500,
"price": 22500,
"subtotal_amount": 22500,
"product": {
"id": "prod_0b2c36568000039138",
"source_id": "86",
"name": "[Sample] Able Brewing System",
"price": 22500
}
}
],
"metadata": {},
"customer": {
"id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
"object": "customer"
},
"customer_id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
"referrer_id": null,
"object": "order",
"redemptions": {
"r_0bade27c428db5873e": {
"date": "2022-09-12T07:29:26.282Z",
"related_object_type": "voucher",
"related_object_id": "v_c1yOEjZXOyVIe89VAYiRvL3QimZjXo8h"
}
}
},
"channel": {
"channel_id": "user_g24UoRO3Caxu7FCT4n5tpYEa3zUG0FrH",
"channel_type": "USER"
},
"customer": {
"id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
"name": "Bob Jones",
"email": "bob.jones@email.com",
"source_id": "36_bob",
"metadata": {
"accepts_marketing": false
},
"object": "customer"
},
"related_object_type": "voucher",
"related_object_id": "v_c1yOEjZXOyVIe89VAYiRvL3QimZjXo8h",
"voucher": {
"id": "v_c1yOEjZXOyVIe89VAYiRvL3QimZjXo8h",
"code": "FB-metadata-string",
"campaign": null,
"campaign_id": null,
"category": null,
"categories": [],
"discount": null,
"gift": null,
"loyalty_card": null,
"start_date": null,
"expiration_date": null,
"validity_timeframe": null,
"validity_day_of_week": null,
"additional_info": null,
"assets": {
"qr": {},
"barcode": {}
},
"updated_at": null,
"object": "voucher"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
Use this file to discover all available pages before exploring further.
ID of previously created redemption.
Returns a redemption object.
This is an object representing a redemption.
Unique redemption ID.
"r_0bc92f81a6801f9bca"
The type of the object represented by the JSON
redemption Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format.
"2021-12-22T10:13:06.487Z"
Unique customer ID of the redeeming customer.
"cust_i8t5Tt6eiKG5K79KQlJ0Vs64"
Hashed customer source ID.
The metadata object stores all custom attributes assigned to the redemption.
Unique redemption ID of the parent redemption.
"r_0c656311b5878a2031"
Redemption result.
SUCCESS, FAILURE Redemption status.
SUCCEEDED, FAILED, ROLLED_BACK Order information.
Show child attributes
Defines the details of the channel through which the redemption was issued.
Show child attributes
Simplified customer data.
Show child attributes
Defines the related object.
voucher, promotion_tier, redemption Unique related object ID assigned by Voucherify, i.e. v_lfZi4rcEGe0sN9gmnj40bzwK2FH6QUno for a voucher.
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.
10000
Contains details about the redemption session lock. Sessions can be established only for discount vouchers, promotions, and gift cards.
Show child attributes
Show child attributes
If the result is FAILURE, this parameter will provide a generic reason as to why the redemption failed.
"customer_rules_violated"
If the result is FAILURE, this parameter will provide a more expanded reason as to why the redemption failed.
Contains details of the promotion tier and the parent campaign.
Show child attributes
Show child attributes
Contains the amount subtracted from the gift card for the redemption.
Show child attributes
Contains the number of points subtracted from the loyalty card for the redemption.
Show child attributes
Defines the details of the voucher being redeemed.
Show child attributes
Was this page helpful?