Confirm a discount payment
insumer_confirm_paymentConfirm the USDC payment for an INSR discount code. The server verifies the on-chain transaction receipt.
Instructions
Confirm the USDC payment for an INSR discount code. The server verifies the on-chain transaction receipt.
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": {
"code": "<code>",
"txHash": "<txHash>",
"chainId": "<chainId>",
"amount": "<amount>"
},
"name": "insumer_confirm_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Discount code (e.g. INSR-A7K3M) | |
| amount | Yes | USDC amount sent | |
| txHash | Yes | On-chain transaction hash or Solana signature | |
| chainId | Yes | Chain where the USDC was sent: EVM chain ID (1, 8453, 137, 42161, 10, 56, 43114) or 'solana'. Bitcoin and Tron are not accepted here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | true when the API call succeeded | |
| data | No | The endpoint's payload: a signed attestation, trust profile, discount, merchant or token records | |
| keys | No | JWKS entries (insumer_jwks) | |
| meta | No | Response metadata such as version and timestamp | |
| error | No | Error details when ok is false | |
| items | No | The result when the endpoint returns a JSON array | |
| message | No | A plain-text result (insumer_setup), or a message from the API |