Moloni.pt API icon

Moloni.pt API

Custom adapter for Moloni.pt

Overview

The node provides integration with the Moloni.pt API, specifically for managing products within a company account. The "Update Product" operation allows users to modify existing product details by sending updated data to the Moloni.pt service. This is useful in scenarios where product information such as pricing, description, or stock levels need to be kept current and synchronized between Moloni.pt and other systems.

Practical examples include:

  • Automatically updating product prices based on market changes.
  • Synchronizing inventory quantities after sales or restocking.
  • Modifying product descriptions or categories in bulk from an external database.

Properties

Name Meaning
Company ID Numeric identifier of the company in Moloni.pt under which the product exists. Required for all product-related operations including update.

Note: The provided properties JSON only includes "Company ID" relevant to the update operation. Other product fields (like product identifiers or attributes) are defined elsewhere but not included here.

Output

The node outputs JSON data representing the response from the Moloni.pt API after attempting to update a product. This typically includes confirmation of the update, the updated product details, or error messages if the update failed.

If the API supports binary data output (e.g., product images), it would be handled separately, but this is not indicated in the provided code snippet.

Dependencies

  • Requires an active connection to the Moloni.pt API.
  • Needs an OAuth2 API credential configured in n8n for authentication.
  • The base URL for API requests is https://api.moloni.pt/v1/.
  • The node sends POST requests to the endpoint products/update for updating products.

Troubleshooting

  • Common issues:

    • Missing or incorrect Company ID can cause authorization or resource not found errors.
    • Invalid or expired OAuth2 credentials will result in authentication failures.
    • Sending incomplete or malformed product data may lead to validation errors from the API.
  • Error messages:

    • Authentication errors: Check that the OAuth2 token is valid and properly configured.
    • Validation errors: Ensure all required product fields are correctly set before update.
    • Network errors: Verify internet connectivity and API availability.

Links and References

Discussion