Skip to main content

Get Invoice (V2)

GET 

/api/xero/v2/invoices/:invoice

Get a single synced Xero sales invoice (ACCREC) — header fields, line items, the reverse link to the SKU.io record it was generated from, and sync metadata (sync_status, last_error, and url, a deep link to the invoice in Xero). Monetary amounts are in the invoice's currency; datetimes are UTC ISO-8601.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Path parameters:

  • invoice (integer, required): internal invoice record ID — the id returned by List Invoices (V2).

Reverse link fields: at_id/at_reference identify the SKU.io accounting transaction the record was generated from (null when the record was synced via the ledger pipeline instead — then ledger_entry_id/ledger_entry_reference are set). sku_link_type/sku_link_id identify the underlying SKU.io source record (e.g. a sales order or purchase order); sku_link_label and sku_link_route are only populated when the link was resolved through the ledger.

Returns 404 when no invoice with that ID exists.

Authentication: Bearer token.

Returns raw_payload (the full raw Xero payload); present only on the detail/show endpoint.

Request

Responses

OK

Response Headers
    Content-Type