Skip to main content

Update a billing statement line item

Updates a billing statement line item resource.


Endpoint

PUT /billing_statement_line_items/:id

Sample code

const client = require('payrex-node')('insert your PayRex Secret API key.');

const billingStatementLineItem = await client.billingStatementLineItems.update(
'<ID of a billing statement line item resource>',
{
description: 'Product Y',
}
);

Parameters

description optional

The description of the line item. It could be a product name or the service that you offer.


unit_price optional

The amount of the line item in a single unit.

This is a positive integer in the smallest currency unit, cents. If the line item should be ₱ 120.50, the amount should be 12050.


quantity optional

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.

Returns

Returns a Billing Statement Line Item resource.