Actions39
- Account Actions
- Client Actions
- Document Actions
- Product Actions
- Receipt Actions
- Store Actions
- Supplier Actions
Document → Create Payment Method
AI-generatedOverview
This node integrates with the Vendus API to create a new payment method document. It allows users to define and add custom payment methods such as cash, credit card, bank transfer, etc., into their Vendus invoicing and business management system.
Typical use cases include automating the addition of new payment options in Vendus when setting up or updating a business's payment infrastructure. For example, a business expanding its payment acceptance can use this node to programmatically add "Digital Wallet" as a payment method without manual entry.
Properties
| Name | Meaning |
|---|---|
| Payment Method Name | The name of the payment method to be created (e.g., "Visa", "PayPal"). |
| Payment Method Information | A collection of additional details about the payment method: |
| - Code: A code identifier for the payment method. | |
| - Description: A textual description of the payment method. | |
| - Type: The category/type of payment method. Options: Bank Transfer, Cash, Check, Credit Card, Debit Card, Digital Wallet, Other. | |
| - Status: The status of the payment method. Options: Active, Inactive. | |
| Custom JSON | A JSON object allowing the user to provide any additional custom data for the payment method. |
| Options | Additional options for the node execution: |
| - Enable Debug Logging: Boolean flag to enable detailed debug logs for troubleshooting API calls. |
Output
The node outputs an array of JSON objects, each representing the response from the Vendus API after creating a payment method. The JSON structure corresponds directly to the API's response, typically including details of the newly created payment method such as its ID, name, code, type, status, and any other metadata returned by the API.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the Vendus API.
- The node expects the base URL of the Vendus API to be configured in the credentials.
- Network access to the Vendus API endpoint is necessary.
- Optionally, enabling debug logging requires no extra dependencies but will produce verbose logs.
Troubleshooting
- Missing Required Parameters: If required parameters like "Payment Method Name" are not provided, the node throws an error indicating the missing parameter.
- API Authentication Errors: If the API key or base URL is incorrect or missing, requests will fail. Verify credentials configuration.
- Invalid JSON in Custom JSON Field: Providing malformed JSON in the "Custom JSON" property may cause request failures.
- Network Issues: Connectivity problems to the Vendus API will result in errors; ensure network access.
- Debug Logging: Enabling debug logging helps trace request URLs, bodies, and responses, which aids in diagnosing issues.
- Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.
Links and References
- Vendus API Documentation (as referenced in the node description)
- n8n Documentation on Creating Custom Nodes
- General REST API usage and authentication best practices