Skip to navigation

Calculate Package Total

View as Markdown
Calculate the total price for a package at a given billing cycle.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

package_idstringRequired
account_idstringRequired

Headers

Idempotency-Keystring or nullOptional>=8 characters
A unique key for this request. A retry with the same key returns the first response instead of running again, for 24 hours. Keys are per caller.

Request

This endpoint expects an object.
billing_cycleenumRequired
Billing cycle to calculate for
Allowed values:

Response

Successful Response
billing_cyclestring
currencystring
total_amount_atominteger

Total in atomic units (cents)

itemslist of maps from strings to anyOptional

Breakdown per item with product_id, price_id, quantity, amount_atom

Errors

422
Unprocessable Entity Error