Distru icon

Distru

Interact with the Distru Public API v1

Actions35

Products → Upsert

AI-generated

Overview

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

  1. Create a new product by specifying its name, SKU, description, and pricing details.
  2. 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

  • json
    • id - 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

Discussion