curl --request POST \
--url https://{cluster}.voucherify.io/v1/promotions/validation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"customer": {
"source_id": "source-id",
"metadata": {
"key": "value"
}
},
"options": {
"expand": [
"category"
]
},
"order": {
"amount": 10000,
"items": [
{
"product_id": "product-id",
"quantity": "1",
"price": 10000,
"related_object": "product",
"product": {
"metadata": {
"key": "value"
}
}
}
]
},
"metadata": {
"key": "value"
}
}
'{
"valid": true,
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"promotions": [
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 9351000,
"initial_amount": 72100,
"items_discount_amount": 9340400,
"total_discount_amount": 9340400,
"total_amount": 10600,
"items_applied_discount_amount": 9340400,
"total_applied_discount_amount": 9340400,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 23,
"discount_quantity": 22,
"initial_quantity": 1,
"amount": 39100,
"discount_amount": 37400,
"initial_amount": 1700,
"applied_discount_amount": 37400,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 222,
"discount_quantity": 222,
"initial_quantity": 1,
"amount": 333000,
"discount_amount": 333000,
"initial_amount": 1500,
"applied_discount_amount": 333000,
"price": 1500,
"subtotal_amount": 0,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 111,
"discount_quantity": 111,
"initial_quantity": 1,
"amount": 6660000,
"discount_amount": 6660000,
"initial_amount": 60000,
"applied_discount_amount": 6660000,
"price": 60000,
"subtotal_amount": 0,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
},
{
"object": "order_item",
"product_id": "prod_0bae2dc5a090fd0184",
"sku_id": "sku_0bae3b28f610fd0da1",
"quantity": 11,
"discount_quantity": 11,
"initial_quantity": 0,
"amount": 2310000,
"discount_amount": 2310000,
"initial_amount": 0,
"applied_discount_amount": 2310000,
"price": 210000,
"subtotal_amount": 0,
"product": {
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone 1",
"price": 220000
},
"sku": {
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"sku": "Samsung phone 256GB",
"price": 210000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_ByIIAHC1Mz9ouJsitzAWsush",
"name": "Multiple",
"discount": {
"type": "UNIT",
"effect": "ADD_MANY_ITEMS",
"units": [
{
"effect": "ADD_MISSING_ITEMS",
"unit_off": 11,
"unit_type": "sku_0bae3b28f610fd0da1",
"sku": {
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"sku": "Samsung phone 256GB"
},
"product": {
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone 1"
}
},
{
"effect": "ADD_NEW_ITEMS",
"unit_off": 22,
"unit_type": "sku_0b7d7dfb090be5c619",
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1"
},
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1"
}
},
{
"effect": "ADD_MISSING_ITEMS",
"unit_off": 111,
"unit_type": "prod_0b7d7c4e814be5c502",
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12"
}
},
{
"effect": "ADD_MISSING_ITEMS",
"unit_off": 222,
"unit_type": "prod_0b72b0bd64d198e3ae",
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage"
}
}
]
},
"campaign": {
"id": "camp_JtoaZ8Qgpf6FkMAy2wWiOJWH",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 1,
"discount_amount": 9340400,
"applied_discount_amount": 9340400,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 9522100,
"initial_amount": 72100,
"items_discount_amount": 9450000,
"total_discount_amount": 9450000,
"total_amount": 72100,
"items_applied_discount_amount": 9450000,
"total_applied_discount_amount": 9450000,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"price": 1500,
"subtotal_amount": 1500,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
},
{
"object": "order_item",
"product_id": "prod_0bae2dc5a090fd0184",
"sku_id": "sku_0bae3b28f610fd0da1",
"quantity": 45,
"discount_quantity": 45,
"initial_quantity": 0,
"amount": 9450000,
"discount_amount": 9450000,
"initial_amount": 0,
"applied_discount_amount": 9450000,
"price": 210000,
"subtotal_amount": 0,
"product": {
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone 1",
"price": 220000
},
"sku": {
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"sku": "Samsung phone 256GB",
"price": 210000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_ZWkx6R0I1Ts3N9HL4kfTdxOm",
"name": "Add new SKU",
"discount": {
"type": "UNIT",
"effect": "ADD_NEW_ITEMS",
"unit_off": 45,
"unit_type": "sku_0bae3b28f610fd0da1",
"sku": {
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"sku": "Samsung phone 256GB"
},
"product": {
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone 1"
}
},
"campaign": {
"id": "camp_40LC42P5NFbkkD4RWoJ4btks",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 4,
"discount_amount": 9450000,
"applied_discount_amount": 9450000,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 109500,
"initial_amount": 72100,
"items_discount_amount": 39100,
"total_discount_amount": 39100,
"total_amount": 70400,
"items_applied_discount_amount": 39100,
"total_applied_discount_amount": 39100,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 23,
"discount_quantity": 23,
"initial_quantity": 1,
"amount": 39100,
"discount_amount": 39100,
"initial_amount": 1700,
"applied_discount_amount": 39100,
"price": 1700,
"subtotal_amount": 0,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"price": 1500,
"subtotal_amount": 1500,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_NcdD0zLo6FUhKWpNrNuP3Pte",
"name": "Add missing SKU",
"discount": {
"type": "UNIT",
"effect": "ADD_MISSING_ITEMS",
"unit_off": 23,
"unit_type": "sku_0b7d7dfb090be5c619",
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1"
},
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1"
}
},
"campaign": {
"id": "camp_40LC42P5NFbkkD4RWoJ4btks",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 3,
"discount_amount": 39100,
"applied_discount_amount": 39100,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 76100,
"initial_amount": 72100,
"items_discount_amount": 4000,
"total_discount_amount": 4000,
"total_amount": 72100,
"items_applied_discount_amount": 4000,
"total_applied_discount_amount": 4000,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"price": 1500,
"subtotal_amount": 1500,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
},
{
"object": "order_item",
"product_id": "prod_0b72b00ffed198e344",
"quantity": 8,
"discount_quantity": 8,
"initial_quantity": 0,
"amount": 4000,
"discount_amount": 4000,
"initial_amount": 0,
"applied_discount_amount": 4000,
"price": 500,
"subtotal_amount": 0,
"product": {
"id": "prod_0b72b00ffed198e344",
"source_id": "roses_1",
"name": "Bouquet - Romantic Roses",
"price": 500
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_nGr1SWuy9vduABkbbJkl8cHb",
"name": "Add new order items",
"banner": "Add Romantic Roses",
"discount": {
"type": "UNIT",
"effect": "ADD_NEW_ITEMS",
"unit_off": 8,
"unit_type": "prod_0b72b00ffed198e344",
"product": {
"id": "prod_0b72b00ffed198e344",
"source_id": "roses_1",
"name": "Bouquet - Romantic Roses"
}
},
"campaign": {
"id": "camp_40LC42P5NFbkkD4RWoJ4btks",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 2,
"discount_amount": 4000,
"applied_discount_amount": 4000,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 78100,
"initial_amount": 72100,
"items_discount_amount": 7500,
"total_discount_amount": 7500,
"total_amount": 70600,
"items_applied_discount_amount": 7500,
"total_applied_discount_amount": 7500,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 5,
"discount_quantity": 5,
"initial_quantity": 1,
"amount": 7500,
"discount_amount": 7500,
"initial_amount": 1500,
"applied_discount_amount": 7500,
"price": 1500,
"subtotal_amount": 0,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_R50x0A66V6jmPhM7YYOcFZfL",
"name": "Add missing order items",
"banner": "Add Boho Vintage",
"discount": {
"type": "UNIT",
"effect": "ADD_MISSING_ITEMS",
"unit_off": 5,
"unit_type": "prod_0b72b0bd64d198e3ae",
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage"
}
},
"campaign": {
"id": "camp_40LC42P5NFbkkD4RWoJ4btks",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 1,
"discount_amount": 7500,
"applied_discount_amount": 7500,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 72100,
"total_amount": 72100,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"price": 1500,
"subtotal_amount": 1500,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
},
{
"object": "order_item",
"product_id": "prod_5h1pp1ng",
"quantity": 1,
"discount_quantity": 1,
"initial_quantity": 0,
"product": {
"id": "prod_5h1pp1ng",
"source_id": "5h1pp1ng",
"name": "Shipping"
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_jp2l6wRcTL4cARG5E8XRo42A",
"name": "Get",
"banner": "Free shipping",
"discount": {
"type": "UNIT",
"effect": "ADD_MISSING_ITEMS",
"unit_off": 1,
"unit_type": "prod_5h1pp1ng",
"product": {
"id": "prod_5h1pp1ng",
"source_id": "5h1pp1ng",
"name": "Shipping"
}
},
"campaign": {
"id": "camp_wCEdu2igBcyv7CNna9ughGKc",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 1,
"metadata": {
"has_budget": true,
"audience_restricted": false
},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [
{
"object": "products_collection",
"id": "pc_a11pr0dUc75",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "product",
"id": "prod_0a9f9ab4ab019a42d5",
"source_id": "prod_0a9f9ab4ab019a42d5",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "product",
"id": "prod_0a9f9aeddb019a42db",
"source_id": "prod_0a9f9aeddb019a42db",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "sku",
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"product_id": "prod_0b7d7dfb05cbe5c616",
"product_source_id": "Books",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "product",
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "product",
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"price": 800,
"effect": "APPLY_TO_EVERY"
}
],
"total": 6,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 72100,
"items_discount_amount": 67300,
"total_discount_amount": 67300,
"total_amount": 4800,
"items_applied_discount_amount": 67300,
"total_applied_discount_amount": 67300,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"discount_amount": 2100,
"applied_discount_amount": 2100,
"price": 2900,
"subtotal_amount": 800,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"discount_amount": 2300,
"applied_discount_amount": 2300,
"price": 3100,
"subtotal_amount": 800,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"discount_amount": 2100,
"applied_discount_amount": 2100,
"price": 2900,
"subtotal_amount": 800,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"discount_amount": 900,
"applied_discount_amount": 900,
"price": 1700,
"subtotal_amount": 800,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"discount_amount": 700,
"applied_discount_amount": 700,
"price": 1500,
"subtotal_amount": 800,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"discount_amount": 59200,
"applied_discount_amount": 59200,
"price": 60000,
"subtotal_amount": 800,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_WEloFBBJ8JJDCxrtR1FPy6t1",
"name": "Get Amount Off",
"banner": "Every product is worth 8",
"discount": {
"type": "FIXED",
"effect": "APPLY_TO_ITEMS"
},
"campaign": {
"id": "camp_Ds2u0MSFGuKhDuR3jEa5dHBx",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 2,
"discount_amount": 67300,
"applied_discount_amount": 67300,
"metadata": {
"has_budget": true,
"audience_restricted": false
},
"object": "promotion_tier"
}
]
}❗️ Deprecated
This endpoint represents the deprecated version of the API responsible for qualification, and we do not recommend using it. The new Qualifications API introduces additional features and improvements while maintaining backward compatibility. Developers are encouraged to migrate to the latest version to take advantage of the latest enhancements and bug fixes. No updates will be provided to the deprecated endpoint.
❗️ Limitation
Only the first 150 most recent promotion tiers are checked for eligibility. Older promotion tiers are ignored and not returned.
Use this method to get valid promotions for a given customer and order.
You can narrow down a validation to a specific promotion ID or tier metadata.
curl --request POST \
--url https://{cluster}.voucherify.io/v1/promotions/validation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"customer": {
"source_id": "source-id",
"metadata": {
"key": "value"
}
},
"options": {
"expand": [
"category"
]
},
"order": {
"amount": 10000,
"items": [
{
"product_id": "product-id",
"quantity": "1",
"price": 10000,
"related_object": "product",
"product": {
"metadata": {
"key": "value"
}
}
}
]
},
"metadata": {
"key": "value"
}
}
'{
"valid": true,
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"promotions": [
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 9351000,
"initial_amount": 72100,
"items_discount_amount": 9340400,
"total_discount_amount": 9340400,
"total_amount": 10600,
"items_applied_discount_amount": 9340400,
"total_applied_discount_amount": 9340400,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 23,
"discount_quantity": 22,
"initial_quantity": 1,
"amount": 39100,
"discount_amount": 37400,
"initial_amount": 1700,
"applied_discount_amount": 37400,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 222,
"discount_quantity": 222,
"initial_quantity": 1,
"amount": 333000,
"discount_amount": 333000,
"initial_amount": 1500,
"applied_discount_amount": 333000,
"price": 1500,
"subtotal_amount": 0,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 111,
"discount_quantity": 111,
"initial_quantity": 1,
"amount": 6660000,
"discount_amount": 6660000,
"initial_amount": 60000,
"applied_discount_amount": 6660000,
"price": 60000,
"subtotal_amount": 0,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
},
{
"object": "order_item",
"product_id": "prod_0bae2dc5a090fd0184",
"sku_id": "sku_0bae3b28f610fd0da1",
"quantity": 11,
"discount_quantity": 11,
"initial_quantity": 0,
"amount": 2310000,
"discount_amount": 2310000,
"initial_amount": 0,
"applied_discount_amount": 2310000,
"price": 210000,
"subtotal_amount": 0,
"product": {
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone 1",
"price": 220000
},
"sku": {
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"sku": "Samsung phone 256GB",
"price": 210000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_ByIIAHC1Mz9ouJsitzAWsush",
"name": "Multiple",
"discount": {
"type": "UNIT",
"effect": "ADD_MANY_ITEMS",
"units": [
{
"effect": "ADD_MISSING_ITEMS",
"unit_off": 11,
"unit_type": "sku_0bae3b28f610fd0da1",
"sku": {
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"sku": "Samsung phone 256GB"
},
"product": {
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone 1"
}
},
{
"effect": "ADD_NEW_ITEMS",
"unit_off": 22,
"unit_type": "sku_0b7d7dfb090be5c619",
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1"
},
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1"
}
},
{
"effect": "ADD_MISSING_ITEMS",
"unit_off": 111,
"unit_type": "prod_0b7d7c4e814be5c502",
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12"
}
},
{
"effect": "ADD_MISSING_ITEMS",
"unit_off": 222,
"unit_type": "prod_0b72b0bd64d198e3ae",
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage"
}
}
]
},
"campaign": {
"id": "camp_JtoaZ8Qgpf6FkMAy2wWiOJWH",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 1,
"discount_amount": 9340400,
"applied_discount_amount": 9340400,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 9522100,
"initial_amount": 72100,
"items_discount_amount": 9450000,
"total_discount_amount": 9450000,
"total_amount": 72100,
"items_applied_discount_amount": 9450000,
"total_applied_discount_amount": 9450000,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"price": 1500,
"subtotal_amount": 1500,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
},
{
"object": "order_item",
"product_id": "prod_0bae2dc5a090fd0184",
"sku_id": "sku_0bae3b28f610fd0da1",
"quantity": 45,
"discount_quantity": 45,
"initial_quantity": 0,
"amount": 9450000,
"discount_amount": 9450000,
"initial_amount": 0,
"applied_discount_amount": 9450000,
"price": 210000,
"subtotal_amount": 0,
"product": {
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone 1",
"price": 220000
},
"sku": {
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"sku": "Samsung phone 256GB",
"price": 210000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_ZWkx6R0I1Ts3N9HL4kfTdxOm",
"name": "Add new SKU",
"discount": {
"type": "UNIT",
"effect": "ADD_NEW_ITEMS",
"unit_off": 45,
"unit_type": "sku_0bae3b28f610fd0da1",
"sku": {
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"sku": "Samsung phone 256GB"
},
"product": {
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone 1"
}
},
"campaign": {
"id": "camp_40LC42P5NFbkkD4RWoJ4btks",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 4,
"discount_amount": 9450000,
"applied_discount_amount": 9450000,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 109500,
"initial_amount": 72100,
"items_discount_amount": 39100,
"total_discount_amount": 39100,
"total_amount": 70400,
"items_applied_discount_amount": 39100,
"total_applied_discount_amount": 39100,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 23,
"discount_quantity": 23,
"initial_quantity": 1,
"amount": 39100,
"discount_amount": 39100,
"initial_amount": 1700,
"applied_discount_amount": 39100,
"price": 1700,
"subtotal_amount": 0,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"price": 1500,
"subtotal_amount": 1500,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_NcdD0zLo6FUhKWpNrNuP3Pte",
"name": "Add missing SKU",
"discount": {
"type": "UNIT",
"effect": "ADD_MISSING_ITEMS",
"unit_off": 23,
"unit_type": "sku_0b7d7dfb090be5c619",
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1"
},
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1"
}
},
"campaign": {
"id": "camp_40LC42P5NFbkkD4RWoJ4btks",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 3,
"discount_amount": 39100,
"applied_discount_amount": 39100,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 76100,
"initial_amount": 72100,
"items_discount_amount": 4000,
"total_discount_amount": 4000,
"total_amount": 72100,
"items_applied_discount_amount": 4000,
"total_applied_discount_amount": 4000,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"price": 1500,
"subtotal_amount": 1500,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
},
{
"object": "order_item",
"product_id": "prod_0b72b00ffed198e344",
"quantity": 8,
"discount_quantity": 8,
"initial_quantity": 0,
"amount": 4000,
"discount_amount": 4000,
"initial_amount": 0,
"applied_discount_amount": 4000,
"price": 500,
"subtotal_amount": 0,
"product": {
"id": "prod_0b72b00ffed198e344",
"source_id": "roses_1",
"name": "Bouquet - Romantic Roses",
"price": 500
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_nGr1SWuy9vduABkbbJkl8cHb",
"name": "Add new order items",
"banner": "Add Romantic Roses",
"discount": {
"type": "UNIT",
"effect": "ADD_NEW_ITEMS",
"unit_off": 8,
"unit_type": "prod_0b72b00ffed198e344",
"product": {
"id": "prod_0b72b00ffed198e344",
"source_id": "roses_1",
"name": "Bouquet - Romantic Roses"
}
},
"campaign": {
"id": "camp_40LC42P5NFbkkD4RWoJ4btks",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 2,
"discount_amount": 4000,
"applied_discount_amount": 4000,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 78100,
"initial_amount": 72100,
"items_discount_amount": 7500,
"total_discount_amount": 7500,
"total_amount": 70600,
"items_applied_discount_amount": 7500,
"total_applied_discount_amount": 7500,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 5,
"discount_quantity": 5,
"initial_quantity": 1,
"amount": 7500,
"discount_amount": 7500,
"initial_amount": 1500,
"applied_discount_amount": 7500,
"price": 1500,
"subtotal_amount": 0,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_R50x0A66V6jmPhM7YYOcFZfL",
"name": "Add missing order items",
"banner": "Add Boho Vintage",
"discount": {
"type": "UNIT",
"effect": "ADD_MISSING_ITEMS",
"unit_off": 5,
"unit_type": "prod_0b72b0bd64d198e3ae",
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage"
}
},
"campaign": {
"id": "camp_40LC42P5NFbkkD4RWoJ4btks",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 1,
"discount_amount": 7500,
"applied_discount_amount": 7500,
"metadata": {},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 72100,
"total_amount": 72100,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"price": 3100,
"subtotal_amount": 3100,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"price": 2900,
"subtotal_amount": 2900,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"price": 1700,
"subtotal_amount": 1700,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"price": 1500,
"subtotal_amount": 1500,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"price": 60000,
"subtotal_amount": 60000,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
},
{
"object": "order_item",
"product_id": "prod_5h1pp1ng",
"quantity": 1,
"discount_quantity": 1,
"initial_quantity": 0,
"product": {
"id": "prod_5h1pp1ng",
"source_id": "5h1pp1ng",
"name": "Shipping"
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_jp2l6wRcTL4cARG5E8XRo42A",
"name": "Get",
"banner": "Free shipping",
"discount": {
"type": "UNIT",
"effect": "ADD_MISSING_ITEMS",
"unit_off": 1,
"unit_type": "prod_5h1pp1ng",
"product": {
"id": "prod_5h1pp1ng",
"source_id": "5h1pp1ng",
"name": "Shipping"
}
},
"campaign": {
"id": "camp_wCEdu2igBcyv7CNna9ughGKc",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 1,
"metadata": {
"has_budget": true,
"audience_restricted": false
},
"object": "promotion_tier"
},
{
"valid": true,
"applicable_to": {
"data": [
{
"object": "products_collection",
"id": "pc_a11pr0dUc75",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "product",
"id": "prod_0a9f9ab4ab019a42d5",
"source_id": "prod_0a9f9ab4ab019a42d5",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "product",
"id": "prod_0a9f9aeddb019a42db",
"source_id": "prod_0a9f9aeddb019a42db",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "sku",
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"product_id": "prod_0b7d7dfb05cbe5c616",
"product_source_id": "Books",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "product",
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"price": 800,
"effect": "APPLY_TO_EVERY"
},
{
"object": "product",
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"price": 800,
"effect": "APPLY_TO_EVERY"
}
],
"total": 6,
"data_ref": "data",
"object": "list"
},
"inapplicable_to": {
"data": [],
"total": 0,
"data_ref": "data",
"object": "list"
},
"tracking_id": "track_OWyBVb1mg1oMY1lADmgwuXCw/qYHp5h0",
"order": {
"amount": 72100,
"items_discount_amount": 67300,
"total_discount_amount": 67300,
"total_amount": 4800,
"items_applied_discount_amount": 67300,
"total_applied_discount_amount": 67300,
"items": [
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"discount_amount": 2100,
"applied_discount_amount": 2100,
"price": 2900,
"subtotal_amount": 800,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9aeddb019a42db",
"quantity": 1,
"amount": 3100,
"discount_amount": 2300,
"applied_discount_amount": 2300,
"price": 3100,
"subtotal_amount": 800,
"product": {
"id": "prod_0a9f9aeddb019a42db",
"name": "Blue T-Shirt",
"price": 3100
}
},
{
"object": "order_item",
"product_id": "prod_0a9f9ab4ab019a42d5",
"quantity": 1,
"amount": 2900,
"discount_amount": 2100,
"applied_discount_amount": 2100,
"price": 2900,
"subtotal_amount": 800,
"product": {
"id": "prod_0a9f9ab4ab019a42d5",
"name": "Red T-Shirt",
"price": 2900
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7dfb05cbe5c616",
"sku_id": "sku_0b7d7dfb090be5c619",
"quantity": 1,
"amount": 1700,
"discount_amount": 900,
"applied_discount_amount": 900,
"price": 1700,
"subtotal_amount": 800,
"product": {
"id": "prod_0b7d7dfb05cbe5c616",
"source_id": "Books",
"name": "Comic Books1",
"price": 2100
},
"sku": {
"id": "sku_0b7d7dfb090be5c619",
"source_id": "ComicBook_1",
"sku": "Comics1",
"price": 1700
}
},
{
"object": "order_item",
"product_id": "prod_0b72b0bd64d198e3ae",
"quantity": 1,
"amount": 1500,
"discount_amount": 700,
"applied_discount_amount": 700,
"price": 1500,
"subtotal_amount": 800,
"product": {
"id": "prod_0b72b0bd64d198e3ae",
"source_id": "vase_1",
"name": "Vase - Boho Vintage",
"price": 1500
}
},
{
"object": "order_item",
"product_id": "prod_0b7d7c4e814be5c502",
"quantity": 1,
"amount": 60000,
"discount_amount": 59200,
"applied_discount_amount": 59200,
"price": 60000,
"subtotal_amount": 800,
"product": {
"id": "prod_0b7d7c4e814be5c502",
"source_id": "prod_1",
"name": "Apple iPhone 12",
"price": 60000
}
}
],
"metadata": {
"payment_mean": [
"credit-card"
]
},
"customer_id": null,
"referrer_id": null,
"object": "order"
},
"id": "promo_WEloFBBJ8JJDCxrtR1FPy6t1",
"name": "Get Amount Off",
"banner": "Every product is worth 8",
"discount": {
"type": "FIXED",
"effect": "APPLY_TO_ITEMS"
},
"campaign": {
"id": "camp_Ds2u0MSFGuKhDuR3jEa5dHBx",
"start_date": null,
"expiration_date": null,
"active": true,
"object": "campaign"
},
"hierarchy": 2,
"discount_amount": 67300,
"applied_discount_amount": 67300,
"metadata": {
"has_budget": true,
"audience_restricted": false
},
"object": "promotion_tier"
}
]
}The access token received from the authorization server in the OAuth 2.0 flow.
If you add a query param AudienceRulesOnly=true, the request will be validated against customer-related rules only, the rest of attached limits and rules will be ignored.
Filter conditions. Promotion filter conditions.
Show child attributes
Allows you to create a filter based on the conditions set for promotion metadata values. The metadata object stores all custom attributes assigned to the promotion tier. A set of key/value pairs that are attached to a promotion tier object. Stores additional information about the promotion tier in a structured format.
Allows you to create a filter based on the unique promotion ID.
Provide the customer and order context.
Request schema model for validating a promotion using POST v1/promotions/validation.
A set of key/value pairs that you can send in the request body to check against vouchers requiring redemption metadata validation rules to be satisfied. The validation runs against rules that are defined through the Create Validation Rules endpoint or via the Dashboard; in the Advanced Rule Builder → Advanced → Redemption metadata satisfy or Basic Builder → Attributes match → REDEMPTION METADATA. Read more.
Configure parameters returned in the response.
Show child attributes
The expand array lets you configure the parameters included in the response. Depending on the strings included in the array, the response will contain different details. Add category as a string in the array to include a categories object in the response.
category Returns a list of valid promotions for a given context (customer and order). You can then choose which promotion to apply, i.e. the highest discount amount.
Response schema model for validating a promotion using POST v1/promotions/validation.
Indicates whether the promotion is valid within the context of the parameters provided in the request body and filters in the query parameters.
Hashed customer source ID.
Contains an array of promotion tier objects.
Show child attributes
Indicates whether the promotion is valid within the context of the parameters provided in the request body and filters in the query parameters.
Contains list of items that qualify in the scope of the discount. These are definitions of included products, SKUs, and product collections. These can be discounted.
Show child attributes
Contains array of items to which the discount can apply.
Contains definition for a product collection.
Show child attributes
This object stores information about the product collection.
Unique product collection ID assigned by Voucherify.
"pc_4ndRXAsTOzwSdHcQcxf489uU"
Defines how the discount is applied to the customer's order.
APPLY_TO_EVERY, APPLY_TO_CHEAPEST, APPLY_TO_MOST_EXPENSIVE Total number of objects defining included products, SKUs, or product collections.
Identifies the name of the attribute that contains the array of included objects.
The type of the object represented by JSON. This object stores information about included products, SKUs, or product collections in a dictionary.
Contains list of items that do not qualify in the scope of the discount. These are definitions of excluded products, SKUs, and product collections. These CANNOT be discounted.
Show child attributes
Contains array of items to which the discount cannot apply.
Contains definition for a product collection.
Show child attributes
This object stores information about the product collection.
Unique product collection ID assigned by Voucherify.
"pc_4ndRXAsTOzwSdHcQcxf489uU"
Defines how the discount is applied to the customer's order.
APPLY_TO_EVERY Total number of objects defining excluded products, SKUs, or product collections.
Identifies the name of the attribute that contains the array of excluded objects.
The type of the object represented by JSON. This object stores information about excluded products, SKUs, or product collections in a dictionary.
Hashed customer source ID.
This is an object representing an order with calculated discounts applied using the voucher code.
Show child attributes
Unique order ID, assigned by Voucherify. This parameter is returned only if you use the order ID parameter of an already created and synced order in the Voucherify application, i.e by sending the order.id parameter in the request body.
"ord_OLWs41pBk7VFn6ZTyX9U6keh"
The merchant's order ID if it is different from the Voucherify order ID. It is really useful in case of integration between multiple systems. It can be an order ID from CRM, database or 3rd party service. This parameter is returned only if you use the order ID parameter of an already created and synced order in the Voucherify application, i.e by sending the order.id parameter in the request body.
Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format. This parameter is returned only if you use the order ID parameter of an already created and synced order in the Voucherify application, i.e by sending the order.id parameter in the request body.
"2022-10-06T11:40:48.705Z"
Timestamp representing the date and time when the order was updated. The value is shown in the ISO 8601 format. This parameter is returned only if you use the order ID parameter of an already created and synced order in the Voucherify application, i.e by sending the order.id parameter in the request body.
"2022-10-06T11:47:20.760Z"
Order status. This parameter is returned if you use the order ID parameter of an already created and synced order in the Voucherify application, i.e by sending the order.id parameter in the request body or if you send the request body parameter when defining an order in the request body. This parameter can be passed but it's not required for validation at all. It's used in the redemption process. Normally after the redemption is done, the order is automatically to a PAID status. To avoid such default behaviour, the user can pass any of the other status options and it will be set the order status after the redemption instead of the default PAID.
CREATED, PAID, CANCELED, FULFILLED Order amount before applying any discount.
Sum of all order-level discounts applied to the order.
Sum of all order-level discounts.
Order amount after applying all the discounts.
total_amount = amount - total_discount_amount
This field shows the order-level discount applied.
This field sums up all order-level discounts applied to the order.
Array of order items that have been applied to the order. Each order item can show the effects of particular discounts on the item-level.
Show child attributes
The type of the object represented by JSON. This object stores information about the order_item.
A unique identifier that represents the product and is assigned by Voucherify.
"prod_5h0wc453_1"
A unique identifier that represents the SKU and is assigned by Voucherify.
"sku_prod_5h0wc453_1_1"
Quantity of the item in the cart.
Represents a total pre-discount amount of order item (price * quantity).
Unit price of an item. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for $100.00.
Final order item amount after the applied item-level discount. If there are no item-level discounts applied, this item is equal to the amount.
subtotal_amount=amount-discount_amount
This object stores more information about the related product.
Show child attributes
A unique identifier that represents the product and is assigned by Voucherify.
"prod_5h0wc453_1"
A unique product identifier from your inventory system.
"illy-arabica"
Product name.
"Brewing System"
Unit price of a product. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for $100.00.
This object stores more information about the related SKU.
Show child attributes
A unique identifier that represents the SKU and is assigned by Voucherify.
"sku_prod_5h0wc453_1_1"
A unique SKU identifier from your inventory system.
"illy-arabica-250g"
SKU name.
Unit price of a SKU. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for $100.00.
The metadata object stores all custom attributes assigned to the order. A set of key/value pairs that are att to an order object. Stores additional information about the order in a structured format.
Object containing information about the customer that is making the purchase.
Object containing information about the referrer.
Unique customer identifier of the customer making the purchase. The ID is assigned by Voucherify.
"cust_7iUa6ICKyU6gH40dBU25kQU1"
Unique referrer ID.
"cust_nM4jqPiaXUvQdVSA6vTRUnix"
The type of the object represented by JSON. This object stores information about the order.
Unique promotion tier ID.
"promo_4TqHr24boFISDrcOHSlfAxwm"
Custom promotion tier name.
Text to be displayed to your customers on your website.
"Get 45% off items"
Contains information about the discount to be applied to the order.
Show child attributes
Defines the type of the voucher.
Defines how the discount is applied to the customer's order.
APPLY_TO_ORDER, APPLY_TO_ITEMS, APPLY_TO_ITEMS_PROPORTIONALLY, APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY, APPLY_TO_ITEMS_BY_QUANTITY Amount taken off the subtotal of a price. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 discount is written as 1000.
Activation timestamp defines when the promotion tier starts to be active in ISO 8601 format. Campaign is inactive before this date.
"2022-11-02T00:00:00.000Z"
Activation timestamp defines when the promotion tier expires in ISO 8601 format. Promotion tier is inactive after this date.
"2022-11-04T00:00:00.000Z"
Show child attributes
Unique promotion tier ID.
"camp_h8RyP6FV94F3Ev2odP24j5p1"
Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is inactive before this date.
"2022-11-01T00:00:00.000Z"
Activation timestamp defines when the campaign expires in ISO 8601 format. Promotion tier is inactive after this date.
"2022-11-30T00:00:00.000Z"
A flag indicating whether the campaign is active or not active. A campaign can be disabled even though it's within the active period defined by the start_date and expiration_date.
true indicates an active campaignfalse indicates an inactive campaignThis is an object representing a category.
Show child attributes
Unique category ID assigned by Voucherify.
Category name.
Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.
x >= 0The type of the object represented by the JSON. This object stores information about the category.
category Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format.
"2022-07-14T10:45:13.156Z"
Timestamp representing the date and time when the category was updated. The value is shown in the ISO 8601 format.
"2022-08-16T10:52:08.094Z"
The type of the object represented by the campaign object. This object stores information about the campaign.
The promotions hierarchy defines the order in which the discounts from different tiers will be applied to a customer's order. If a customer qualifies for discounts from more than one tier, discounts will be applied in the order defined in the hierarchy.
The calculated discount amount based on the discount type and effect.
The effective discount amount that would be applied to the order.
The metadata object stores all custom attributes assigned to the promotion tier. A set of key/value pairs that you can attach to a promotion tier object. It can be useful for storing additional information about the promotion tier in a structured format.
The type of the object represented by JSON. This object stores information about the promotion tier.
Promotion tier category ID.
"cat_0c9da30e7116ba6bba"
Details about the category assigned to the promotion tier.
Show child attributes
Unique category ID assigned by Voucherify.
Category name.
Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.
x >= 0The type of the object represented by the JSON. This object stores information about the category.
category Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format.
"2022-07-14T10:45:13.156Z"
Timestamp representing the date and time when the category was updated. The value is shown in the ISO 8601 format.
"2022-08-16T10:52:08.094Z"
Was this page helpful?