Get invoice
One invoice with its line items, state and totals.
MCP tool recurly_read → get_invoice
read
Returns one invoice by invoice_number: line items with their ids, quantities and amounts, the state, the totals and the linked subscription. Read it before refund_invoice to pick the right line item_id and to see what was already refunded.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_number string required | string | Invoice number from list_invoices. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "recurly_read",
"arguments": {
"operation": "get_invoice",
"arguments": {
"invoice_number": "invoice number"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_number": "1042",
"account_code": "acme-co",
"state": "collected",
"line_items": [
{
"line_item_id": "3dc1a8f09b4c4e55a1e0",
"description": "Setup fee",
"quantity": 2,
"unit_amount_in_cents": 900,
"total_in_cents": 1800
},
{
"line_item_id": "9ab07e22c15f4b0d8e61",
"description": "Team plan",
"quantity": 1,
"unit_amount_in_cents": 24000,
"total_in_cents": 24000
}
],
"subtotal_in_cents": 25800,
"tax_in_cents": 0,
"total_in_cents": 25800,
"currency": "USD"
},
"isError": false
}