Release notes v2.10.6 | December 17, 2020

Updates for the Customer, Product, and Ticket API

Product API

The Product API will now have a new field named Above_Threshold whose value will be evaluated as either true or false based on the thresholds set by retailers in their eCommerce configurations(see below). At the end of Q1 next year, sellable_quantity and sellable_quantily_details will be deprecated in favor of the Above_Threshold field. As soon as possible, partners should start transitioning to using the Above_Threshold field to track if a product is available for sale. 

The value of the Above_Threshold field is determined by whether or not the amount of units available for sale is greater than or less than the minimum_visible_inventory_level listed for that product type. Minimum_Visible_Inventory_Level can be set by navigating to Configuration > Config Page > eCommerce > Menu Display Quantity Threshold, and can be applied globally or by product type.

Product API

When products are created with the Create Product endpoint, the new product will default the value of the hide_from_menu field to False. Previously, this field was set to True whenever a product was created through the API.

Ticket API

Partners now have the ability to to search up to 50 tickets using the GET/ Ticket by ID endpoint. You can achieve this by formatting the ticket API like this:

https://api.treez.io/v2.0/dispensary/partnersandbox2/ticket/506ea887-f7d4-4a17-b096-7ac78d708984&id=d3d93904-466c-4c39-8c49-82c0fb218df6&id=...

Customer API

Treez will now automatically remove any leading or trailing spaces that are included in the email field. This will prevent partners from experiencing an ‘Invalid Email’ error when an extra space is included in the customer’s email.