ops
ops-discounts
Create a discount
Changed onCreate a discount
post/ops/discount
Request
- Base URLhttps://api.topi-staging.eu
- URLhttps://api.topi-staging.eu/ops/discount
- AuthOAuth 2Authorization code: /oauth2/authorizeToken URL: /oauth2/token scopes: discount:edit
Request body
Example request
{
"allowed_usage_count": 1,
"code": "abc123",
"description": "abc123",
"minimum_merchandise_value": {
"amount": 34000,
"currency": "EUR"
},
"rules": {
"abc123": "abc123"
},
"seller_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
"type": "fixed_initial_rent_waiver",
"valid_from": "1970-01-01T00:00:01Z",
"valid_until": "1970-01-01T00:00:01Z"
}Response
OK response.
Changes
- info
api operation id
discount.createDiscountremoved and replaced withdiscount#createDiscount
- info
- info
api operation id
discount#createDiscountremoved and replaced withdiscount.createDiscount - info
api tag
ops-discountsadded
- info