PetSmart
PetSmart Store Stock API
Stock of up to 20 SKUs at one PetSmart store in one call: units available for in-store pickup at that store, units available to ship to home, and a nearby alternate store with its count when the store has none. Includes the store's name, address, phone, page URL and pickup options. Costs 1 credit per request.
POST/api/v1/petsmart/store-stock
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonstore_idstringrequiredPetSmart store number. Find store numbers with /api/v1/petsmart/stores.
Example: 1658
skusstring[]required1-20 SKUs, e.g. every variant of a product: the sku of a search result or a product's variants[].sku. Duplicates are dropped.
Example: ["5252900", "5379763", "5135727"]
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.petsmart.store_stock(store_id="1658", skus=["5252900", "5379763", "5135727"])["data"]
print(res["store"]["name"], res["in_stock_count"], "of", res["count"], "in stock")
for i in res["items"]:
print(i["sku"], "store:", i["store_quantity"], "ship:", i["ship_to_home_quantity"])Response
"store_id": "1658",
"count": 5,
"in_stock_count": 5,
},
"response_time": 3927
}