WinShopAPI docs
ReferencePromotionsTsg promotions

List TSG promotion headers

Returns the header rows of the TSG promotions — id and name only — for filling a picker without loading each promotion's full definition. Requires `Permissions.Promotions.View`.

GET
/api/promotions/tgs-promotions/il-info

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Response Body

application/json
  1. response
[index: integer]?
curl -X GET 'https://<your-instance>/api/promotions/tgs-promotions/il-info' \  -H 'Authorization: Bearer <access-token>'
[  {    "applyBiggerDiscountWithCustomerCard": true,    "barcode": "string",    "daysOfWeek": 0,    "deletedAt": "2019-08-24T14:15:22Z",    "description": "string",    "discountGroupId": 0,    "discountValidAlways": true,    "hours": 0,    "id": 0,    "isDeleted": true,    "isInactiveForEshop": true,    "isPrioritized": true,    "name": "string",    "onlyForCompanyTypeRetailCustomer": true,    "onlyForCompanyTypeWholeSaleCustomer": true,    "onlyForPos": true,    "onlyForRegisteredCustomers": true,    "soldAll": true,    "useWarehousePrice": true,    "validFrom": "2019-08-24T14:15:22Z",    "validTo": "2019-08-24T14:15:22Z"  }]