Update a billing statement line item
Updates a billing statement line item resource.
Endpoint
PUT /billing_statement_line_items/:id
Sample code
- curl
- Node
- PHP
- Python
- Ruby
curl --location 'https://api.payrexhq.com/billing_statement_line_items/<ID of a billing statement line item resource>' \
--request PUT \
-u replace_with_secret_api_key: \
--data-urlencode 'description=Product Y'
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',
}
);
$client = new \Payrex\PayrexClient('insert your PayRex Secret API key.');
$billingStatementLineItem = $client->billingStatementLineItems->update(
'<ID of a billing statement line item resource>',
[
'description' => 'Product Y'
]
);
from payrex import Client as PayrexClient
client = PayrexClient('insert your PayRex Secret API key.')
billing_statement_line_item = client.billing_statement_line_items.update(
'<ID of a billing statement line item resource>',
{
'description': 'Product Y'
}
)
client = Payrex::Client.new("insert your PayRex Secret API key.")
billing_statement_line_item = client.billing_statement_line_items.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.