Skip to main content
All CollectionsProduct UpdatesSellTreez API
SellTreez API Product Update 58.1.1
SellTreez API Product Update 58.1.1
T
Written by Treez Admin
Updated over 8 months ago
HC-header (2).png

2/7/2024

Enhancements

External Invoice API

Added validations to POST/PUT/PATCH endpoints

  • Adding one or more invoice lines with the same external_batch_id will return the error 'Duplicate External Batch ID'.

  • Adding one or more invoice lines with the same Invoice Line ID will return the error 'Duplicate Invoice Line ID'.

  • Removing quantity on an invoice line will return the error "Quantity cannot be null'.

  • Removing or setting empty dispensary_license for cannabis items will return the error 'Dispensary license cannot be blank or empty'.

  • Changing the quantity on a cannabis item that does not match with the state tracking system's available quantity for that batchID will return the error 'Invoice Line with External Batch ID: {batchId}, has an incorrect Quantity. Expected quantity: {quantity}'.

  • Adding a batchID that is already associated with another draft or accepted invoice will return the error 'Could not find packages'.

Did this answer your question?