API referenceInvoices
Retrieve an invoice
Retrieves an invoice.
GET
/ invoices/{invoiceId}https:/ / sandbox.api.mothership.com/ betaReads your token from
$MOTHERSHIP_API_TOKENResponse
Hover a key to see what it means. Click it to jump to the field.
Invoice statuses
The value of status can be in one of the following states.
| Status | Description |
|---|---|
open | The invoice has not been paid, or payment is still processing. |
paid | The invoice has been fully paid. |
unpaid | Listed in the spec for compatibility. The API does not return it today. |
pastDue | The invoice is not fully paid and past its due date. |
void | The invoice has been voided and is not due for payment, nor has been paid previously. |
Each line item's type is listed in Invoice line items. Line item amounts are in cents.