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

Parameters: get_invoice
NameTypeDescription
invoice_number string required string Invoice number from list_invoices.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "recurly_read",
    "arguments": {
      "operation": "get_invoice",
      "arguments": {
        "invoice_number": "invoice number"
      }
    }
  }
}

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.