Create Payment Record
record_paymentCreate a receipt or updated invoice from supplied payment details. Does not charge or verify payment. HTTP calls can return a temporary download link.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document": {
"to": {
"name": "Client"
},
"from": {
"name": "Acme"
},
"doc_type": "invoice"
},
"amount_paid": 100
},
"name": "record_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | Stateless input invoice JSON payload. | |
| paid_date | No | Payment date (YYYY-MM-DD). | |
| amount_paid | No | Amount paid toward balance. | |
| payment_method | No | Payment method (Stripe, Apple Pay, Wire). | |
| transaction_reference | No | Transaction reference ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | Receipt or updated invoice JSON. | |
| download | No | Temporary file link for HTTP tool calls. | |
| pdf_base64 | Yes | Base64 vector PDF. | |
| download_error | No | Why a temporary download link could not be created. The embedded PDF is still available. | |
| compile_time_ms | Yes | Compile time in ms. |