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 MethodGET
URLStagehttps://api.stage.ananastest.com/payment/api/v1/merchant-integration/discounts
Productionhttps://api.ananas.rs/payment/api/v1/merchant-integration/discounts
HTTP Headers
Header nameHeader value
AuthorizationBearer {access_token}
URL Parameters
Parameter nameParameter description
dateFromStart date od interval
dateToEnd date od interval
Response Body:
Fields nameTypeDescription
discountsUUIDID of discount action
merchantInventoryIdLongAssigned merchant inventory ID
discountPriceBigDecimalDiscount Price
dateFromLocalDateTimeStart date of discount
dataToLocalDateTimeEnd date of discount

Example of response:

Click to copy
Success!
[
  {
    "discountId": " fbdd6fd0-81cf-42da-958a-d3cff1860144",
    "merchantInventoryId": 1770369,
    "discountPrice": 3000,
    "dateFrom": "2022-01-26T00:00:00",
    "dateTo": "2022-01-28T00:00:00"
  }
]
Copyright © Ananas 2023. All right reserved.