acp_pay_session
Pay for an ACP checkout session with a Stripe payment method ID. Charges the amount due and starts background document generation.
Instructions
Pay for an ACP checkout session using a Stripe payment method ID (pm_xxx). Charges the amount_due returned by acp_create_session. On success, document generation begins in the background — poll acp_get_session until status is 'completed'.
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": {
"bearerToken": "<bearerToken>",
"sessionId": "<sessionId>",
"stripePaymentMethodId": "<stripePaymentMethodId>",
"email": "<email>"
},
"name": "acp_pay_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bearerToken | Yes | Same bearer token used in acp_create_session | |
| sessionId | Yes | session_id from acp_create_session | |
| stripePaymentMethodId | Yes | Stripe payment method ID (pm_xxx) — obtain via Stripe.js or the Stripe API | |
| Yes | Email for the Stripe receipt |