WinShopAPI docs
ReferencePromotionsOne time promotions

List one-time barcode discounts

Returns every one-time barcode discount 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
/api/promotions/one-time-barcode-activated

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/one-time-barcode-activated' \  -H 'Authorization: Bearer <access-token>'
[  {    "barcode": "string",    "createdAt": "2019-08-24T14:15:22Z",    "id": 0,    "isInvalid": true,    "lastModify": "2019-08-24T14:15:22Z",    "receiptDiscountAmount": 0,    "receiptDiscountCompanyId": 0,    "receiptDiscountLimit": 0,    "receiptDiscountMinimalAmount": 0,    "receiptDiscountPercent": 0,    "validFrom": "2019-08-24T14:15:22Z",    "validTo": "2019-08-24T14:15:22Z"  }]