purchase_product_with_payment
Complete a public product purchase after you have obtained a valid signed x402 payment (v2 or v1) for that product challenge.
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": {
"productIdOrSlug": "<productIdOrSlug>",
"paymentPayload": "<paymentPayload>"
},
"name": "purchase_product_with_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | No | Optional metadata object forwarded to the purchase flow | |
| paymentPayload | Yes | Signed x402 payment from the paying client (v2 relayed as PAYMENT-SIGNATURE, v1 as X-Payment), as JSON or base64 string | |
| productIdOrSlug | Yes | Product slug or product ID used in the public /p/:id-or-slug purchase route | |
| clientReferenceId | No | Optional client reference ID forwarded to the purchase flow |