Add document
add_documentAttach a supporting document, such as an invoice or contract, to a transfer or payment route deposit when compliance requests it.
Instructions
Attach a supporting document (invoice, contract or other) to a transfer or a payment route deposit, for example when Stables compliance asks for one. The file goes as a base64 data URL ('data:application/pdf;base64,...').
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": {
"on": "<on>",
"transactionId": "<transactionId>",
"fileName": "<fileName>",
"base64Url": "<base64Url>"
},
"name": "add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | What the document belongs to: a transfer, or a deposit on a payment route | |
| type | No | What the document is (default other) | |
| fileName | Yes | File name shown to Stables, e.g. 'invoice-2041.pdf' | |
| base64Url | Yes | The file as a data URL: 'data:<mime>;base64,<data>' | |
| transactionId | Yes | The transfer ID, or the deposit ID from get_virtual_account_history |