Skip to main content
Get the billing summary of the subscription

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Response

Returns the summary of the subscription.

activePriceIds
string[] | null

Prices the subscription currently holds, which is what a change to it has to be built from.

Example:
activeProductIds
string[] | null

Products behind those prices, for matching the subscription against what is on sale.

Example:
cancelAt
string<date-time> | null

When the subscription is due to stop, where an end has already been set for it.

cancelAtPeriodEnd
boolean

Whether the subscription is set to stop once the period already paid for runs out instead of renewing.

currentPeriodEnd
string<date-time> | null

End of the period the subscription is currently being charged for - the point at which it renews, or stops when it has been cancelled.

currentPeriodStart
string<date-time> | null

Start of the period the subscription is currently being charged for.

customerBalance
integer | null

Balance the provider keeps for the organization, in the smallest unit of its currency. A figure above zero is credit waiting to be used up on a later invoice, one below it is money owed.

Example:

5000

lastChangedAmount
integer | null

What the invoice raised by the most recent change to the subscription came to, in the smallest unit of its currency - what an upgrade cost or a downgrade gave back. Empty while the subscription has never been changed.

Example:

2500

lastInvoiceHostedUrl
string | null

Address of the provider's own page for that invoice, where it can be read and downloaded. Empty where the provider hosts no such page for it.

lastInvoiceId
string | null

Identifier of the invoice that last payment settled.

Example:

"in_1Nq8yZ2eZvKYlo2C0X9Yz3Ab"

lastInvoiceStatus
string | null

State that invoice is in, as the provider words it.

Example:

"paid"

lastPaymentAmount
integer | null

What that last payment came to, in the smallest unit of its currency.

Example:

12000

lastPaymentCurrency
string | null

Currency that last payment was made in, as a lower-case three-letter code.

Example:

"eur"

lastPaymentDate
string<date-time> | null

When the last invoice of this subscription was paid. Empty until something has actually been paid for it.

nextChangedAmount
integer | null

What a change made in the middle of the current period adds up to on the invoice still to come, in the smallest unit of its currency - the extra charge less the credit, so a downgrade reads as a negative figure. Empty where the coming invoice carries nothing of the sort.

Example:

2500

nextPaymentAmount
integer | null

What that charge is expected to come to, in the smallest unit of its currency. It already accounts for what the next invoice is shaping up to hold - the subscription itself, anything settled mid-period, tax, discounts and credit.

Example:

12000

nextPaymentCurrency
string | null

Currency the next charge is expected in, as a lower-case three-letter code.

Example:

"eur"

nextPaymentDate
string<date-time> | null

When the subscription is expected to be charged again - the end of the period now running, unless the provider has scheduled the next invoice for another date.

pendingUpdateExists
boolean

Whether a change to the subscription is waiting to take effect - typically one the provider is holding until it has been paid for.

pendingUpdateExpiresAt
string<date-time> | null

When that waiting change is dropped if it has not been settled by then.

remainingCredit
integer | null

Credit the organization has to spend on what it is charged next, in the smallest unit of its currency - what a reduction made mid-period gave back, together with whatever the provider already holds to its name.

Example:

5000

status
string | null

Where the subscription stands with the provider - whether it is running, in a trial, behind on payment, unfinished or already ended. It is reported as the provider words it.

Example:

"active"

subscriptionId
string

Identifier of the subscription at the payment provider.

Example:

"sub_1Nq8yZ2eZvKYlo2C0X9Yz3Ab"

subscriptionItemsCount
integer | null

How many items the subscription is made of - how many separate things it is billed for.

Example:

2

upcomingAmountDue
integer | null

What will actually have to be paid on that invoice once the credit the organization is sitting on has been taken off, in the smallest unit of its currency.

Example:

9520

upcomingProrationCredit
integer | null

Credit on the invoice still to come for service given up in the middle of a period - what a move to a cheaper price or a smaller number of units gave back. It is reported as a positive figure.

Example:

3000

upcomingProrationDebit
integer | null

Extra charge on the invoice still to come for service taken on in the middle of a period - what a move to a dearer price or a larger number of units costs for the rest of it.

Example:

4500

upcomingSubtotal
integer | null

What the invoice still to come adds up to before tax, in the smallest unit of its currency. This and the figures beside it are the provider's preview of that invoice and are empty while it cannot be worked out.

Example:

12000

upcomingTax
integer | null

Tax on the invoice still to come, in the smallest unit of its currency.

Example:

2520

upcomingTotal
integer | null

What the invoice still to come adds up to with everything on it - the subscription, mid-period adjustments, discounts and tax - in the smallest unit of its currency.

Example:

14520