API Change Log - 19 August 2026

Inventory

  • API Endpoint: {api_url}/v1/inventory/return_orders
  • Scenario: Create a return order for a center (send received products back to a vendor)
  • API method: POST
  • Earlier behavior: NA
  • New behavior: Create a return order (a purchase order with IsReturn=1) in Created status. Accepts center_id, vendor_id, and line items with negative retail_quantity/consumable_quantity. Validates vendor–product association and center availability. No stock impact. RBAC: Inventory.Add.

Inventory

  • API Endpoint: {api_url}/v1/inventory/return_orders/return_order_id
  • Scenario: Retrieve the full details of a single return order — header fields, status, totals, timestamps, line items, and (for batch-tracked products, when batch tracking is enabled) batch details.
  • API method: GET
  • Earlier behavior: NA
  • New behavior: Create a return order (a purchase order with IsReturn=1) in Created status. Accepts center_id, vendor_id, and line items with negative retail_quantity/consumable_quantity. Validates vendor–product association and center availability. No stock impact. RBAC: Inventory.Add.

Inventory

  • API Endpoint: {api_url}/v1/inventory/return_orders/return_order_id
  • Scenario: Update a return order that is still in Created (draft) status — edit its line items, quantities, notes and fees before it is raised
  • API method: PUT
  • Earlier behavior: NA
  • New behavior: Edit line items, quantities, notes, and fees of a return order. Allowed only while in Created status; vendor/center cannot be changed. RBAC: Inventory.Add/Edit.

Inventory

  • API Endpoint: {api_url}/v1/inventory/return_orders/return_order_id
  • Scenario: Create purchase order for a center
  • API method: POST
  • Earlier behavior: NA
  • New behavior: Complete a raised return order (Raised → Delivered), decrementing center stock for the negative quantities. When EnableBatchTracking is on, requires/records batch details for batch-tracked products. Single completion — no partials. RBAC: Inventory.Add/Edit.