Requires
order
access scope. For more access scope
Topic | Trigger Timing | Minimum Supported Version |
---|---|---|
cart/create | Triggered when an item is added to the cart | 202201 |
Response Example
{
"user_id": "f12245c0-7aa4-4cb2-9608-16032b08e72e",
"user_sign": null,
"currency_code": "USD",
"discount_applications": [
{
"type": "discount_rebate",
"title": "100-99",
"discount_amount": 99,
"message": "",
"discount_message": "",
"discount_id": "53609819-f7ae-41c1-8fb1-e5f0ca1b6329",
"value_type": "fixed_amount",
"target_type": "line_item",
"apply_method": "",
"target_selection": "all",
"discount_type": "discount_rebate",
"entitled_product_list": [
{
"product_id": "e0854d57-4da2-4538-b7bf-d24dfefa884f",
"variant_id": "2f193d62-ab46-49c3-b415-77b3bb895ca5",
"price": "111",
"trunk_price": "0",
"compare_at_price": "0",
"total_price": "111",
"quantity": 1,
"inventory_tracking": false,
"inventory_policy": "",
"inventory_quantity": 0,
"discount_applications": null,
"properties": ""
},
{
"product_id": "15c7c703-d418-47ad-afbd-12790f4559b0",
"variant_id": "9460470a-059a-47d2-a6f4-fbad19ff809e",
"price": "1",
"trunk_price": "0",
"compare_at_price": "0",
"total_price": "2",
"quantity": 2,
"inventory_tracking": false,
"inventory_policy": "",
"inventory_quantity": 0,
"discount_applications": null,
"properties": ""
},
{
"product_id": "ed9ccd32-ca60-4d08-975a-2c7d41e5f708",
"variant_id": "af2ca87b-169a-4dc3-b3ab-499733714f31",
"price": "49.99",
"trunk_price": "0",
"compare_at_price": "0",
"total_price": "49.99",
"quantity": 1,
"inventory_tracking": false,
"inventory_policy": "",
"inventory_quantity": 0,
"discount_applications": null,
"properties": ""
}
]
}
],
"line_items": [
{
"id": "1063741801_d41d8cd98f00b204e9800998ecf8427e",
"item_id": "1063741801",
"properties": "",
"product_id": "e0854d57-4da2-4538-b7bf-d24dfefa884f",
"variant_id": "2f193d62-ab46-49c3-b415-77b3bb895ca5",
"quantity": 1,
"price": "111.00",
"trunk_price": "0",
"custom": false,
"parts_price": null,
"variant_title": "long",
"product_title": "2",
"product_handle": "2",
"discount_applications": [],
"taxable": false,
"requires_shipping": true,
"wholesale_price": [
{
"min_quantity": 1,
"price": "111.00"
}
]
},
{
"id": "1063741749_d41d8cd98f00b204e9800998ecf8427e",
"item_id": "1063741749",
"properties": "",
"product_id": "15c7c703-d418-47ad-afbd-12790f4559b0",
"variant_id": "9460470a-059a-47d2-a6f4-fbad19ff809e",
"quantity": 2,
"price": "1.00",
"trunk_price": "0",
"custom": false,
"parts_price": null,
"variant_title": "hotpink",
"product_title": "Solid Ruffle Neck Bubble Sleeve Pleated Top",
"product_handle": "solid-ruffle-neck-bubble-sleeve-pleated-top",
"discount_applications": [],
"taxable": false,
"requires_shipping": true,
"wholesale_price": [
{
"min_quantity": 1,
"price": "1.00"
}
]
},
{
"id": "1063741581_d41d8cd98f00b204e9800998ecf8427e",
"item_id": "1063741581",
"properties": "",
"product_id": "ed9ccd32-ca60-4d08-975a-2c7d41e5f708",
"variant_id": "af2ca87b-169a-4dc3-b3ab-499733714f31",
"quantity": 1,
"price": "49.99",
"trunk_price": "0",
"custom": false,
"parts_price": null,
"variant_title": "",
"product_title": "Jabra Move Wireless Stereo Headphones",
"product_handle": "maternity-rainbow-stripe-skinny-bodycon-dress_5027",
"discount_applications": [],
"taxable": false,
"requires_shipping": true,
"wholesale_price": [
{
"min_quantity": 1,
"price": "49.99"
}
]
}
],
"total_price": "63.99",
"total_discount": "99.00",
"created_at": "2023-06-14T08:17:30Z",
"updated_at": "2023-06-14T08:17:30Z"
}