Release Notes v2.9.2.2 | April 1st, 2020
Ticket API
The Ticket API now allows Partners to create tickets with the Inventory ID of a product, the location a product is in, or the inventory type for a product. As a partner you can use these filters independently of each other or all at once while building a ticket. In addition, we’ve added 3 new fields: Inventory_ID, Batch_ID, and Inventory_location to the Ticket API, making it easier than ever to select exactly what you’re selling and from where.
Product API
-
There are two new filters in the Product API that will allow your integration to filter sellable inventory by location and inventory type. The two new values in the Product API are sellable_quantity_in_location and sellable_quantity_in_type. These filters will reduce the total available quantity that’s displayed for each product as only inventory within the selected location(s) and inventory type will be returned. The accepted values for sellable_quantity_in_location are any locations previously created in Treez e.g. Front of House, Back of House, or Car1. The accepted values for sellable_quantity_in_type are ADULT and MEDICAL.
-
The Product API & Webhook now returns more granular data on inventory in Treez. When inventory has units available for sale the Product API will distinguish between where the inventory is located and the inventory type. For example, let's say we have 20 units available for sale in the Front of House and 10 of those units are for ADULT customers and 10 for MEDICAL Customers. The Product API & Webhook will now list that inventory separately from each other specifying what the inventory type is and where it is located in Treez.
-
The Product API now allows partners to choose up to 50 product IDs in the API endpoint, allowing you to pull up information on multiple products with one GET command. Here’s a sample of the new request format:
https://api.treez.io/v2.0/dispensary/partnersandbox2/product/product_list?category_type=FLOWER&page=1&pagesize=25&id=aa12425b-4716-433c-a018-8e5e9f605928&id=2ce16abd-3115-4cb5-8315-6506a77a9482