Retrieve (verify) a payment
get_paymentRetrieve a payment by ID to verify its status and amount received server-side before delivering value.
Instructions
Retrieve (verify) a payment.
Retrieve a payment by id (pay_…). This is the authoritative way to verify a payment server-side before you deliver value: check status is succeeded and amount_received is what you expect.
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": {
"id": "<id>"
},
"name": "get_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The payment id (`pay_…`). | |
| expand | No | Embed related objects instead of their ids. `customer` embeds the customer. |