Overview
The Inventory API allows you to manage product stock levels across multiple workspaces, perform stock transfers, record adjustments, and track stock movements.Inventory operations are workspace-specific. Stock levels are tracked separately for each workspace (location).
Stock Movement Object
Unique identifier for the stock movement
Product ID
Movement type:
sale, purchase, transfer_out, transfer_in, adjustment, initial_stockQuantity moved (negative for outgoing, positive for incoming)
Source workspace (for transfers and sales)
Destination workspace (for transfers and purchases)
Reference number or description
Additional notes
Associated invoice (for sales)
User who created the movement
Creation timestamp
List Stock Transfers
Retrieve a list of stock transfers for the current workspace.Query Parameters
Page number for pagination
Number of items per page
Filter by product ID
Filter by transfer type:
transfer_out, transfer_inSort field
Response
Example
Get Stock Transfer
Retrieve details of a specific stock transfer.Path Parameters
Stock movement ID
Response
Create Stock Transfer
Transfer stock from the current workspace to another workspace.Request Body
Product ID to transfer
Destination workspace ID
Quantity to transfer (must be positive)
Reference number or code
Additional notes about the transfer
Response
Example
List Inventory Adjustments
Retrieve a list of inventory adjustments (manual stock corrections).Response
Similar structure to stock transfers, with typeadjustment.
Create Inventory Adjustment
Create a manual inventory adjustment to correct stock levels.Request Body
Array of products to adjust
Product ID
Adjustment quantity (positive to increase, negative to decrease)
Reason for adjustment:
damaged, lost, found, recount, otherAdditional notes
Reference number
Response
Example
Inventory adjustments create stock movements with type
adjustment and update the product’s stock level in the current workspace.Set Initial Stock
Set initial stock levels when first setting up inventory tracking for existing products.Request Body
Array of products with initial stock
Product ID
Initial quantity
Cost per unit (optional)
Response
Get Product Stock by Workspace
Get stock levels for a specific product across all workspaces.Path Parameters
Product ID
Response
Low Stock Alerts
Get products with stock below minimum quantity threshold.Query Parameters
Filter by specific workspace (defaults to current workspace)
Response
Stock Movements Report
Get detailed stock movements for auditing and reporting.Query Parameters
Filter by product
Filter by workspace
Filter by movement type
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Response
Related Resources
Products
Manage product catalog
Workspaces
Manage workspace locations
Invoices
Stock is reduced when invoices are created