Create an Axiv Pay payment from a quote
create_paymentStep 2 of a payment. Create one payment from a quote before the quote expires. Creating a payment moves no funds and signs nothing. idempotencyKey is required: choose a new unique key for each new payment and keep it. Calling again with the same key and the same arguments returns the same payment instead of creating another one. If the response is lost, unreadable, or the call fails with retrySameRequest true, call again with the SAME arguments and the SAME key. That is the only way to read the payment back when you have no payment ID. Never switch to a new key for the same purchase. The result reports whether the payment was CREATED or REPLAYED, and nextAction. Next: get_funding_step when nextAction is REQUEST_FUNDING_INSTRUCTIONS. Requires your own Axiv Pay API token in the Authorization: Bearer header of the MCP HTTP request, never as a tool argument. This tool does not sign or send any blockchain transaction. Axiv Pay holds no keys. Your own wallet signs the step returned by get_funding_step.
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": {
"quoteId": "<quoteId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer | No | Account that will fund the payment. Required if the quote was created without a payer. 0x followed by 40 hex characters. Not the zero address. | |
| quoteId | Yes | quoteId returned by create_quote ("quote_" followed by a UUID). | |
| idempotencyKey | Yes | Your unique key for this payment, 8 to 128 characters from A-Z a-z 0-9 . _ : -. Reuse the same key when retrying. | |
| merchantReference | No | Optional order or invoice reference, up to 100 characters from A-Z a-z 0-9 . _ : -. |