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