List item promotions
Returns every item promotion defined on this instance. Promotions are configured in Winshop and applied automatically when a price is resolved; these endpoints read that configuration. Requires `Permissions.Promotions.View`.
GET
Bearerheader
AuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
application/json- response
[index: integer]?curl -X GET 'https://<your-instance>/api/promotions/item-promotions' \ -H 'Authorization: Bearer <access-token>'[ { "applyBiggerDiscountWithCustomerCard": true, "barcode": "string", "createdAt": "2019-08-24T14:15:22Z", "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, "promotionTypeId": 0, "soldAll": true, "useWarehousePrice": true, "validFrom": "2019-08-24T14:15:22Z", "validTo": "2019-08-24T14:15:22Z", "filters": [ { "discountAmount": 0, "discountPercent": 0, "id": 0, "price": 0, "priceWoVat": 0, "productId": 0, "promotionId": 0 } ], "warehouses": [ { "id": 0, "promotionId": 0, "warehouseId": 0 } ] }]