Billing Cloud
Invoices

Get an invoice

1min
GET
https://app.amberflo.io/payments/billing/customer-product-invoice

Use this endpoint to get a specific invoice of a customer.

You can get either the "latest" invoice, by setting the latest parameter to true, or a "previus" invoice by, providing the product plan id and the invoice start date parameters.

To know whether the invoice has been paid or not, look at the paymentStatus of the response.

Authentication
X-API-KEY
Query Parameters
customerId
*
productId
*
fromCache
withPaymentStatus
latest
productPlanId
year
month
day
Responses
200
Successful response
appliedCommitments
appliedInvoiceBasedFees
appliedPromotions
availablePayAsYouGoMoney
availablePayAsYouGoMoneyInBaseCurrency
availablePayAsYouGoMoneyInCredits
availablePrepaidLeft
availablePrepaidLeftBaseCurrency
availablePrepaidLeftInCredits
creditUnit
externalSystemStatus
gracePeriodInHours
invoiceBillInBaseCurrency
invoiceBillInCredits
invoiceEndTimeInSeconds
invoiceKey
invoicePriceStatus
invoiceStartTimeInSeconds
invoiceUri
paymentCreatedInSeconds
paymentCurrencyInfo
paymentStatus
planBillingPeriod
planName
productItemInvoices
productPlanFees
totalBill