Get Financial Invoice by Document Number
machship_get_invoice_by_document_numberRetrieve a specific financial invoice using its document number, with optional PDF download included as base64 bytes in the response.
Instructions
Returns a specific financial invoice by document number, with optional PDF download.
Args:
documentNumber (string): Invoice document number
returnPdfFileBytes (boolean, optional): Include PDF as base64 bytes in response
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": {
"documentNumber": "<documentNumber>"
},
"name": "machship_get_invoice_by_document_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentNumber | Yes | Invoice document number | |
| returnPdfFileBytes | No | Include PDF as base64 bytes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation errors returned by Machship, if any | |
| object | No | Response payload from the Machship API |