API Documentation
- Introduction
- Authentication
- Customer API
- Product
- Pricing
- Inventory
- Order
Inventory
Retrieve Product Inventory
Retrieve product inventory from all available Partbot distributor locations.
GET
/
v1
/
inventory
Copy
curl --request GET \
--url https://api.partbot.io/v1/inventory \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
Copy
{
"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
}
]
}
}
]
}
Query Parameters
Response
200 - application/json
OK
The response is of type object
.
Copy
curl --request GET \
--url https://api.partbot.io/v1/inventory \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
Copy
{
"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
}
]
}
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.