n8n custom node for Tiny ERP integration with OAuth2 authentication
npm install n8n-nodes-tiny--erp-auth2An n8n custom node for integrating with Tiny ERP API using OAuth2 authentication.
This custom node provides comprehensive integration with Tiny ERP's product management API, supporting:
- n8n instance (version 1.0.0 or higher)
- Tiny ERP account with API access
- OAuth2 application configured in Tiny ERP
bash
npm install n8n-nodes-tiny-erp
`$3
1. Clone this repository
2. Install dependencies:
`bash
npm install
`
3. Build the project:
`bash
npm run build
`
4. Link to your n8n installation or copy the dist folder to your n8n custom nodes directoryConfiguration
$3
1. In your Tiny ERP account, create a new OAuth2 application
2. Note down the Client ID and Client Secret
3. Set the redirect URI to your n8n instance OAuth callback URL$3
1. In n8n, create a new credential of type "Tiny ERP OAuth2 API"
2. Enter your Client ID and Client Secret
3. Complete the OAuth2 authorization flowUsage
1. Add the "Tiny ERP" node to your workflow
2. Select the desired operation (e.g., "Get Many", "Create", "Update")
3. Configure the required parameters based on the operation
4. Connect your OAuth2 credentials
$3
- Operation: Get Many
- Additional Fields:
- Name: "Product Name" (optional filter)
- Status: "Active"
- Limit: 50$3
- Operation: Create
- Product Data:
- SKU: "PROD-001"
- Description: "My Product"
- Type: "Product"
- Unit: "UN"API Documentation
This node is built based on the Tiny ERP API documentation. For detailed information about available fields and operations, refer to the Tiny ERP API Documentation.
Development
$3
`
├── credentials/
│ └── TinyOAuth2Api.credentials.ts # OAuth2 credential definition
├── nodes/
│ └── TinyErp/
│ ├── TinyErp.node.ts # Main node implementation
│ ├── GenericFunctions.ts # Helper functions
│ └── tinyerp.svg # Node icon
├── dist/ # Compiled output
├── package.json # Project configuration
├── tsconfig.json # TypeScript configuration
└── README.md # This file
`$3
`bash
npm run build
`$3
`bash
npm run lint
npm run lintfix # Auto-fix issues
`$3
`bash
npm run dev # Watch mode for TypeScript compilation
``1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Run tests and linting
5. Submit a pull request
MIT License - see LICENSE file for details
For issues and questions:
- Check the n8n community forum
- Review the Tiny ERP API documentation
- Open an issue in this repository