Create a test payment link
create_payment_linkCreate a shareable link for one payment, to send by email or chat. It is an invoice whose hosted checkout page you share; reference is required for idempotency. Reusable fixed-price links are made in the dashboard (Payment links). Live mode needs mode: "live".
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>",
"reference": "<reference>"
},
"name": "create_payment_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Must match your key's mode. With a live key, pass "live" to confirm a real payment request; omit it with a test key. | |
| amount | Yes | Price in USD, e.g. "49.00" | |
| metadata | No | ||
| cancelUrl | No | ||
| reference | Yes | Your order ID. Required: it is the idempotency key, so a retried call returns the same invoice instead of a second one | |
| successUrl | No | Where the customer goes after paying | |
| description | No | What the customer is paying for | |
| expiresInSec | No | How long the link stays payable (default: the invoice default) | |
| customerEmail | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| mode | Yes | ||
| amount | Yes | ||
| status | Yes | ||
| invoice | Yes | ||
| summary | Yes | ||
| currency | Yes | ||
| expiresAt | Yes | ||
| invoiceId | Yes |