Availability V1

Get quantities from a partner (up to 200 per request)

Changed on

Retrieve available quantities sorted by sku name in ascending.The maximum number of returned quantities is limited to 200.

get/v1/availability/quantities

Request

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

Query parameters

limitinteger

The maximum number of available quantities to be returned in each response.

pageinteger

Page number (0..N)

cursorstring
Example:c2t1NDM=

Cursor for paging requests. If a cursor is provided, the only other request parameter being considered is 'limit'. The cursor value is the last evaluted sku in the request response (Needs to be a valid sku value)

Headers

Authorizationstring required

Access Token

Response

Ok

Example response

{
  "resources": {
    "variations": [
      {
        "lastModified": "2024-07-18T07:20:06.260124Z",
        "quantity": "123",
        "sku": "MOCK-CABINET-1",
        "links": [
          {
            "rel": "self",
            "href": "/v1/availability/quantities/MOCK-CABINET-1"
          }
        ]
      },
      {
        "lastModified": "2024-06-03T10:30:13.972203Z",
        "quantity": "123",
        "sku": "SANDWICH-1",
        "links": [
          {
            "rel": "self",
            "href": "/v1/availability/quantities/SANDWICH-1"
          }
        ]
      }
    ]
  },
  "links": [
    {
      "rel": "next",
      "href": "/v1/availability/quantities?cursor=SANDWICH-1"
    }
  ]
}

Changes

    • warning

      added the new prev enum value to the // response property for the response status

    • warning

      added the new prev enum value to the ///// response property for the response status

    • warning

      added the new self enum value to the // response property for the response status

    • warning

      added the new self enum value to the ///// response property for the response status