GET
/
v1
/
inventory
curl --request GET \
  --url https://api.partbot.io/v1/inventory \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "product": {
    "id": "3981665786434",
    "sku": "ACMETNT",
    "barcode": "9326564013746"
  },
  "distributors": [
    {
      "distributor": {
        "name": "Acme, Inc.",
        "locations": [
          {
            "location_id": "LOC1",
            "formatted_address": "123 Fake Street, Brisbane, QLD 4000, AU",
            "quantity": 52
          },
          {
            "location_id": "LOC2",
            "formatted_address": "246 Imaginary Lane, Melbourne, VIC 3000, AU, AU",
            "quantity": 129
          },
          {
            "location_id": "LOC3",
            "formatted_address": "888 Fugazi Road, Sydney, NSW 2000, AU",
            "quantity": 0
          }
        ]
      }
    }
  ]
}

Headers

Authorization
string
required
Content-Type
string
default:application/json
required

Query Parameters

productId
string
required

Response

200 - application/json
OK

The response is of type object.