Create an Axiv Pay payment link
create_payment_linkCreate a payment link that a customer pays from their own wallet, with no site or backend on your side. amount is what the recipient receives, as a decimal string such as "25.00". The customer picks a stablecoin they hold and pays the route cost on top. Returns url to share. A single-use link closes after one payment; set reusable to accept more. Creating a link moves no funds. Calling again creates another link. Available only while GET https://api.pay.axiv.cc/v1/capabilities reports paymentLinks true. Check that first. While it is false the payment API answers PAYMENT_LINKS_UNAVAILABLE and nothing is created. Requires your own Axiv Pay API token in the Authorization: Bearer header of the MCP HTTP request, never as a tool argument.
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": {
"destinationChainId": "<destinationChainId>",
"destinationAsset": "<destinationAsset>",
"amount": "<amount>"
},
"name": "create_payment_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional. What the payment is for, shown to the customer. Up to 80 characters. | |
| amount | Yes | Amount the recipient receives, as a decimal string such as "25.00". No atomic units. | |
| reusable | No | Optional. true accepts more than one payment with this link. Default false. | |
| recipient | No | Optional. Wallet that receives the payment. Defaults to the wallet of the account that owns the token. 0x followed by 40 hex characters. Not the zero address. | |
| destinationAsset | Yes | Asset the recipient receives, for example "USDC". | |
| merchantReference | No | Optional order or invoice reference, up to 100 characters from A-Z a-z 0-9 . _ : -. | |
| destinationChainId | Yes | Chain the recipient receives on, as a decimal string, for example "42161". |