Vtex icon

Vtex

Vtex es una plataforma de Ecommerce, el cual usamos la API de Vtex para gestionar peticiones

Actions2

Overview

This n8n custom node integrates with the VTEX e-commerce platform, specifically enabling users to retrieve detailed information about a product by its ID. The "GET BY ID" operation for the "Product" resource allows workflows to fetch product details from VTEX, which is useful in scenarios such as inventory synchronization, product data enrichment, or automated reporting.

Practical examples:

  • Automatically fetching product details when a new order is received.
  • Enriching product data in another system (e.g., CRM) with up-to-date VTEX information.
  • Validating product existence or attributes before processing further workflow steps.

Properties

Name Type Meaning
ID Product String The unique identifier of the product to retrieve details for. This is required to perform the lookup in VTEX.

Output

The node outputs a json field containing the product details retrieved from VTEX. The exact structure depends on the VTEX API response for a product lookup by ID, but typically includes fields such as product name, SKU, price, description, and other relevant product attributes.

Note: The node does not output binary data.

Dependencies

  • External Service: Requires access to the VTEX API.
  • Credentials: Needs a configured vtexApi credential in n8n, including at least the domain (and likely authentication tokens or keys).
  • n8n Configuration: Ensure that the VTEX credentials are set up in your n8n instance under the name vtexApi.

Troubleshooting

Common Issues:

  • Invalid or missing product ID: If the "ID Product" property is empty or incorrect, the node will fail to retrieve product details.
  • Authentication errors: If the VTEX credentials are not correctly configured, you may receive authentication or authorization errors.
  • Network/API errors: Connectivity issues or changes in the VTEX API could result in failed requests.

Common Error Messages & Resolutions:

  • "Product not found": Verify that the provided product ID exists in your VTEX store.
  • "Unauthorized" or "Forbidden": Check your VTEX API credentials and permissions.
  • "Domain not specified": Ensure the domain field is present in your VTEX credentials configuration.

Links and References

Discussion