Price Reductions V1

Get all priceReductions

This API can be used to fetch the price reduction for a single positionItemId by providing positionId as a query parameter in the request. If the positionItemId is not specified, then this api would list the price reductions for all your products.

get/v1/price-reductions

Request

  • Base URL
    https://api.otto.market
  • Auth
    HTTP bearer

Query parameters

positionItemIdstring uuid

positionItemId for which price reductions are to be fetched

pageinteger

Page number to be fetched. Page number should not be less than 1

limitinteger

Number of positionItemIds to be fetched per page. Limit should not exceed 128

Response

Successfully retrieved price reductions

Example response

{
  "results": [
    {
      "totalPriceReduction": {
        "amount": 121.01,
        "currency": "EUR"
      },
      "invoicePrice": {
        "amount": 121.01,
        "currency": "EUR"
      },
      "priceReductions": [
        {
          "priceReduction": {
            "amount": 121.01,
            "currency": "EUR"
          }
        }
      ]
    }
  ],
  "links": [
    {
      "href": "/v1/price-reductions?limit=1&page=2",
      "rel": "next"
    }
  ]
}

Changes

No recorded changes to this operation across all 12 revisions of this API.