Methods for getting Product data.
GET
/v1/store/api/products/
GET
/v1/store/api/products/ecom/
GET
/v1/store/api/products/{prod_id}/
Method that provides Inventory counts for ecom products.
GET
/v1/store/api/products/inventory/
List products
GET
/v1/store/api/products/
$.get('/v1/store/api/products/');
$.get('https://api.cratejoy.com/v1/customers/',{
"address.city": "Austin",
"_md.shoe.size__gt": 10
});
{
count: 1,
next: "?page=1",
prev: null,
results: [
{
id: 70990774,
name: "Spud of the Month Club",
description: "The best potatoes in the world. To your door. Every month.",
slug: "spud-of-the-month",
visible: true,
deleted: false,
url: "/v1/store/api/products/70990774/",
...
}
]
}
Get a product
GET
/v1/store/api/products
$.get('/v1/store/api/products/70990774');
List inventory levels
GET
/v1/store/api/products/inventory/
$.get('/v1/store/api/products/inventory/');
{
count: 1,
next: "?page=1",
prev: null,
results: [
{
product_id: 9853,
product_instance_id: 9854,
on-hand: 16
}
]
}