POST
/
v5
/
app
/
billing_usages

Authorizations

Authorization
string
headerrequired

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

Body

application/json
billing_item_id
string

The ID of the billing item, which will look like bi_*************. Supply this or the billing_item_identifier.

billing_item_identifier
string

The identifier of the billing item, which will be a string. Supply this or the billing_item_id.

company_id
string

The ID of the company, which will look like biz_*************. Supply this or the membership_id.

membership_id
string

The ID of the membership, which will look like mem_*************. Supply this or the company_id.

amount
number

The amount to charge, if the billing item is variable.

quantity
number

The quantity to charge for the billing item, if the billing item is structured.

Response

201 - application/json
id
string
required

The ID of the billing usage, which will look like bu_*************

created_at
number
required

The date the billing usage was created as a unix timestamp.

company_id
string
required

The ID of the company, which will look like biz_*************

app_id
string
required

The ID of the app, which will look like app_*************

membership_id
string
required

The ID of the membership, which will look like mem_*************

billing_item_id
string
required

The ID of the billing item, which will look like bi_*************

quantity
number

The quantity to charge for the billing item, if the billing item is structured.

amount
number

The amount to charge, if the billing item is variable.

receipt_id
string

The ID of the receipt, which will look like rec_*************