AP2 pay
ap2_submit_payment_mandatePresent a checkout mandate and a payment mandate (SD-JWTs signed with the org's registered mandate key) and settle by credits, card or x402. Answers with signed receipts. Scope: billing:write. REST twin: POST /api/ap2/orgs/:org/payments. Errors: unauthorized, insufficient_scope, not_found, forbidden, validation_error, signature_invalid, conflict, payment_required.
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": {
"org_id": "<org_id>",
"checkout_mandate": "<checkout_mandate>",
"payment_mandate": "<payment_mandate>"
},
"name": "ap2_submit_payment_mandate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org_id | Yes | ||
| payment_mandate | Yes | ||
| checkout_mandate | Yes | ||
| payment_credential | No | card: {"type":"card","token":"pm_..."}; x402: {"type":"x402","payload":"<base64 X-PAYMENT>"}; credits: omit. |