Inventory transactions provide information about balance changes in inventories. They allow you to send information when new items have been purchased for inventory, or when existing products have been removed from inventory as waste.
Inventory transactions are not used to update inventory saldo values. For that you should use Inventory snapshots.
POST https://api.zoined.com/inventoryTransactions?dryRun=false&separator=%3B&encoding=utf-8
Movement type
| Enum Value | Description |
|---|---|
| purchase | Products have been purchased to inventory |
| waste | Products have been removed from inventory as waste |
| transfer | Products have been transferred to another inventory location |
| stock_take | Stock take has been done to correct inventory counts |
| adjustment | Adjustments have been done to individual products to correct inventory counts |
| sale | Products have been sold from inventory |
| internal | Products have been used internally from inventory |
Movement status. 1=Open, 2=Complete, 3=Complete with variances, 4=Cancelled
Optional identifier for batch this movement row is part of.
Optional line id within the batch this movement row is part of.
Organisation / Store ID for target of inventory transfer. Mandatory for type transfer.
Currency for the purchase price as ISO 4217 currency code. Required if multiple currencies are used.
Order id for purchase order this purchase movement originates from.
Order line item id in purchase order this purchase movement line item originates from.
- Mock serverhttps://zapi-api.zoined.com/_mock/inventoryTransactions
- https://api.zoined.comhttps://api.zoined.com/inventoryTransactions
curl -i -X POST \
'https://zapi-api.zoined.com/_mock/inventoryTransactions?dryRun=false&separator=%3B&encoding=utf-8' \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"organisation_id": "540",
"department_id": "54011",
"salesperson_id": "5401",
"operator_id": "5402",
"movement_date": "2016-02-01",
"movement_time": "15:00:00",
"delivered_date": "2016-02-02",
"delivered_time": "15:00:00",
"product_id": "123",
"supplier_id": "221",
"parent_product_id": "123",
"quantity": 100,
"delivered_quantity": 90,
"expected_quantity": 110,
"movement_type": "waste",
"movement_status": 2,
"movement_batch_id": "june-stock-take",
"movement_batch_line_id": "1",
"unit_purchase_price": 12.4,
"unit_purchase_price_wo_vat": 10,
"unit_retail_price": 12.4,
"unit_retail_price_wo_vat": 10,
"reason_code": "Theft",
"target_organisation_id": "510",
"currency": "EUR",
"purchase_order_id": "1234",
"purchase_order_line_id": "1",
"custom_field_1": "EU only",
"custom_field_2": "EU only",
"custom_field_3": "EU only",
"custom_field_4": "EU only",
"custom_field_5": "EU only",
"custom_field_6": "EU only",
"custom_field_7": "EU only",
"custom_field_8": "EU only",
"custom_field_9": "EU only",
"custom_field_10": "EU only",
"custom_metric_1": 1,
"custom_metric_2": 100,
"custom_metric_3": 2.2,
"custom_metric_4": 1.05,
"custom_metric_5": 10000,
"source_system": "ABCDEF"
}'{ "status": "OK", "msg": "1 entity added" }