GET
/
v1
/
retailers
/
{retailer_id}
/
inventory
curl --request GET \
  --url https://marketplace-api.fabric.inc/v1/retailers/{retailer_id}/inventory/ \
  --header 'Authorization: Bearer <token>'
{
  "count": 2231,
  "next": "https://api.example.org/demo/accounts/?page=2",
  "previous": "https://api.example.org/demo/accounts/?page=1",
  "results": [
    {
      "id": 9876,
      "updated_at": "2024-04-18T14:22:00Z",
      "inventory": 50,
      "event": "restock",
      "location": "Main Warehouse",
      "user": "admin@example.com"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

retailer_id
integer
required

The unique retailer ID. In the Dropship UI this is called the Merchant ID. To find your Merchant ID, click your merchant name in the top nav.

Example:

1001

Response

200 - application/json
OK
count
integer
required

Total number of records

Example:

2231

results
object[]
required
next
string | null

Next page (applicable in a paginated response)

Example:

"https://api.example.org/demo/accounts/?page=2"

previous
string | null

Previous page (applicable in a paginated response)

Example:

"https://api.example.org/demo/accounts/?page=1"