AR/AP

List the invoice's card-collection payments (charge-rail subledger)

DARK — 404s unless ar_ap_items_enabled. Reads the invoice_payments card-collection subledger (AR Stripe charge rail): succeeded/failed card charges recorded by the payment_intent.* settlement webhook and the ach/pending "payer says the transfer is on the way" soft signal. Distinct from ar_item_payments (bank-match collections). Rows are {id, method(card|ach), status(pending|succeeded|failed), amountCents, feeCents, paidAt, createdAt}, oldest first; Stripe PaymentIntent ids are deliberately never returned. The item lookup is company-scoped (a cross-tenant id is a 404).

get/companies/{companyId}/ar/{id}/payments

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

companyId, string uuid required
id, string uuid required

Query parameters

entityId, string uuid

Concrete legal entity that owns this AR/AP request. Omission is accepted only when the actor is authorized to exactly one concrete entity; consolidated scope cannot mutate or serve these entity-only resources.

Headers

X-Median-App-Surface, 'qa'

Optional customer-app bundle marker for production-promoted demo-parity routes. Production customer calls omit this header. When present, qa selects the QA bundle and the server additionally requires an allowlisted test company with persisted client_status=test.

Response

Payment rows for the invoice (may be empty)

Changes

No recorded changes to this operation across all 110 revisions of this API.