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
Products → Upsert
AI-generatedOverview
This node interacts with the Distru API to upsert (create or update) product records. It is useful in scenarios where you want to maintain product data in Distru, either by updating existing products using their ID or creating new products by specifying their name and other optional details. For example, you can automate product catalog updates or synchronize product information from another system into Distru.
Use Case Examples
- Create a new product by specifying its name, SKU, description, and pricing details.
- Update an existing product by providing its ID along with updated inventory tracking method or category ID.
Properties
| Name | Meaning |
|---|---|
| Additional Fields | Optional fields for the product. Include ID to update an existing product or Name to create a new product. |
Output
JSON
jsonid- The unique identifier of the upserted product.name- The name of the product.sku- The SKU of the product.description- The description of the product.inventory_tracking_method- The inventory tracking method used for the product.unit_price- The unit price of the product.unit_cost- The unit cost of the product.category_id- The category ID associated with the product.
Dependencies
- Distru Public API v1
- An API token credential for authentication
Troubleshooting
- Ensure the API token credential is set correctly; otherwise, the node will throw an error indicating the token is not set.
- If the operation is unsupported or misspelled, the node will throw an 'Unsupported operation' error.
- When updating a product, the 'Resource ID' (product ID) must be provided if required by the operation path; otherwise, an error will be thrown.
- If binary data is expected for other operations but missing, the node will throw an error indicating the missing binary property.
Links
- Distru Public API v1 Documentation - Official API documentation for Distru's public API version 1.