Attach a receipt to a transaction
attach_receiptRender user-provided receipt text as a PDF transcription and attach it to a QuickBooks transaction. Intended for receipts that exist only as text, such as an email body or copied order confirmation. The PDF is visibly marked as a transcription, not an original document. Requires confirmed_by_user: true after the user explicitly requests a transcription, and full access on the connection. The receipt fields contain the original text and, when applicable, the actual email sender and subject. Does not transfer original uploaded files.
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": {
"txn_type": "<txn_type>",
"txn_id": "<txn_id>",
"receipt": "<receipt>"
},
"name": "attach_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txn_id | Yes | QuickBooks Id of that transaction. | |
| company | No | Which connected QuickBooks company to use (name, realm id, or connection id). Optional when only one company is connected. | |
| receipt | Yes | The receipt content to render into the attached PDF. | |
| filename | No | Attachment file name. Defaults to '<date> <sender>.pdf', or '<date> receipt.pdf' without a sender. | |
| txn_type | Yes | QuickBooks transaction type the receipt documents. | |
| allow_duplicate | No | The call fails if the transaction already has an attachment. Only set true after the user explicitly confirms they want an additional document attached. | |
| confirmed_by_user | No | true only after the user explicitly asked for a rendered transcription, knowing it is not the original document. Without it the call is refused. |