List promotions
curl --request GET \
--url https://api.lulacommerce.com/v1/promotions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lulacommerce.com/v1/promotions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lulacommerce.com/v1/promotions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"has_more": true,
"next_cursor": "<string>",
"data": [
{
"name": "<string>",
"type": "percent_off",
"starts_at": "2023-11-07T05:31:56Z",
"id": "promo_01JA0C2E4G6J",
"status": "scheduled",
"channel_status": [
{
"channel": "lula_direct",
"status": "live",
"message": "<string>"
}
],
"external_id": "<string>",
"percent_off": 50.5,
"amount_off": {
"amount": 249,
"currency": "USD"
},
"fixed_price": {
"amount": 249,
"currency": "USD"
},
"item_external_ids": [
"<string>"
],
"deal_group": {
"item_external_ids": [
"<string>"
],
"quantity": 3,
"price": {
"amount": 249,
"currency": "USD"
}
},
"minimum_subtotal": {
"amount": 249,
"currency": "USD"
},
"store_ids": [
"<string>"
],
"channels": [
"lula_direct"
],
"daypart_names": [
"<string>"
],
"ends_at": "2023-11-07T05:31:56Z"
}
]
}Promotions
List promotions
GET
/
promotions
List promotions
curl --request GET \
--url https://api.lulacommerce.com/v1/promotions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lulacommerce.com/v1/promotions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lulacommerce.com/v1/promotions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"has_more": true,
"next_cursor": "<string>",
"data": [
{
"name": "<string>",
"type": "percent_off",
"starts_at": "2023-11-07T05:31:56Z",
"id": "promo_01JA0C2E4G6J",
"status": "scheduled",
"channel_status": [
{
"channel": "lula_direct",
"status": "live",
"message": "<string>"
}
],
"external_id": "<string>",
"percent_off": 50.5,
"amount_off": {
"amount": 249,
"currency": "USD"
},
"fixed_price": {
"amount": 249,
"currency": "USD"
},
"item_external_ids": [
"<string>"
],
"deal_group": {
"item_external_ids": [
"<string>"
],
"quantity": 3,
"price": {
"amount": 249,
"currency": "USD"
}
},
"minimum_subtotal": {
"amount": 249,
"currency": "USD"
},
"store_ids": [
"<string>"
],
"channels": [
"lula_direct"
],
"daypart_names": [
"<string>"
],
"ends_at": "2023-11-07T05:31:56Z"
}
]
}
