Billing Statement Line Items
Learn more about the Billing Statement Line Item resource.
The billing statement line item is a line item of a billing statement that pertains to a business's products or services.
To learn more about billing statements, refer to this guide.
Endpoints
Endpoint | Name |
---|---|
POST /billing_statement_line_items | Create billing statement line item endpoint |
UPDATE /billing_statement_line_items/:id | Update billing statement line item endpoint |
DELETE /billing_statement_line_items/:id | Delete billing statement line item endpoint |
The Billing Statement Line Item Resource
{
"id": "bstm_li_BbSnRAFBA5S7DBJFuNBLFvsvLes11BSs",
"resource": "billing_statement_line_item",
"description": "Product X",
"unit_price": 10000,
"quantity": 5,
"billing_statement_id": "bstm_AbvnRnF9r577BBFFuNsLFvXvLes1CeeS",
"livemode": false,
"created_at": 1721726975,
"updated_at": 1721726975
}
Attributes
id string
Unique identifier for the resource. The prefix is bstm_li_
.
resource string
Represents the resource's type. The value is billing_statement_line_item
.
description string
The description attribute describes the line item of the billing statement. It could be a product you sell or a service you provide to your customers.
unit_price integer
The amount of the line item in a single unit.
quantity integer
The quantity of the line item. The quantity will be multiplied by the line_item.amount to compute the final amount of the billing statement.
This is a positive integer in the smallest currency unit, cents. If the line item's unit price is ₱ 120.50, the value should be 12050.
billing_statement_id string
The ID of the billing statement where the line item is associated.
livemode boolean
The value is true
if the resource's mode is live or false
if the resource is in test mode.
created_at timestamp
The time when the resource was created and measured in seconds since the Unix epoch.
updated_at timestamp
The time when the resource was updated and easured in seconds since the Unix epoch.