Actions4
- Link Actions
Overview
This node integrates with the PayTR Link API to manage payment links. It supports creating payment links for products or collections, deleting existing links, and sending payment links via email or SMS. This is useful for businesses that want to generate payment requests dynamically and send them directly to customers through different communication channels.
Practical examples:
- Creating a payment link for a product and sending it to a customer’s email.
- Deleting an expired or invalid payment link.
- Sending a payment link reminder via SMS to a customer.
Properties
Name | Meaning |
---|---|
Link ID | The unique identifier of the payment link to delete or send (required for delete/send). |
The email address to which the payment link will be sent (required for sending email). | |
Debug Mode | Enable debug mode for testing purposes (true/false). |
Output
The node outputs JSON data returned from the PayTR API for each operation:
- For Send Email, the output JSON contains the API response confirming whether the email was sent successfully or detailing any errors.
- The structure typically includes status codes, messages, and other relevant metadata from the PayTR service.
No binary data is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the PayTR service (merchant ID, merchant key, and merchant salt).
- Uses HTTP POST requests to PayTR endpoints (
link/create
,link/delete
,link/send-email
,link/send-sms
). - Requires n8n environment configured with these credentials.
Troubleshooting
- Invalid phone number format: When sending SMS, the phone number must start with "05" and be exactly 11 digits long. Otherwise, the node throws an error.
- API authentication errors: Incorrect or missing API credentials will cause request failures.
- Network issues: Connectivity problems can prevent successful API calls.
- Debug mode: Enabling debug mode may provide more detailed error information from the API, useful for troubleshooting.
Links and References
- PayTR Official API Documentation (for detailed API usage and parameters)
- n8n HTTP Request Node documentation (for understanding how HTTP requests are made within n8n)