Payezydevelopers
Sandbox

API reference / Billing

Get an invoice

GET/v1/orgs/{orgId}/billing/invoices/{invoiceId}

One invoice or monthly statement with its lines and payment status.

Before you call it

  • Permissionbilling:view

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.
invoiceIdpath, uuidrequiredAn invoice id from the invoice list.

Response 200

The statement or invoice with its lines (billing:view)

FieldWhat it does
idstring (uuid)requiredNo description in the spec yet.
numberstringrequiredNo description in the spec yet.
kindenumrequiredNo description in the spec yet.

One of statement invoice

statusenumrequiredNo description in the spec yet.

One of open past_due paid void

period_startstring (date)requiredNo description in the spec yet.
period_endstring (date)requiredNo description in the spec yet.
currencystringrequiredNo description in the spec yet.
subtotalstringrequiredNo description in the spec yet.
credits_totalstringrequiredNo description in the spec yet.
totalstringrequiredNo description in the spec yet.
inline_paidstringrequiredFees already collected at settlement (shown, not owed)
amount_paidstringrequiredNo description in the spec yet.
amount_duestringrequiredNo description in the spec yet.
due_atstring (date-time)No description in the spec yet.
issued_atstring (date-time)No description in the spec yet.
paid_atstring (date-time)No description in the spec yet.
payment_methodenumNo description in the spec yet.

One of balance bank_transfer manual

pdf_availablebooleanrequiredNo description in the spec yet.
created_atstring (date-time)requiredNo description in the spec yet.
linesBillingInvoiceLine[]requiredNo description in the spec yet.
lines[].idstring (uuid)requiredNo description in the spec yet.
lines[].kindenumrequiredNo description in the spec yet.

One of usage recurring accrual minimum cap credit charge inline

lines[].product_codestringNo description in the spec yet.
lines[].customer_org_idstring (uuid)The end-customer (platform invoices)
lines[].customer_namestringNo description in the spec yet.
lines[].descriptionstringrequiredNo description in the spec yet.
lines[].quantitystringrequiredNo description in the spec yet.
lines[].volumestringrequiredNo description in the spec yet.
lines[].amountstringrequiredNo description in the spec yet.