Get discount prices
Endpoint for fetching discount prices for given interval of time. This is a protected route, which means that authorization token with PUBLIC API full permissions is needed to access this route. Beside “Authorization” header, we must forward two more parameters –dateFrom and dateTo.
Request
Request:HTTP Method | GET | |||||||
URL | Stage | https://api.stage.ananastest.com/payment/api/v1/merchant-integration/discounts | ||||||
Production | https://api.ananas.rs/payment/api/v1/merchant-integration/discounts | |||||||
HTTP Headers |
| |||||||
URL Parameters |
|
Fields name | Type | Description |
discounts | UUID | ID of discount action |
merchantInventoryId | Long | Assigned merchant inventory ID |
discountPrice | BigDecimal | Discount Price |
dateFrom | LocalDateTime | Start date of discount |
dataTo | LocalDateTime | End date of discount |
Example of response:
[
{
"discountId": " fbdd6fd0-81cf-42da-958a-d3cff1860144",
"merchantInventoryId": 1770369,
"discountPrice": 3000,
"dateFrom": "2022-01-26T00:00:00",
"dateTo": "2022-01-28T00:00:00"
}
]