create_link
Generates a payment link to collect payments with a set amount, currency, and title, with options for expiration, branding, taxes, and custom fields.
Instructions
Create a new payment link
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount": "<amount>",
"currency": "<currency>",
"title": "<title>"
},
"name": "create_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| used | No | Number of times the link has been used | |
| title | Yes | Link title | |
| amount | Yes | Payment amount in the smallest currency unit | |
| tax_id | No | Tax ID for the payment | |
| charges | No | Associated charges | |
| branding | No | Payment page branding | |
| currency | Yes | Currency code (THB, USD, JPY, etc.) | |
| fee_rate | No | Fee rate as a percentage (0-100) | |
| metadata | No | Additional metadata for the link | |
| multiple | No | Allow multiple payments for the same link | |
| tax_rate | No | Tax rate as a percentage (0-100) | |
| expires_at | No | Link expiration date (ISO 8601 format) | |
| description | No | Link description | |
| payment_uri | No | Payment URI for the link | |
| custom_fields | No | Custom fields for the payment form | |
| tax_inclusive | No | Whether tax is included in the amount |