Get All Inventory

Get Stock for All Products

GET https://api.moltin.com/v2/inventories

Query Parameters

NameTypeDescription

page[limit]

string

The number of items to return per page

page[offset]

string

The number of pages to offset the results by

Headers

NameTypeDescription

Authorization

string

The Bearer token to grant access to the API

{
  "data": [
    {
      "id": "95ff4acc-9d8e-4a8e-be3a-61b174b20c2b",
      "type": "stock",
      "total": 100,
      "available": 100,
      "allocated": 0
    },
    {
      "id": "db33dc42-6a08-4929-8e85-8e1ea619c832",
      "type": "stock",
      "total": 100,
      "available": 100,
      "allocated": 0
    },
    {
      "id": "721fcb79-37d9-4328-b69d-bab7b73d7770",
      "type": "stock",
      "total": 100,
      "available": 100,
      "allocated": 0
    }
  ],
  "links": {
    "current":
      "https://api.moltin.com/v2/inventories?page[offset]=0&page[limit]=50",
    "first":
      "https://api.moltin.com/v2/inventories?page[offset]=0&page[limit]=50",
    "last":
      "https://api.moltin.com/v2/inventories?page[offset]=0&page[limit]=50"
  },
  "meta": {
    "results": {
      "total": 3,
      "all": 3
    },
    "page": {
      "limit": 100,
      "offset": 0,
      "current": 1,
      "total": 1
    }
  }
}

You can use pagination with this resource. See: Settings for details.

curl -X GET https://api.moltin.com/v2/inventories \
     -H "Authorization: Bearer XXXX"

Last updated