Skip to content
Armada Developers
Invoices
Core resourcesAPI v2

Invoices

Use GET /v2/invoices to list the merchant's invoices and GET /v2/invoices/{id} to retrieve one. The key needs invoices:read.

The list response contains page, perPage, total and invoices. Use an invoice's _id as the path identifier when retrieving it.

javascript
const { data } = await armada.invoices.list({ page: 1, perPage: 20 });
if (data.invoices.length) {
	const invoice = await armada.invoices.get(data.invoices[0]._id);
	console.log(invoice.data);
}

Invoice type and status values are lowercase, such as regular and issued. Date fields are ISO-8601 timestamps. Use the fields defined in the API reference for filters, pagination and responses.

The list's status parameter selects a group. Read each invoice's own status to determine payment state; the paid group includes pending invoices.

Invoice records and wallet balance are separate resources. Use Wallet to read the current balance.