Charges
List all charges
Changed onRetrieve all charges, optionally filtered by plan ID.
get/api/charges
Request
- Base URLhttps://api.novabilling.one
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
planIdstring
Filter by plan ID
Response
List of charges
Example response
[
{
"id": "clx1234567890",
"planId": "clxplan123",
"billableMetricId": "clxbm123",
"chargeModel": "GRADUATED",
"billingTiming": "IN_ARREARS",
"invoiceDisplayName": "API Usage",
"minAmountCents": 100,
"graduatedRanges": [
{
"id": "clx1234567890",
"toValue": 1000,
"perUnitAmount": "0.0100",
"flatAmount": "0.0000"
}
],
"filters": [
{
"id": "clx1234567890",
"key": "region",
"values": [
"us-east"
]
}
]
}
]Changes
- info
endpoint added
- info