/v1/invoicesReturns your 50 most recent invoices, newest first, each with its line items. Invoices are created for completed billing cycles.
Requires a verified email address.
Authentication
Send your API key as Authorization: Bearer <token>.
Response
Your invoices.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the invoice.
numberstringRequiredSequential invoice number, INV-<year>-<sequence>.
statusstringRequiredissued when it is waiting to be paid from your wallet, paid once settled.
One ofdraftissuedpaidvoid
period_startstring (date-time)RequiredStart of the billing period.
period_endstring (date-time)RequiredEnd of the billing period.
issued_atstring (date-time)When the invoice was issued. Omitted for drafts.
paid_atstring (date-time)When the invoice was paid. Omitted while unpaid.
base_currencystringRequiredCurrency of the _cents amounts. USD.
subtotal_net_centsintegerRequiredTotal before tax, in US cents.
tax_total_centsintegerRequiredTax, in US cents.
total_gross_centsintegerRequiredTotal including tax, in US cents.
currencystringRequiredCurrency you are billed in, NGN for Nigeria and USD otherwise.
exchange_ratenumberRequiredRate used to convert US cents to currency minor units when the invoice was issued.
subtotal_net_minorintegerRequiredTotal before tax, in currency minor units.
tax_total_minorintegerRequiredTax, in currency minor units.
total_gross_minorintegerRequiredTotal including tax, in currency minor units.
tax_typestringRequiredType of tax applied. VAT.
tax_rate_bpsintegerRequiredTax rate in basis points. 750 is 7.5%.
tax_reasonstringRequiredstandard for customers in RumptyCloud's home country, zero_rated_export (0%) for customers elsewhere.
One ofstandardzero_rated_export
customer_namestringYour username when the invoice was issued.
customer_emailstringYour email address when the invoice was issued.
customer_countrystringYour billing country when the invoice was issued.
customer_tax_idstringYour tax ID when the invoice was issued. Omitted when you had none.
companyobjectRequiredThe company issuing the invoice.
Show attributesHide attributes
namestringRequiredLegal name of the issuer.
tax_idstringThe issuer's tax ID. Omitted when not configured.
addressstringThe issuer's address. Omitted when not configured.
linesarray of objectsRequiredThe billed items.
Show item attributesHide item attributes
descriptionstringRequiredWhat the line is for.
resource_typestringResource type the line covers. Omitted when not applicable.
metricstringWhat was measured, e.g. runtime or storage.
unitstringUnit of quantity, e.g. hour or gb_month.
quantitynumberRequiredQuantity billed, in unit.
net_centsintegerRequiredLine total before tax, in US cents.
tax_centsintegerRequiredTax on the line, in US cents.
tax_rate_bpsintegerRequiredTax rate for the line, in basis points.
tax_typestringRequiredType of tax. VAT.
tax_reasonstringRequiredWhy this rate applies.
One ofstandardzero_rated_export
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | Your email address is not verified (action: verify_email), or your account is suspended for abuse (action: account_suspended). |
Errors use the standard error format.