Finalize a billing statement
Finalizes a billing statement resource.
Endpoint
POST /billing_statements/:id/finalize
Sample code
- curl
- Node
- PHP
- Python
- Ruby
curl --request POST --location 'https://api.payrexhq.com/billing_statements/<ID of a billing statement resource>/finalize' \
-u replace_with_secret_api_key:
const client = require('payrex-node')('insert your PayRex Secret API key.');
const billingStatement = await client.billingStatements.finalize('<ID of a billing statement resource>');
$client = new \Payrex\PayrexClient('insert your PayRex Secret API key.');
$billingStatement = $client->billingStatements->finalize('<ID of a billing statement resource>');
from payrex import Client as PayrexClient
client = PayrexClient('insert your PayRex Secret API key.')
billing_statement = client.billing_statements.finalize('<ID of a billing statement resource>')
client = Payrex::Client.new("insert your PayRex Secret API key.")
billing_statement = client.billing_statements.finalize('<ID of a billing statement resource>')
Returns
Returns a Billing Statement resource.