Questions regarding product groups, subgroups and images.
1) Is there a way we can pull products based on groups or subgroups?
What we are trying to do is create a daily pull job of our inventory from EZ Office and update our ecommerce platform thats built on Ruby on Rails.
The idea is that if EZ Office has all the data entered properly when products arrive to our location and are added into our inventory software (EZ Office). The daily job can import the data and create the products on our platform ready for sale.
What we have noticed is that when all items / inventory is retrieved we get an array of items that look like what we have showing below.
Sample Call: https://<SUBDOMAIN>.ezofficeinventory.com/inventory.api
{
"name" => "Air Jordan 14 Retro",
"description" => "Black/Vibrant Yellow-White”,
"price" => "170.0”,
"identifier" => "887223999515”,
"created_at" => "2014-08-15 11:37:41”,
"updated_at" => "2014-08-29 22:58:49”,
"checkin_due_on" => nil,
"audit_pending" => false,
"sequence_num" => 20,
"product_model_number" => "487471 070”,
"documents_count" => 1,
"services_count" => 0,
"comments_count" => 0,
"state" => nil,
"purchased_on" => nil,
"retired_on" => nil,
"net_quantity" => 2,
"pending_verification" => false,
"salvage_value" => "0.0”,
"package_id" => nil,
"checkout_on" => nil,
"inventory_threshold" => 0,
"retire_reason" => nil,
"retire_comments" => nil,
"sub_group_id" => nil,
"location_based_threshold" => 0,
"arbitration" => 2,
"rent_collected" => "0.0",
"tax_free" => false,
"asset_type" => “VolatileAsset"
}
However when we pull just the one particular item from inventory by retrieving its details, we can get the custom attributes but no group.
Sample Call: https://<SUBDOMAIN>.ezofficeinventory.com/inventory/<ASSET#>.api
{
"asset" => {
"name" => "Air Jordan 6 Retro",
"description" => nil,
"price" => "500.0",
"identifier" => "887231235445",
"created_at" => "2014-08-13 14:22:01",
"updated_at" => "2014-09-02 15:51:00",
"checkin_due_on" => nil,
"audit_pending" => false,
"sequence_num" => 1,
"product_model_number" => "384664350",
"documents_count" => 1,
"services_count" => 0,
"comments_count" => 0,
"state" => nil,
"purchased_on" => nil,
"retired_on" => nil,
"net_quantity" => 2,
"pending_verification" => false,
"salvage_value" => "0.0",
"package_id" => nil,
"checkout_on" => nil,
"inventory_threshold" => 0,
"retire_reason" => nil,
"retire_comments" => nil,
"sub_group_id" => 1685,
"location_based_threshold" => 0,
"arbitration" => 2,
"rent_collected" => "0.0",
"tax_free" => false,
"asset_type" => "VolatileAsset",
"Category" => {},
"Size" => "11",
"color" => {}
}
}
2) Is there a way to pull all Asset Documents like images on a particular product?
We would like to have the rough image pulled for easy distinction between products.