get https://api.mercury.com/api/v1/ar/invoices/
Fetches a single invoice by its ID.
Response Schema:
{
"id": string,
"dueDate": date,
"invoiceDate": date,
"invoiceNumber": string,
"poNumber": string | null,
"payerMemo": string | null,
"internalNote": string | null,
"customerId": string,
"ccEmails": [string | null],
"slug": string,
"status": "Unpaid" | "Paid" | "Cancelled",
"amount": decimal,
"destinationAccountId": string,
"creditCardEnabled": boolean,
"achDebitEnabled": boolean,
"useRealAccountNumber": boolean,
"lineItems": [
{
"name": string,
"unitPrice": decimal,
"quantity": number,
"salesTaxRate": number | null,
}
],
"createdAt": date-time,
"updatedAt": date-time,
"canceledAt": date-time | null,
}