Actions4
- Product Actions
- Invoice Receipt Actions
Overview
This node integrates with the Moloni.pt API to retrieve product information based on a product reference. Specifically, the "Get by Reference" operation allows users to fetch details of a product by providing its unique reference code within a specified company context.
Common scenarios for this node include:
- Automatically retrieving product details in workflows where only the product reference is known.
- Synchronizing product data from Moloni.pt into other systems by fetching product info dynamically.
- Validating product existence or fetching product metadata before processing orders or inventory updates.
For example, an e-commerce automation could use this node to get product details by SKU (reference) before updating stock levels or pricing.
Properties
| Name | Meaning |
|---|---|
| Company ID | Numeric identifier of the company in Moloni.pt under which the product exists. Required. |
| Reference | The product's unique reference string used to identify it. Required. |
| Exact | Numeric flag indicating whether to perform an exact match (1) or partial match (0). |
| Quantity | Optional number specifying quantity related to the product query (usage depends on API). |
| Offset | Optional number for pagination offset when retrieving multiple results. |
Output
The node outputs JSON data representing the product(s) retrieved from Moloni.pt matching the given reference. This typically includes detailed product fields such as name, description, price, stock levels, and other metadata as defined by the Moloni.pt API response.
No binary data output is indicated for this operation.
Dependencies
- Requires an active connection to the Moloni.pt API.
- Needs an API authentication token configured via OAuth2 credentials in n8n.
- Network access to
https://api.moloni.pt/v1/must be available.
Troubleshooting
- Missing or invalid Company ID: Ensure the correct numeric company ID is provided; otherwise, the API will reject the request.
- Reference not found: If no product matches the given reference, the node may return empty results or an error. Verify the reference string is accurate.
- Authentication errors: Check that the OAuth2 credentials are valid and have not expired.
- API rate limits or connectivity issues: Network problems or hitting API limits can cause failures; retry or check API usage quotas.
- Exact match flag misuse: Setting the exact flag incorrectly might lead to unexpected results; use 1 for exact matches and 0 for partial matches.
Links and References
- Moloni.pt API Documentation
- Moloni.pt Product API Endpoint (for detailed request/response schema)