Skip to main content

Discounts

API Key and Store id that can be used in staging environment.

Store_id: 5c5981496bcf7500013afeb0

API Key: rna4etAXd11XRqbMTcNnWca216daxiFE

Creating an item based discount.

URL:http://api.lingaros.com/v1/lingapos/discount

MethodTypeDescription
store{id:}bson.ObjectIdUnique store id.
levelStringLevel for which the discount will be applied(1:Category, 2:Subcategory, 3:MenuItem).
offerInStringDiscount offer type (amount, percentage, set price, free item).
discountCouponType(Optional)StringDiscount coupon type (Promo, Comp, Donation).
categoryStringCategory for which the discount is applied.
subCategoryStringSubcategory for which the discount is applied.
menuItemStringMenu item for which the discount is applied.
servingSizes[]ServingSizesServing sizes for which the discount can be applied.
freeItems(Optional)[]freeItemsFree items that discount offers in.
isForAllSSLBoolTrue if the discount is applied for all serving sizes in category. If false, then serving size(s) must be selected
combineWithOtherDiscounts(Optional)BoolTrue if combined with other discounts.
includeAdditionalModifiers(Optional)BoolTrue if additional modifiers are included.
isRestrictToTime(Optional)BoolTrue if there is a restriction time setting.
offers[]bson.ObjectIdOffers (for check based discount).
isRestrictToDays(Optional)BoolTrue if the discount is restricted for some day.
daysOfWeek(Optional)[]DaysOfWeekWhich day(s) of the week the discount is restricted.
daysOfMonth(Optional)[]DaysOfMonthWhich day(s) of the month the discount is restricted.
isRestrictToMonths(Optional)BoolTrue if the discount is restricted for a month.
months(Optional)StringRestriction month(s).
applyToDiscountedPriceBoolTrue if the discount is applied to discounted price.
excludeCategories(Optional)StringExcluded categories for which the discount will not be applied. (Check based discounts)
excludeMenuItems(Optional)StringExcluded menu items for which the discount will not be applied. (Check based discounts)
isFree(Optional)BoolTrue if an item is offered for free as a discount.
timeApplicableTypeStringTime for which the discount is applicable: Always, Days of the week, Days of the month, Date range, Specific date or start date time & end date time will be specified.
buttonColorStringButton color selection for the discount.
couponOnly(Optional)BoolTrue if coupon only option is selected.
menuItems[]MenuItemsMenu item ids for which the discount will be applied.
categories[]CategoriesCategory ids for which the discount will be applied.
subCategories[]SubCategoriesSub category ids for which the discount will be applied.
autoDiscount(Optional)BoolTrue if auto discount option is selected.
setPriceBoolTrue if set price option is selected.(One of the following options have to be selected for 'mix and match' type of discount:Price, percentage or set price for each item).
setPercentageBoolTrue if set percentage option is selected.((One of the following options have to be set for 'mix and match' type of discount:Price, percentage or set price for each item).
isSetEachItemPriceBoolTrue if set each item price option is selected.((One of the following options have to be set for 'mix and match' type of discount:Price, percentage or set price for each item).
leastExpensiveBoolTrue if (discount for) least expensive item option is selected((One of the following options have to be set for 'mix and match' type of discount:Least expensive, most expensive).
mostExpensiveBoolTrue if (discount for) most expensive item option is selected((One of the following options have to be set for 'mix and match' type of discount:Least expensive, most expensive.
nameStringName of the discount.
discountCodeStringCode of the discount.
minQuantityStringMinimum quantity of items set for the discount can be applied.
offerStrStringAmount offered by the discount.
offPerErrString
adjustAmountStringSets if the discount will be applied before or after the taxes.
priorityIntPriority of the discount.
roles(Optional)StringRole id by whom the discount will be applied.
discountTypeStringType of the discount.
createdAtIntWhere the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
discountCodeStringDiscount code.
memberShipPlanbson.ObjectIDId of membership plan

Free Items(Optional) [freeItems]

MethodTypeDescription
menuItemStringMenu item id.
itemNameStringItem name.
servingSize[]servingSizesServing size id.
sizeNameStringServing size name.
quantityIntCategory for which the discount is applied.
offerInStringDiscount offer type (amount, percentage, set price, free item).
offerStringDiscount amount of the offer.
displayOfferStringDiscount amount of the offer displayed with currency.
curl -X POST \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"store":{"id":"5c5981496bcf7500013afeb0"},
"level":1,
"offerIn":"percentage",
"discountCouponType":"Promo",
"category":"",
"subCategory":"",
"menuItem":"",
"servingSizes":["5c5981496bcf7500013afedc",
"5c5981496bcf7500013afedd",
"5c5981496bcf7500013afede",
"5c5981496bcf7500013afedf",
"5c5981496bcf7500013afee0",
"5c5981496bcf7500013afee1",
"5c5981496bcf7500013afee2",
"5c5981496bcf7500013afee3",
"5c5981496bcf7500013afedc"],
"freeItems":[],
"isForAllSSL":true,
"combineWithOtherDiscounts":true,
"includeAdditionalModifiers":false,
"isRestrictToTime":false,
"offers":[],
"isRestrictToDays":false,
"daysOfWeek":[],
"daysOfMonth":[],
"isRestrictToMonths":false,
"months":[],
"applyToDiscountedPrice":true,
"excludeCategories":[],
"excludeMenuItems":[],
"isFree":false,
"timeApplicableType":"Always",
"buttonColor":"#2980B9",
"couponOnly":false,
"menuItems":[],
"categories":["5c5981496bcf7500013afeed"],
"subCategories":[],
"autoDiscount":false,
"setPrice":true,
"setPercentage":false,
"isSetEachItemPrice":false,
"leastExpensive":false,
"mostExpensive":false,
"name":"NewItemBasedDiscount",
"minQuantity":5,
"offerStr":"12.00",
"offPerErr":1,
"adjustAmount":"After Tax",
"priority":0,
"discountType":"Item Based",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2",
"discountCode":""}' \
"https://api.lingaros.com/v1/lingapos/discount" \

Updating an item based discount.

URL:http://api.lingaros.com/v1/lingapos/discount/{discount_id}

MethodTypeDescription
activeStatusBoolTrue if the discount is active.
adjustAmountStringSets if discount will be applied before or after update.
applicableToStringDiscount is applicable for an Item, a Check or as a Combo.
applyToDiscountedPriceBoolTrue if the discount will be applied to discounted price.
autoDiscountBoolTrue if the discount is applied automatically.
buttonColorStringColor of the discount button.
combineWithOtherDiscounts(Optional)BoolTrue if combined with other discounts.
categoriesStringCategory id.
couponOnlyBoolTrue if coupon-only discount.
discountCodeStringDiscount code.
discountCouponTypeStringDiscount coupon type.
discountTypeStringDiscount type (Item based, Check based, Open Item, Open Check...)
displayOfferStringDisplay offer.
freeItems(Optional)[]MenuItemsList of free items offered with the discount.
idbson.ObjectIdDiscount id.
isCustomerAttachBoolTrue if a customer is attached to discount.
isForAllSSLBoolTrue if the discount is applied for all serving sizes in category.
isRestrictToTime(Optional)BoolTrue if the discount is restricted in time.
levelIntLevel for which the discount will be applied in the product/item hierarchy(1:Category, 2:Subcategory, 3:MenuItem).
menuItems[]MenuItemsMenu item ids for which the discount will be applied.
minQuantityIntMinimum quantity of items for the discount to be applied.
nameStringName of the discount.
offerIntAmount of the offer.
offerInStringDiscount offer type (amount, percentage, set price, free item).
offerStrStringAmount of the offer in String.
originalIDStringDiscount original id.
priorityIntPriority of the discount.
roles(Optional)[]RolesRole ids by which the discount will be applied.
servingSizes[]ServingSizesServing sizes for which the discount can be applicable.
setPriceBoolTrue if set price option is selected.
timeApplicableTypeStringThe time (period) for which the discount is applicable: Always, Days of the week, Days of the month, Date range, Specific date or start date time & end date time will be specified.
role[]RolesRole id.
startTimeTimeIf a restriction in time is set, when the discount restriction starts.
endTimeTimeIf a restriction in time is set, when the discount restriction ends.
createdAtIntWhere the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.

Free Items(Optional) [freeItems]

MethodTypeDescription
menuItemStringMenu item id.
itemNameStringItem name.
servingSize[]servingSizesServing size id.
sizeNameStringServing size name.
quantityIntCategory for which the discount is applied.
offerInStringDiscount offer type (amount, percentage, set price, free item).
offerStringDiscount amount of the offer.
displayOfferStringDiscount amount of the offer displayed with currency.
curl -X PUT \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"activeStatus":true,
"adjustAmount":"Before Tax",
"applicableTo":"",
"applyToDiscountedPrice":true,
"autoDiscount":false,
"buttonColor":"#2980B9",
"combineWithOtherDiscounts":true,
"categories":["5dd3d7ee0493b900013a160b"],
"couponOnly":false,
"discountCode":"",
"discountCouponType":"Promo",
"discountType":"Item Based",
"displayOffer":"15.00",
"freeItems":[],
"id":"5ddb9c7e0d3bb9000126509a",
"isCustomerAttach":false,
"isForAllSSL":true,
"isRestrictToTime":false,
"level":1,
"menuItems":[],
"minQuantity":3,
"name":"ItemBased25_11",
"offer":15,
"offerIn":"percentage",
"offerStr":"15.00",
"originalID":"5dd4fbf3d5c72b0001022968",
"priority":23,
"roles":[],
"servingSizes":["5dd3d7ee0493b900013a15f8","5dd3d7ee0493b900013a15f9",
"5dd3d7ee0493b900013a15fa","5dd3d7ee0493b900013a15fb","5dd3d7ee0493b900013a15fc",
"5dd3d7ee0493b900013a15fd","5dd3d7ee0493b900013a15fe","5dd3d7ee0493b900013a15ff",
"5dd3d7ee0493b900013a15f8","5dd3d7ee0493b900013a15f9","5dd3d7ee0493b900013a15fa",
"5dd3d7ee0493b900013a15fb","5dd3d7ee0493b900013a15f9","5dd3d7ee0493b900013a15fa",
"5dd3d7ee0493b900013a15fb","5dd3d7ee0493b900013a15f9","5dd3d7ee0493b900013a15fa",
"5dd3d7ee0493b900013a15fb"],
"setPrice":true,
"timeApplicableType":"Always",
"role":[],
"startTime":"",
"endTime":"",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2"}' \
"https://api.lingaros.com/v1/lingapos/discount/{discount_id}" \

Creating a check based discount.

URL:http://api.lingaros.com/v1/lingapos/discount

MethodTypeDescription
store{id:}bson.ObjectIdUnique store id.
levelStringLevel for which the discount will be applied(1:Category, 2:Subcategory, 3:MenuItem).
offerInStringDiscount offer type (amount, percentage, set price, free item).
discountCouponTypeStringDiscount coupon type (Promo, Comp, Donation).
categoryStringCategory for which the discount is applied.
subCategoryStringSubcategory for which the discount is applied.
menuItemStringMenu item for which the discount is applied.
servingSizes[]ServingSizesServing sizes for which the discount can be applied.
freeItems(Optional)StringFree items that discount offers in.
isForAllSSLBoolTrue if the discount is applied for all serving sizes in category.
combineWithOtherDiscounts(Optional)BoolTrue if combined with other discounts.
includeAdditionalModifiers(Optional)BoolTrue if additional modifiers are included.
isRestrictToTime(Optional)BoolTrue if there is a restriction time setting.
offers[]bson.ObjectIdOffers for check based discount.
isRestrictToDaysBoolTrue if the discount is restricted for some day.
daysOfWeek(Optional)[]DaysOfWeekThe discount is restricted for which day(s) of the week.
daysOfMonth(Optional)[]DaysOfMonthThe discount is restricted for which day(s) of the month.
isRestrictToMonths(Optional)BoolTrue if the discount is restricted for a month.
months(Optional)StringRestriction month(s).
applyToDiscountedPriceBoolTrue if the discount is applied to discounted price.
excludeCategories(Optional)StringExcluded categories for which the discount will not be applied.
excludeMenuItems(Optional)StringExcluded menu items for which the discount will not be applied.
isFreeBoolTrue if an item is offered for free as a discount.
timeApplicableTypeStringThe time for which the discount is applicable: Always, Days of the week, Days of the month, Date range, Specific date or start date time & end date time will be specified.
buttonColorStringButton color selection for the discount.
couponOnlyBoolTrue if coupon only option is selected.
menuItems[]MenuItemsMenu item ids for which the discount will be applied.
categories[]CategoriesCategory ids for which the discount will be applied.
subCategories[]SubCategoriesSub category ids for which the discount will be applied.
autoDiscountBoolTrue if auto discount option is selected.
setPriceBoolTrue if set price option is selected.
setPercentageBoolTrue if set percentage option is selected.
isSetEachItemPriceBoolTrue if set set each item price option is selected.
leastExpensiveBoolTrue if (discount for) least expensive item option is selected.
mostExpensiveBoolTrue if (discount for) most expensive item option is selected.
nameStringName of the discount.
discountCodeStringCode of the discount.
minQuantityStringMinimum quantity set for the discount.
offerStrStringAmount offered by the discount.
offPerErrString
adjustAmountStringSets if the discount will be applied before or after the taxes.
priorityIntPriority of the discount.
roles(Optional)[]RolesRole id by whom the discount will be applied.
discountTypeStringDiscount type (Item based, Check based, Open Item, Open Check...)
createdAtIntWhere the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.

Offers [Offers]

MethodTypeDescription
minAmountIntMinimum amount for the discount to be applied.
minAmountStrStringMinimum amount for the discount to be applied in string (without currency symbol).
discountIntAmount of the discount.
offerInIntDiscount offer type (amount, percentage, set price, free item).
disPerErrInt
freeItems(Optional)[]MenuItemsFree items.
showFreeItemsBoolDenotes if free items are shown.
discountStrStringMinimum amount for the discount to be applied in string.

Free Items(Optional) [FreeItems]

MethodTypeDescription
menuItemMenuItemsMenu Item id.
servingSize[]servingSizesServing size for which the discount is applied.
quantityIntQuantity of items for which the discount is applied.
servingSize[]servingSizesServing sizes for which the discount is applied.
offerStrIntOffer amount in string.

Serving Sizes [ServingSizes]

MethodTypeDescription
activeStatusBoolDenotes if the service size is active.
conversions[]Conversions
defaultBoolDenotes if it's default serving size.
idStringServing size id.
nameStringServing size name.
originalIDStringServing size original ID.
typeIntServing size type.
curl -X POST \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"store":{"id":"5dd3d7ee0493b900013a15cc"},
"level":1,
"offerIn":"percentage",
"discountCouponType":"Donation",
"category":"",
"subCategory":"",
"menuItem":"",
"servingSizes":["5dd3d7ee0493b900013a15f8","5dd3d7ee0493b900013a15f9","5dd3d7ee0493b900013a15fa","5dd3d7ee0493b900013a15fb","5dd3d7ee0493b900013a15fc","5dd3d7ee0493b900013a15fd","5dd3d7ee0493b900013a15fe","5dd3d7ee0493b900013a15ff"],
"freeItems":[],
"isForAllSSL":true,
"combineWithOtherDiscounts":true,
"includeAdditionalModifiers":false,
"isRestrictToTime":false,
"offers":[
{"minAmount":"",
"minAmountStr":"15.00",
"discount":"",
"offer":"Checktotal",
"offerIn":"free item",
"disPerErr":1,
"freeItems":[{"menuItem":"5dd3d7ee0493b900013a160d",
"servingSize":"5dd3d7ee0493b900013a15f8",
"quantity":3,
"servingSizes":[{"activeStatus":true,
"conversions":[],
"default":false,
"description":"",
"id":"5dd3d7ee0493b900013a15f8",
"name":"EACH",
"originalID":"5dd3d7ee0493b900013a15f8","type":0}],
"offerStr":"0.50"}],
"showFreeItems":false,
"discountStr":""}],
"isRestrictToDays":false,
"daysOfWeek":[],
"daysOfMonth":[],
"isRestrictToMonths":false,
"months":[],
"applyToDiscountedPrice":true,
"excludeCategories":["5dd3d7ee0493b900013a1608"],
"excludeMenuItems":["5dd3d7ee0493b900013a160c"],
"isFree":false,
"timeApplicableType":"Always",
"buttonColor":"#2980B9",
"couponOnly":true,
"menuItems":[],
"categories":[],
"subCategories":[],
"autoDiscount":false,
"setPrice":true,
"setPercentage":false,
"isSetEachItemPrice":false,
"leastExpensive":false,
"mostExpensive":false,
"name":"Discount_2911",
"priority":2,
"roles":["5dd3d7ee0493b900013a15d3"],
"adjustAmount":"After Tax",
"discountType":"Check Based",
"createdAt":2,
"createdFor":"5dd3d7ee0493b900013a15cc",
"ownedBy":"5dd3d7ee0493b900013a15ce"}' \
"https://api.lingaros.com/v1/lingapos/discount" \

Updating an check based discount.

URL:http://api.lingaros.com/v1/lingapos/discount/{discount_id}

MethodTypeDescription
activeStatusBoolTrue if the discount is active.
adjustAmountStringSets if discount will be applied before or after update.
applicableToStringDiscount is applicable for an Item, a Check or as a Combo.
applyToDiscountedPriceBoolTrue if the discount will be applied to discounted price.
autoDiscountBoolTrue if the discount is applied automatically.
buttonColorStringColor of the discount button.
combineWithOtherDiscounts(Optional)BoolTrue if combined with other discounts.
categoriesStringCategory id.
couponOnlyBoolTrue if coupon-only discount.
discountCodeStringDiscount code.
discountCouponTypeStringDiscount coupon type.
discountTypeStringDiscount type (Item based, Check based, Open Item, Open Check...)
excludeCategories(Optional)[]CategoriesCategories to be excluded.
excludeMenuItems(Optional)[]MenuItemsMenu Items to be excluded.
idbson.ObjectIdDiscount id.
isCustomerAttach(Optional)BoolTrue if a customer is attached to discount.
isRestrictToTime(Optional)BoolTrue if the discount is restricted in time.
nameStringName of the discount.
offers[]bson.ObjectIdOffers.
originalIDStringDiscount original id.
priorityIntPriority of the discount.
roles(Optional)[]RolesRole ids by which the discount will be applied.
setPriceBoolTrue if set price option is selected.
timeApplicableTypeStringThe time (period) for which the discount is applicable: Always, Days of the week, Days of the month, Date range, Specific date or start date time & end date time will be specified.
role[]RolesRole id.
freeItems(Optional)[]MenuItemsList of free items offered with the discount.
startTimeTimeIf a restriction in time is set, when the discount restriction starts.
endTimeTimeIf a restriction in time is set, when the discount restriction ends.
createdAtIntWhere the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.

Offers [Offers]

MethodTypeDescription
discountIntAmount of the discount.
discountStrStringMinimum amount for the discount to be applied in string.
displayDiscountStringAmount of the discount in string.
displayMinAmountStringDisplay minimum amount for the discount to be applied in string (with currency symbol).
idStringOffer id.
minAmountIntMinimum amount for the discount to be applied.
minAmountStrStringMinimum amount for the discount to be applied in string (without currency symbol).
offerInIntDiscount offer type (amount, percentage, set price, free item).
disPerErrInt
curl -X PUT \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"activeStatus":true,
"adjustAmount":"Before Tax",
"applicableTo":"",
"applyToDiscountedPrice":true,
"autoDiscount":false,
"buttonColor":"#2980B9",
"combineWithOtherDiscounts":true,
"couponOnly":false,
"discountCode":"",
"discountCouponType":"Promo",
"discountType":"Check Based",
"excludeCategories":["5c5981496bcf7500013afeed"],
"excludeMenuItems":["5c5981496bcf7500013afef1"],
"id":"5dd3f6c0d5c72b00019298d0",
"isCustomerAttach":false,
"isRestrictToTime":false,
"name":"checkbasedtestdiscount",
"offers":[{"discount":5,
"discountStr":"10.00",
"displayDiscount":"5.00",
"displayMinAmount":"₹10.00",
"id":"5dd3f6c0d5c72b00019298cf",
"minAmount":1000,
"minAmountStr":"10.00",
"offerIn":"percentage",
"disPerErr":1}],
"originalID":"5dd3f6c0d5c72b00019298d0",
"priority":0,
"roles":[],
"setPrice":true,
"timeApplicableType":"Always",
"role":[],
"freeItems":[],
"startTime":"",
"endTime":"",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2"}' \
"https://api.lingaros.com/v1/lingapos/discount/{discount_id}" \

Creating an open item discount.

URL:http://api.lingaros.com/v1/lingapos/discount

MethodTypeDescription
isPercentage (Optional)BoolDenotes if the discount is percentage based.
isAmount (Optional)BoolDenotes if the discount is amount based.
includeAdditionalModifiers(Optional)BoolDenotes if additional modifiers are included.
combineWithOtherDiscounts(Optional)BoolDenotes if the discount is combined with other discounts.
applyToDiscountedPriceBoolDenotes if the discount is applied to discounted price.
discountCouponTypeStringCoupon type of the discount.
couponOnly(Optional)BoolDenotes if the discount is coupon-only.
buttonColorStringDiscount button color.
nameStringName of the discount.
adjustAmountStringDiscount is applied before or after tax.
priorityIntPriority of the discount.
minPercentageIntMin percentage which can be applied with the discount.
maxPercentageIntMax percentage which can be applied with the discount.
minPercentageStrStringMin percentage which can be applied with the discount (in string).
maxPercentageStrStringMax percentage which can be applied with the discount (in string).
minPerErrInt
minPerMsgString
maxPerErrInt
maxPerMsgString
roles(Optional)[]RolesRole ids by which the discount will be applied.
minAmountIntMinimum discount to be applied in amount.
maxAmountIntMaximum discount to be applied in amount.
minAmountStrIntMinimum discount to be applied in amount (in string).
maxAmountStrIntMaximum discount to be applied in amount (in string).
safetyLimitPercentageInt
safetyLimitPercentageStrString
maxAmtErrInt
maxAmtMsgString
safePerErrInt
safePerMsgString
createdAtIntWhere the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.
discountTypeStringDiscount type: Item based, check based, open item, open check, mix and match .
storebson.ObjectIdStore Id
curl -X POST \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"isPercentage":false,
"isAmount":true,
"includeAdditionalModifiers":false,
"combineWithOtherDiscounts":false,
"applyToDiscountedPrice":false,
"discountCouponType":"Donation",
"couponOnly":false,
"buttonColor":"#578c25",
"name":"OpenItem_5_12",
"adjustAmount":"After Tax",
"priority":6,
"minPercentage":0,
"maxPercentage":0,
"minPercentageStr":null,
"maxPercentageStr":null,
"minPerErr":1,
"minPerMsg":"",
"maxPerErr":1,
"maxPerMsg":"",
"roles":["5dc3b10226781d0001e21dbc"],
"minAmount":0,
"maxAmount":0,
"minAmountStr":"5.00",
"maxAmountStr":"10.00",
"safetyLimitPercentage":null,
"safetyLimitPercentageStr":"3",
"maxAmtErr":1,
"maxAmtMsg":"",
"safePerErr":1,
"safePerMsg":"",
"createdAt":2,
"createdFor":"5dc3b10126781d0001e21db2",
"ownedBy":"58eb27699230ca6124a586e5",
"discountType":"Open Item",
"store":"5dc3b10126781d0001e21db2"}' \
"https://api.lingaros.com/v1/lingapos/discount" \

Updating an open item discount.

URL:http://api.lingaros.com/v1/lingapos/discount/{discount_id}

MethodTypeDescription
activeStatusBoolTrue if the discount is active.
adjustAmountStringSet if the discount will be applied before or after the taxes.
applicableToStringDiscount is applicable for an Item, a Check or as a Combo.
applyToDiscountedPriceBoolDenotes if the discount is applied to discounted price.
autoDiscountBoolTrue if the discount is applied automatically.
buttonColorStringDiscount button color.
combineWithOtherDiscounts(Optional)BoolDenotes if the discount is combined with other discounts.
couponOnly(Optional)BoolDenotes if the discount is coupon-only.
discountCodeStringDiscount code.
discountCouponTypeStringCoupon type of the discount.
discountTypeStringDiscount type (Item based, Check based, Open Item, Open Check...)
idbson.ObjectIdDiscount id.
includeAdditionalModifiers(Optional)BoolDenotes if additional modifiers are included.
isAmount (Optional)BoolDenotes if the discount is amount based.
isCustomerAttach(Optional)BoolTrue if a customer is attached to discount.
isPercentage (Optional)BoolDenotes if the discount is percentage based.
maxPercentageIntMax percentage which can be applied with the discount.
maxPercentageStrStringMax percentage which can be applied with the discount (in string).
minPercentageIntMin percentage which can be applied with the discount.
minPercentageStrStringMin percentage which can be applied with the discount (in string).
nameStringName of the discount.
originalIDStringDiscount original id.
priorityIntPriority of the discount.
roles(Optional)[]RoleRole ids by which the discount will be applied.
safetyLimitPercentageInt
safetyLimitPercentageStrString
setPriceBoolTrue if set price option is selected.
minPerErrInt
minPerMsgString
maxPerErrInt
maxPerMsgString
minAmountIntMinimum discount to be applied in amount.
maxAmountIntMaximum discount to be applied in amount.
createdAtIntWhere the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.
curl -X PUT \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"activeStatus":true,
"adjustAmount":"After Tax",
"applicableTo":"",
"applyToDiscountedPrice":false,
"autoDiscount":false,
"buttonColor":"#2980B9",
"combineWithOtherDiscounts":false,
"couponOnly":true,
"discountCode":"",
"discountCouponType":"Donation",
"discountType":"Open Item",
"id":"5df26b86eb3df60001eb392e",
"includeAdditionalModifiers":true,
"isAmount":false,
"isCustomerAttach":true,
"isPercentage":true,
"maxPercentage":90,
"maxPercentageStr":"80.00",
"minPercentage":10,
"minPercentageStr":"10.00",
"name":"OpenItem_1212",
"originalID":"5df26b86eb3df60001eb392e",
"priority":2,
"roles":["5dd3d7ee0493b900013a15d2","5dd3d7ee0493b900013a15d3"],
"safetyLimitPercentage":0,
"safetyLimitPercentageStr":"",
"setPrice":false,
"minPerErr":1,
"minPerMsg":"",
"maxPerErr":1,
"maxPerMsg":"",
"minAmount":0,
"maxAmount":0,
"createdAt":2,
"createdFor":"5dd3d7ee0493b900013a15cc",
"ownedBy":"5dd3d7ee0493b900013a15ce"}' \
"https://api.lingaros.com/v1/lingapos/discount/{discount_id}" \

Creating an open check discount.

URL:http://api.lingaros.com/v1/lingapos/discount

MethodTypeDescription
isPercentage (Optional)BoolDenotes if the discount is percentage based.
isAmount (Optional)BoolDenotes if the discount is amount based.
includeAdditionalModifiers(Optional)BoolDenotes if additional modifiers are included.
combineWithOtherDiscounts(Optional)BoolDenotes if the discount is combined with other discounts.
applyToDiscountedPriceBoolDenotes if the discount is applied to discounted price.
discountCouponTypeStringCoupon type of the discount.
couponOnly(Optional)BoolDenotes if the discount is coupon-only.
buttonColorStringDiscount button color.
nameStringName of the discount.
adjustAmountStringDiscount is applied before or after tax.
priorityIntPriority of the discount.
minPercentageIntMin percentage which can be applied with the discount.
maxPercentageIntMax percentage which can be applied with the discount.
minPercentageStrStringMin percentage which can be applied with the discount (in string).
maxPercentageStrStringMax percentage which can be applied with the discount (in string).
minPerErrInt
minPerMsgString
maxPerErrInt
maxPerMsgString
roles(Optional)[]RolesRole ids by which the discount will be applied.
minAmountIntMinimum discount to be applied in amount.
maxAmountIntMaximum discount to be applied in amount.
minAmountStrIntMinimum discount to be applied in amount (in string).
maxAmountStrIntMaximum discount to be applied in amount (in string).
safetyLimitPercentageInt
safetyLimitPercentageStrString
maxAmtErrInt
maxAmtMsgString
safePerErrInt
safePerMsgString
createdAtIntWhere the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.
discountTypeStringDiscount type: Item based, check based, open item, open check, mix and match .
storebson.ObjectIdStore Id
curl -X POST \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"isPercentage":true,
"isAmount":true,
"includeAdditionalModifiers":false,
"combineWithOtherDiscounts":false,
"applyToDiscountedPrice":false,
"discountCouponType":"Promo",
"couponOnly":true,
"buttonColor":"#2980B9",
"name":"Open Check 1612",
"minPercentage":0,
"maxPercentage":0,
"minPercentageStr":"5.00",
"maxPercentageStr":"10",
"minPerErr":1,"
minPerMsg":"",
"maxPerErr":1,"
maxPerMsg":"",
"minAmount":0,
"maxAmount":0,
"minAmountStr":"10.00",
"maxAmountStr":"20.00",
"safetyLimitPercentage":null,
"safetyLimitPercentageStr":"7",
"maxAmtErr":1,"maxAmtMsg":"",
"safePerErr":1,
"safePerMsg":"",
"adjustAmount":"Before Tax",
"priority":2,
"createdAt":2,
"createdFor":"5dd3d7ee0493b900013a15cc",
"ownedBy":"5dd3d7ee0493b900013a15ce",
"discountType":"Open Check",
"store":"5dd3d7ee0493b900013a15cc"}' \
"https://api.lingaros.com/v1/lingapos/discount" \

Updating an open check discount.

URL:http://api.lingaros.com/v1/lingapos/discount/{discount_id}

MethodTypeDescription
activeStatusBoolTrue if the discount is active.
adjustAmountStringSet if the discount will be applied before or after the taxes.
applicableToStringDiscount is applicable for an Item, a Check or as a Combo.
applyToDiscountedPriceBoolDenotes if the discount is applied to discounted price.
autoDiscountBoolTrue if the discount is applied automatically.
buttonColorStringDiscount button color.
combineWithOtherDiscounts(Optional)BoolDenotes if the discount is combined with other discounts.
couponOnly(Optional)BoolDenotes if the discount is coupon-only.
discountCodeStringDiscount code.
discountCouponTypeStringCoupon type of the discount.
discountTypeStringDiscount type (Item based, Check based, Open Item, Open Check...)
idbson.ObjectIdDiscount id.
includeAdditionalModifiers(Optional)BoolDenotes if additional modifiers are included.
isAmount (Optional)BoolDenotes if the discount is amount based.
isCustomerAttach(Optional)BoolTrue if a customer is attached to discount.
isPercentage (Optional)BoolDenotes if the discount is percentage based.
maxPercentageIntMax percentage which can be applied with the discount.
maxPercentageStrStringMax percentage which can be applied with the discount (in string).
minPercentageIntMin percentage which can be applied with the discount.
minPercentageStrStringMin percentage which can be applied with the discount (in string).
nameStringName of the discount.
originalIDStringDiscount original id.
priorityIntPriority of the discount.
roles(Optional)[]RolesRole ids by which the discount will be applied.
setPriceBoolTrue if set price option is selected.
minAmountIntMinimum discount to be applied in amount.
maxAmountIntMaximum discount to be applied in amount.
createdAtIntWhere the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.
curl -X PUT \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"activeStatus":true,
"adjustAmount":"Before Tax",
"applicableTo":"",
"applyToDiscountedPrice":false,
"autoDiscount":false,
"buttonColor":"#2980B9",
"combineWithOtherDiscounts":false,
"couponOnly":true,
"discountCode":"",
"discountCouponType":"Promo",
"discountType":"Open Check",
"displayMaxAmount":"US$20.00",
"displayMinAmount":"US$10.00",
"id":"5df6a5c316fd03000161bebe",
"isAmount":true,
"isCustomerAttach":false,
"isPercentage":true,
"maxAmount":2000,
"maxAmountStr":"20.00",
"maxPercentage":0,
"maxPercentageStr":"10",
"minAmount":1000,
"minAmountStr":"10.00",
"minPercentage":5,
"minPercentageStr":"5.50",
"name":"Open Check 1612",
"originalID":"5df6a5c316fd03000161bebe",
"priority":2,
"roles":null,
"safetyLimitPercentage":7,
"safetyLimitPercentageStr":"7",
"setPrice":false,
"minPerErr":1,
"minPerMsg":"",
"maxPerErr":1,
"maxPerMsg":"",
"createdAt":2,
"createdFor":"5dd3d7ee0493b900013a15cc",
"ownedBy":"5dd3d7ee0493b900013a15ce"}' \
"https://api.lingaros.com/v1/lingapos/discount/{discount_id}" \

Creating an mix and match discount.

URL:http://api.lingaros.com/v1/lingapos/discount

MethodTypeDescription
store{id:}bson.ObjectIdUnique store id.
levelStringLevel for which the discount will be applied(1:Category, 2:Subcategory, 3:MenuItem).
offerInStringDiscount offer type (amount, percentage, set price, free item).
discountCouponType(Optional)StringDiscount coupon type (Promo, Comp, Donation).
categoryStringCategory for which the discount is applied.
subCategoryStringSubcategory for which the discount is applied.
menuItemStringMenu item for which the discount is applied.
servingSizes[]ServingSizesServing sizes for which the discount can be applied.
freeItems(Optional)[]freeItemsFree items that discount offers in.
isForAllSSLBoolTrue if the discount is applied for all serving sizes in category. If false, then serving size(s) must be selected
combineWithOtherDiscounts(Optional)BoolTrue if combined with other discounts.
includeAdditionalModifiers(Optional)BoolTrue if additional modifiers are included.
isRestrictToTime(Optional)BoolTrue if there is a restriction time setting.
offers[]OffersOffers (for check based discount).
isRestrictToDays(Optional)BoolTrue if the discount is restricted for some day.
daysOfWeek(Optional)[]DaysOfWeekWhich day(s) of the week the discount is restricted.
daysOfMonth(Optional)[]DaysOfMonthWhich day(s) of the month the discount is restricted.
isRestrictToMonths(Optional)BoolTrue if the discount is restricted for a month.
months(Optional)StringRestriction month(s).
applyToDiscountedPriceBoolTrue if the discount is applied to discounted price.
excludeCategories(Optional)StringExcluded categories for which the discount will not be applied. (Check based discounts)
excludeMenuItems(Optional)StringExcluded menu items for which the discount will not be applied. (Check based discounts)
isFree(Optional)BoolTrue if an item is offered for free as a discount.
timeApplicableTypeStringTime for which the discount is applicable: Always, Days of the week, Days of the month, Date range, Specific date or start date time & end date time will be specified.
buttonColorStringButton color selection for the discount.
couponOnly(Optional)BoolTrue if coupon only option is selected.
menuItems[]MenuItemsMenu item ids for which the discount will be applied.
categories[]bson.ObjectIdCategory ids for which the discount will be applied.
subCategoriesmap[String]CategorySub category ids for which the discount will be applied.
autoDiscount(Optional)BoolTrue if auto discount option is selected.
setPriceBoolTrue if set price option is selected.(One of the following options have to be selected for 'mix and match' type of discount:Price, percentage or set price for each item).
setPercentageBoolTrue if set percentage option is selected.((One of the following options have to be set for 'mix and match' type of discount:Price, percentage or set price for each item).
isSetEachItemPriceBoolTrue if set each item price option is selected.((One of the following options have to be set for 'mix and match' type of discount:Price, percentage or set price for each item).
leastExpensiveBoolTrue if (discount for) least expensive item option is selected((One of the following options have to be set for 'mix and match' type of discount:Least expensive, most expensive).
mostExpensiveBoolTrue if (discount for) most expensive item option is selected((One of the following options have to be set for 'mix and match' type of discount:Least expensive, most expensive.
nameStringName of the discount.
mixAndMatchOffer[]mixAndMatchOfferMix and match offer details.
comboLengthIntLength of the combo to be discounted.
adjustAmountStringSet if the discount will be applied before or after the taxes.
priorityIntPriority of the discount.
discountTypeStringType of the discount.
createdAtIntWhich store created the discount.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.
discountCodeStringDiscount code.

Mix And Match Offer [mixAndMatchOffer]

MethodTypeDescription
quantityIntQuantity of menu items for which the discount is applied.
priceStrStringDiscounted price.
curl -X POST \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"store":{"id":"5dd3d7ee0493b900013a15cc"},
"level":1,
"offerIn":"set price",
"discountCouponType":"Promo",
"category":"",
"subCategory":"",
"menuItem":"",
"servingSizes":["5dd3d7ee0493b900013a15fc","5dd3d7ee0493b900013a15ff","5dd3d7ee0493b900013a15fd","5dd3d7ee0493b900013a15fe","5dd3d7ee0493b900013a15f9","5dd3d7ee0493b900013a15f8","5dd3d7ee0493b900013a15fa","5dd3d7ee0493b900013a15fb"],
"freeItems":[],
"isForAllSSL":true,
"combineWithOtherDiscounts":true,
"includeAdditionalModifiers":false,
"isRestrictToTime":false,
"offers":[],
"isRestrictToDays":false,
"daysOfWeek":[],
"daysOfMonth":[],
"isRestrictToMonths":false,
"months":[],
"applyToDiscountedPrice":true,
"excludeCategories":[],
"excludeMenuItems":[],
"isFree":false,
"timeApplicableType":"Always",
"buttonColor":"#2980B9",
"couponOnly":false,
"menuItems":["5dd3d7ee0493b900013a160e"],
"categories":["5dd3d7ee0493b900013a160b"],
"subCategories":[],
"autoDiscount":false,
"setPrice":false,
"setPercentage":false,
"isSetEachItemPrice":true,
"leastExpensive":false,
"mostExpensive":false,
"name":"MixAndMatch1612",
"mixAndMatchOffers":[{"quantity":3,"qtyErr":"","disQtyErr":"","priceStr":"4.00"}],
"comboLength":1,
"comboUnique":0,
"adjustAmount":"Before Tax",
"priority":4,
"discountType":"Mix And Match",
"createdAt":2,
"createdFor":"5dd3d7ee0493b900013a15cc",
"ownedBy":"5dd3d7ee0493b900013a15ce",
"discountCode":""}' \
"https://api.lingaros.com/v1/lingapos/discount" \

Updating a mix and match discount.

URL:http://api.lingaros.com/v1/lingapos/discount/{discount_id}

MethodTypeDescription
activeStatusBoolTrue if the discount is active.
adjustAmountStringSet if the discount will be applied before or after the taxes.
applicableToStringDiscount is applicable for an Item, a Check or as a Combo.
applyToDiscountedPriceBoolDenotes if the discount is applied to discounted price.
autoDiscountBoolTrue if the discount is applied automatically.
buttonColorStringDiscount button color.
categories[]CategoriesCategory ids for which the discount will be applied.
combineWithOtherDiscounts(Optional)BoolDenotes if the discount is combined with other discounts.
couponOnly(Optional)BoolDenotes if the discount is coupon-only.
discountCodeStringDiscount code.
discountCouponTypeStringCoupon type of the discount.
discountTypeStringDiscount type (Item based, Check based, Open Item, Open Check...)
idStringDiscount id.
isCustomerAttach(Optional)BoolTrue if a customer is attached to discount.
isRestrictToTime(Optional)BoolTrue if there is a restriction time setting.
isSetEachItemPriceBoolTrue if set each item price option is selected.((One of the following options have to be set for 'mix and match' type of discount:Price, percentage or set price for each item).
leastExpensiveBoolTrue if (discount for) least expensive item option is selected((One of the following options have to be set for 'mix and match' type of discount:Least expensive, most expensive).
menuItems[]MenuItemsMenu item ids for which the discount will be applied.
mixAndMatchOffer[]mixAndMatchOfferMix and match offer details.
mostExpensiveBoolTrue if (discount for) most expensive item option is selected((One of the following options have to be set for 'mix and match' type of discount:Least expensive, most expensive.
nameStringName of the discount.
offerIntAmount of the offer.
offerInStringDiscount offer type (amount, percentage, set price, free item).
offerStrIntOffer amount in string.
originalIDStringDiscount original id.
priorityIntPriority of the discount.
roles(Optional)[]RolesRole ids by which the discount will be applied.
setPercentageBoolTrue if set percentage option is selected.((One of the following options have to be set for 'mix and match' type of discount:Price, percentage or set price for each item).
setPriceBoolTrue if set price option is selected.
timeApplicableTypeStringTime for which the discount is applicable: Always, Days of the week, Days of the month, Date range, Specific date or start date time & end date time will be specified.
role[]RolesRole id.
servingSizes[]ServingSizesServing sizes for which the discount can be applied.
comboLengthIntLength of the combo to be discounted.
freeItems(Optional)[]freeItemsFree items that discount offers in.
startTimeTimeIf a restriction in time is set, when the discount restriction starts.
endTimeTimeIf a restriction in time is set, when the discount restriction ends.
createdAtIntWhere the discount is created.
createdForbson.ObjectIdStore id for which the discount is created.
ownedBybson.ObjectIdAccount id related to the Store by whom the discount is created.

Mix And Match Offer [mixAndMatchOffer]

MethodTypeDescription
quantityIntQuantity of menu items for which the discount is applied.
priceStrStringDiscounted price.
discountQuantityIntDiscounted quantity.
curl -X PUT \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"activeStatus":true,
"adjustAmount":"After Tax",
"applicableTo":"","
applyToDiscountedPrice":true,
"autoDiscount":false,
"buttonColor":"#2980B9",
"categories":["5dd3d7ee0493b900013a160b"],
"combineWithOtherDiscounts":true,
"couponOnly":false,"discountCode":"",
"discountCouponType":"Promo",
"discountType":"Mix And Match",
"displayOffer":"US$0.00",
"id":"5df6abcc16fd03000161bec2",
"isCustomerAttach":false,
"isRestrictToTime":false,
"isSetEachItemPrice":true,
"leastExpensive":false,
"menuItems":["5dd3d7ee0493b900013a160e"],
"mixAndMatchOffers":[{"_id":"5df6abcc16fd03000161bec1","quantity":3,"price":400,"priceStr":"4.00","discountQuantity":0}],
"mostExpensive":false,
"name":"MixAndMatch1612",
"offer":0,
"offerIn":"set price",
"offerStr":"0.00",
"originalID":"5df6abcc16fd03000161bec2",
"priority":4,
"roles":[],
"setPercentage":false,
"setPrice":false,
"timeApplicableType":"Always",
"role":[],
"servingSizes":[],
"comboLength":1,
"comboUnique":0,
"freeItems":[],
"startTime":"",
"endTime":"",
"createdAt":2,
"createdFor":"5dd3d7ee0493b900013a15cc",
"ownedBy":"5dd3d7ee0493b900013a15ce"}' \
"https://api.lingaros.com/v1/lingapos/discount/{discount_id}" \

Getting item based discounts of a store.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/itemBasedDiscounts

curl -X GET -H "apikey: generated-api-key" \ 
"https://api.lingaros.com/v1/lingapos/store/{store-id}/itemBasedDiscounts"

queryParms

?page=1 => [paging no]
?search='' => [null]
?status=true => [active discount]
?status=false => [inactive discount]

Getting check based discounts of a store.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/checkBasedDiscounts

curl -X GET -H "apikey: generated-api-key" \ 
"https://api.lingaros.com/v1/lingapos/store/{store-id}/checkBasedDiscounts"

queryParms

?page=1 => [paging no]
?search='' => [null]
?status=true => [active discount]
?status=false => [inactive discount]

Getting open item discount of a store.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/openItemDiscount


queryParms

curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/openItemDiscount"
queryParms

?page=1 => [paging no]
?search='' => [null]
?status=true => [active discount]
?status=false => [inactive discount]

Getting open check discount of a store.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/openCheckDiscount

curl -X GET -H "apikey: generated-api-key" \ 
"https://api.lingaros.com/v1/lingapos/store/{store-id}/openCheckDiscount"

queryParms

?page=1 => [paging no]
?search='' => [null]
?status=true => [active discount]
?status=false => [inactive discount]

Getting mixed and matched discounts of a store.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/mixAndMatchDiscounts


queryParms

curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/mixAndMatchDiscounts"

?page=1 => [paging no]
?search='Some discount' => [String to be searched]
?status=true => [active discount]
?status=false => [inactive discount]

Getting active categories.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/activeCategories

curl -X GET -H "apikey: generated-api-key" \ 
"https://api.lingaros.com/v1/lingapos/store/{store-id}/activeCategories"

Getting active subcategories.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/activeSubCategories

curl -X GET -H "apikey: generated-api-key" \ 
"https://api.lingaros.com/v1/lingapos/store/{store-id}/activeSubCategories"

Getting active menu items.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/activeMenuItems

curl -X GET -H "apikey: generated-api-key" \ 
"https://api.lingaros.com/v1/lingapos/store/{store-id}/activeMenuItems"

Getting active roles.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/activeRoles

curl -X GET -H "apikey: generated-api-key" \ 
"https://api.lingaros.com/v1/lingapos/store/{store-id}/activeRoles"

Inactivating a discount.

URL:http://staging-linga.lingapos.com/discount/{discount-id}/inactivate

MethodTypeDescription
entityStringEntity to be inactivated.
idStringDiscount id.
curl -X PUT \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"entity":"discount",
"id":"5dd1ca2624f8e6000191fd63"
}' \
"https://api.lingaros.com/v1/lingapos/discount/{discount-id}/inactivate" \

Activating an inactive discount.

URL:http://staging-linga.lingapos.com/discount/{discount-id}/activate

MethodTypeDescription
entityStringEntity to be inactivated.
idStringDiscount id.
curl -X PUT \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"entity":"discount",
"id":"5dd1ca2624f8e6000191fd63"
}' \
"https://api.lingaros.com/v1/lingapos/discount/{discount-id}/activate" \

Publish a discount.

URL:http://api.lingaros.com/v1/lingapos/store/{store-id}/publish

curl -X PUT \ 
-H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/discount/store/{store-id}/publish" \