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