ops
ops-discounts
Get a discount
Changed onShow discount info
get/ops/discount/{id}
Request
- Base URLhttps://api.topi-staging.eu
- URLhttps://api.topi-staging.eu/ops/discount/{id}
- AuthOAuth 2Authorization code: /oauth2/authorizeToken URL: /oauth2/token scopes: discount:read
Path parameters
idstring regexp required
discount ID
Example:739b63c2-9e58-4964-b38d-4ebb424de242
Response
OK response.
Example response
{
"allowed_usage_count": 1,
"code": "abc123",
"created_at": "1970-01-01T00:00:01Z",
"description": "abc123",
"disabled_at": "1970-01-01T00:00:01Z",
"id": "739b63c2-9e58-4964-b38d-4ebb424de242",
"minimum_merchandise_value": {
"amount": 34000,
"currency": "EUR"
},
"rules": {
"abc123": "abc123"
},
"seller_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
"type": "fixed_initial_rent_waiver",
"updated_at": "1970-01-01T00:00:01Z",
"usage_count": 1,
"valid_from": "1970-01-01T00:00:01Z",
"valid_until": "1970-01-01T00:00:01Z"
}Changes
- info
api operation id
discount.showDiscountremoved and replaced withdiscount#showDiscount
- info
- info
api operation id
discount#showDiscountremoved and replaced withdiscount.showDiscount - info
api tag
ops-discountsadded
- info