Invoice payment attempts
get_invoice_transactionsEvery payment attempt on one invoice, oldest first, with its outcome and, when it failed, why (reason_code + reason): use it when a customer asks why a payment did not go through. Also the payments and refunds actually recorded. status: succeeded, failed, or pending. A pending SEPA direct debit (method sepa_direct_debit) means the debit request was sent to the customer's bank but the funds have not reached Hodi yet: that takes a few business days, the invoice is marked paid once they arrive, and nothing needs to be done meanwhile. A pending mobile money payment waits for the customer to approve it on their phone. origin: automatic (Hodi charged the saved card or mandate on the due date) or customer (the customer paid on the invoice page). reason_code no_payment_method = nothing saved to charge automatically: the customer pays from the invoice page or saves a card / sets up direct debit; technical_error = a fault on Hodi's side, not the customer's card or account: apologise, say it is not their fault, and suggest paying another way from the invoice page. Never suggest retrying a card that was refused for insufficient funds or blocked before the customer has checked with their bank.
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": {
"invoice_id": "<invoice_id>"
},
"name": "get_invoice_transactions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | Invoice id from list_invoices. |