Create a one-time barcode discount
Creates a one-time barcode discount and returns the stored row. Requires `Permissions.Promotions.Create`.
POST
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- body
barcode?stringLength
length <= 50createdAt?|Format
date-timeid?integerFormat
int32isInvalid?booleanlastModify?|Format
date-timereceiptDiscountAmount?|Format
decimalreceiptDiscountCompanyId?|Format
int32receiptDiscountLimit?|Format
decimalreceiptDiscountMinimalAmount?|Format
decimalreceiptDiscountPercent?|Format
decimalvalidFrom?|Format
date-timevalidTo?|Format
date-timeapplication/json- response
barcode?stringLength
length <= 50createdAt?|Format
date-timeid?integerFormat
int32isInvalid?booleanlastModify?|Format
date-timereceiptDiscountAmount?|Format
decimalreceiptDiscountCompanyId?|Format
int32receiptDiscountLimit?|Format
decimalreceiptDiscountMinimalAmount?|Format
decimalreceiptDiscountPercent?|Format
decimalvalidFrom?|Format
date-timevalidTo?|Format
date-timecurl -X POST 'https://<your-instance>/api/promotions/one-time-barcode-activated' \ -H 'Authorization: Bearer <access-token>' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}List one-time barcode discounts GET
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 a one-time barcode discount GET
Returns one one-time barcode discount by `id`. Requires `Permissions.Promotions.View`.