v1

latestOpenAPI 3.1.02026-07-132363652.9 MB
Invoice

Returns the JSON document bundle for a merchant invoice — line items, subtotals, fee account, issuer. Same 404 rules as the detail endpoint (cross-tenant, draft, never-issued).

Returns the JSON document bundle for a merchant invoice — line items, subtotals, fee account, issuer. Same 404 rules as the detail endpoint (cross-tenant, draft, never-issued).

get/api/v1/merchants/{merchantId}/invoices/{invoiceId}/document

Path parameters

merchantIdstring uuid required

The merchantId parameter

invoiceIdstring uuid required

The invoiceId parameter

Response

Success

successboolean required

Indicates if the request was successful

Example response

{
  "success": true,
  "data": {
    "invoice": {
      "currency": "GBP",
      "total_amount": "1234.56",
      "amount_paid": "0.00",
      "outstanding_amount": "1234.56",
      "payments": [
        {
          "amount": "125.00",
          "currency": "GBP"
        }
      ],
      "fx_rates": [
        {
          "source_currency": "GBP",
          "rate": "0.85120000",
          "provider": "openexchangerates"
        }
      ]
    },
    "line_items": [
      {
        "deposit_currency": "GBP",
        "payout_currency": "GBP",
        "fee_currency": "GBP"
      }
    ],
    "currency_subtotals": [
      {
        "source_currency": "GBP"
      }
    ],
    "fee_account": {
      "currency": "GBP"
    },
    "fx_rates": [
      {
        "source_currency": "GBP",
        "rate": "0.85120000",
        "provider": "openexchangerates"
      }
    ]
  }
}