Tiny ERP icon

Tiny ERP

Interact with Tiny ERP API v3

Overview

This node integrates with the Tiny ERP API v3 to manage various business resources such as products, customers, orders, invoices, stock, contacts, and accounts. Specifically for the Customer - Delete operation, it allows users to delete a customer record from their Tiny ERP system by specifying the customer's ID.

This node is beneficial in scenarios where you want to automate the removal of customer data, for example:

  • Cleaning up outdated or duplicate customer records.
  • Integrating with other systems that require customer deletion synchronization.
  • Automating customer lifecycle management workflows.

Properties

Name Meaning
ID The unique identifier of the customer resource to delete. This is required to specify which customer should be removed.

Output

The output JSON contains the response from the Tiny ERP API after attempting to delete the specified customer. Typically, this will include confirmation of deletion or an error message if the operation failed.

The structure is generally:

{
  "json": {
    // API response fields confirming deletion or error details
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API authentication token configured via OAuth2 credentials to access the Tiny ERP API.
  • The node makes HTTP requests to https://erp.tiny.com.br/public-api/v3.
  • Proper configuration of the OAuth2 credential within n8n is necessary for successful API calls.

Troubleshooting

  • Common issues:

    • Invalid or missing customer ID: The node requires a valid customer ID; ensure the ID exists in Tiny ERP.
    • Authentication errors: Ensure the OAuth2 credentials are correctly set up and have not expired.
    • Network or API downtime: Temporary connectivity issues can cause request failures.
  • Error messages:

    • "Tiny ERP API request failed: <error message>" indicates an issue with the API call, such as invalid parameters or authentication failure.
    • "Unknown operation: delete" would indicate a misconfiguration of the operation parameter (unlikely here since it's predefined).
  • Resolutions:

    • Verify the customer ID is correct and exists.
    • Re-authenticate or update the OAuth2 credentials if expired.
    • Check network connectivity and Tiny ERP service status.

Links and References

Discussion