Get discount by id
GET/v2/discounts/:id
Get discount by id
Request
Path Parameters
id stringrequired
Discount id
Header Parameters
tenant stringrequired
Tenant identifier
Responses
- 200
- 400
- 403
- 404
- 500
Get discount by id
- application/json
- Schema
- Example (from schema)
Schema
id stringrequired
Primary identifier
createdAt date-timerequired
Creation date
lastModifiedAt date-timerequired
Last modified date
validFrom date-time
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string
validTo date-time
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string
{
"id": 1234,
"createdAt": "2022-01-01T00:00:00.000Z",
"lastModifiedAt": "2022-01-02T00:00:00.000Z",
"validFrom": "2022-01-01T00:00:00.000Z",
"validTo": "2022-01-31T00:00:00.000Z"
}
Bad request
Forbidden.
Discount not found
Get discount error
Loading...