Skip to main content

Promotion

This service checks if a promotion barcode is valid, what is its main dicout item and for which items it applies

Documentation checkPromotion.php

GET /checkPromotion.php

Url with params /checkPromotion.php?user=user&password=password&barcode=447978979798

  • body: none
  • query:
    • user: string
    • password: string
    • barcode: string
  • response:
    • data: if success is true, returns if the day is a holiday, with some information. Precisely these values:
      • mainItem: the ItemNr of the main item number, which contain the promotion reduction/discount
      • promotionItems: a list (array) of all the items which are valid for the promotion. If one of more of these items
Promotion response
{
"success": true,
"status": 0,
"data":
{
"mainItem": "35651",
"promotionItems":
[
"35508",
"35509",
"35510"
]
}
}