Get MyFatoorah invoice
myfatoorah_get_invoiceFetch an invoice's details by its invoice ID or merchant-provided external identifier. Choose the lookup type to retrieve the matching invoice and inspect its status, amount, and payment information.
Instructions
Gets an invoice by exactly one lookup type. Invoice ID uses /v3/invoices/{value}; external identifier returns the most recent matching invoice and uses /v3/invoices/externalIdentifier/{value}.
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": {
"lookupBy": "<lookupBy>",
"value": "<value>"
},
"name": "myfatoorah_get_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Invoice ID or merchant-provided external identifier. | |
| lookupBy | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response | Yes |