Actions35
- Adjustments Actions
- Assemblies Actions
- Batches Actions
- Companies Actions
- Contacts Actions
- Custom Fields Actions
- File Attachments Actions
- Inventory Actions
- Invoices Actions
- Locations Actions
- Orders Actions
- Packages Actions
- Payment Methods Actions
- Product POS Mappings Actions
- Products Actions
- Purchases Actions
- Strains Actions
- Test Results Actions
- Users Actions
Adjustments → Post
AI-generatedOverview
This node operation posts a stock adjustment to the Distru API. It is used to record inventory adjustments such as waste, theft, or damage for products, batches, or packages. This is useful in inventory management scenarios where accurate tracking of stock changes is required, for example, when a product is damaged and needs to be accounted for in the system.
Use Case Examples
- Recording a waste adjustment for a product with a specified quantity and reason.
- Posting an adjustment for a batch-tracked product with batch ID and compliance quantity.
- Logging an adjustment for a package-tracked product with package ID and compliance quantity.
Properties
| Name | Meaning |
|---|---|
| Product ID | The ID of the product to adjust (required if batch_id and package_id are not provided). |
| Batch ID | The ID of the batch for batch-tracked products. |
| Package ID | The ID of the package for package-tracked products. |
| Completion Datetime | The ISO 8601 datetime when the adjustment was completed (required). |
| Reason | The reason for the adjustment, e.g., Waste, Theft, Damaged (required). |
| Location ID | The location ID, required for non-compliance adjustments. |
| Quantity | The adjustment quantity, required for non-package tracked products and cannot be set for package-tracked products. |
| Compliance Quantity | The quantity in compliance unit type, required for package-tracked products. |
| Additional Fields | Optional additional fields such as description, owner ID, total cost, and unit type for the adjustment. |
Output
JSON
product_id- The product ID involved in the adjustment.batch_id- The batch ID if applicable.package_id- The package ID if applicable.completion_datetime- The datetime when the adjustment was completed.reason- The reason for the adjustment.location_id- The location ID for non-compliance adjustments.quantity- The quantity adjusted for non-package tracked products.compliance_quantity- The quantity adjusted for package-tracked products in compliance units.description- Additional description of the adjustment.owner_id- Owner user ID associated with the adjustment.total_cost- Total cost associated with the adjustment.unit_type- Unit type used for the adjustment.
Dependencies
- Distru Public API v1
- API token credential
Troubleshooting
- Ensure the API token credential is set correctly; missing token will cause authentication errors.
- Provide required fields such as completion_datetime and reason to avoid validation errors.
- If using batch_id or package_id, product_id can be omitted but one of these identifiers must be provided.
- For package-tracked products, quantity should not be set; use compliance_quantity instead.
- Check that the resource ID (if required) is provided when the operation demands it.
Links
- Distru API Stock Adjustments - Official API documentation for stock adjustments in Distru.