Skip to content

Discount Plan Allowance Usage

An allowance usage record is the running tally of how much of a discount plan allowance a customer has used in a billing period. These are maintained by the platform during billing, so the API exposes them read-only.

/backend/api/v1/discountPlanAllowanceUsage/ID - fetch the usage record with the specified ID.

/backend/api/v1/discountPlanAllowanceUsage/ - list all allowance usage records.

ParameterTypeRequiredDescription
idAfterintegerNoOnly include records with a higher ID
createdSincedatetimeNoOnly include records created since the given time
updatedSincedatetimeNoOnly include records updated since the given time
FieldNameTypeDescription
invoiceIDInvoice IDTextThe ID of the invoice this allowance usage is for
discountPlanAllowanceIDDiscount Plan Allowance IDTextThe ID of the discount plan allowance this usage record is for
usedMinutesUsed MinutesNumberNumber of minutes consumed from the allowance
usedBytesUsed BytesNumberNumber of bytes consumed from the allowance
usedEventsUsed EventsNumberNumber of events consumed from the allowance
usedCallsUsed CallsNumberNumber of calls consumed from the allowance
usedValueUsed DiscountCurrencyMonetary value of discount consumed from the allowance
usedAValueUsed A Leg DiscountCurrencyMonetary value of A leg discount consumed from the allowance
idIDTextThe unique identifier for this allowance usage record