pay_application
Pay for an accepted application from the mentee's credit balance. Requires Authorization: Bearer. If credits are short this returns payment_required. MCP clients cannot send HTTP Payment headers — pass payment_credential if the host wallet provides an MPP object, or use open_dashboard and pay in the browser, then retry.
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": {
"application_hash": "<application_hash>"
},
"name": "pay_application"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| application_hash | Yes | ||
| payment_credential | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| kind | No | intro_call, mentorship_call, or session. | |
| error | No | payment_required, invalid_payment, auth_required, not_found, etc. | |
| start | No | ||
| intent | No | charge | |
| method | No | stripe | |
| status | No | 'paid', 'topped_up', or absent on payment_required. | |
| message | No | ||
| pay_url | No | REST URL to retry with an MPP Payment credential. | |
| receipt | No | Base64url MPP receipt. | |
| currency | No | usd | |
| setup_id | No | ||
| available | No | ||
| challenge | No | MPP challenge. Present when error is payment_required. | |
| next_step | No | ||
| amount_usd | No | Charge or top-up amount in whole USD. | |
| mentorship | No | ||
| application | No | ||
| credits_usd | No | ||
| billing_note | No | ||
| booking_hash | No | ||
| calendar_link | No | ||
| dashboard_url | No | ||
| mentorship_hash | No | ||
| application_hash | No | ||
| www_authenticate | No | WWW-Authenticate Payment header value from the REST 402. |