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
Batches → Post
AI-generatedOverview
This node operation creates a new batch in the Distru system by sending a POST request to the /batches endpoint of the Distru Public API. It is useful for inventory and product management scenarios where users need to add batch details such as product ID, batch number, expiration date, manufactured datetime, owner ID, and description to track product batches effectively.
Use Case Examples
- Creating a new batch for a specific product with batch number and expiration date to manage inventory.
- Adding detailed batch information including manufactured datetime and owner ID for compliance and tracking purposes.
Properties
| Name | Meaning |
|---|---|
| Product ID | The unique identifier of the product for which the batch is being created. This is a required field. |
| Additional Fields | Optional additional batch details such as batch number, expiration date, manufactured datetime, owner ID, and description to provide more context about the batch. |
Output
JSON
data- The response data from the Distru API representing the created batch details or success confirmation.
Dependencies
- Requires an API token credential for authenticating requests to the Distru Public API.
Troubleshooting
- Ensure the API token is set correctly in the node credentials; otherwise, the node will throw an error indicating the token is missing.
- The 'Product ID' is required; missing this will cause the request to fail.
- If the API returns an error, check the additional fields for correct formatting, especially date and datetime fields in ISO 8601 format.