Actions28
- Product Actions
- Product Stock Actions
Overview
This node integrates with the Tiny ERP API to manage products within an ERP system. Specifically, the Product - Create operation allows users to create new product entries by sending detailed product information to the Tiny ERP backend.
Typical use cases include:
- Automating product catalog creation from external data sources.
- Integrating e-commerce platforms or inventory systems with Tiny ERP.
- Streamlining product onboarding workflows by programmatically adding products.
For example, a user can provide product details such as description, SKU, GTIN barcode, and type, and the node will create the product in Tiny ERP, returning the created product's data.
Properties
| Name | Meaning |
|---|---|
| Product Data | Collection of fields describing the product to create: |
| Complementary Description | Additional descriptive text about the product. |
| Description | Main product description. |
| GTIN | Global Trade Item Number barcode for the product. |
| NCM | NCM classification code (tax classification). |
| Observations | Any additional observations or notes about the product. |
| Origin | Numeric code indicating the product origin. |
| SKU | Stock Keeping Unit identifier. |
| Type | Product type, selectable from: Kit, Manufactured Product, Product with Variations, Raw Material, Simple Product. Default is Simple Product. |
| Unit | Unit of measurement for the product (e.g., pcs, kg). |
| Warranty | Warranty information related to the product. |
Output
The output JSON contains the response from the Tiny ERP API after creating the product. This typically includes all details of the newly created product, such as its assigned ID and any other metadata returned by the API.
Example output structure (simplified):
{
"id": 123,
"descricao": "Sample Product",
"sku": "SP-001",
"gtin": "1234567890123",
"tipo": "S",
...
}
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Tiny ERP API.
- Needs an API authentication token configured via OAuth2 credentials in n8n.
- The node uses the
tinyErpApiRequesthelper function to make HTTP requests to the Tiny ERP endpoints.
Troubleshooting
Error: The operation "create" is not supported!
This error indicates that the operation parameter was set incorrectly or the resource-operation combination is invalid. Verify that the resource is set to "product" and operation to "create".API Authentication Errors
If the node fails due to authentication issues, ensure that the OAuth2 credentials are correctly configured and have valid access tokens.Invalid Product Data
If the API returns validation errors, check that required fields like description and SKU are provided and formatted correctly.Network or Timeout Issues
Ensure that the Tiny ERP API endpoint is reachable from your environment and that there are no firewall restrictions.
Links and References
- Tiny ERP API Documentation (general reference for API endpoints and data formats)
- n8n OAuth2 Credential Setup (for configuring API authentication)
This summary focuses on the Product - Create operation of the Tiny ERP node based on the provided source code and input properties.