Skip to main content

List billing statements

List billing statement resources.


Endpoint

GET /billing_statements

Sample code

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

// Return 10 records
const billingStatements = await client.billingStatements.list({
limit: 10,
});

Parameters

limit optional

Limits the number of resources returned by the endpoint. The minimum amount is 1, and the maximum is 100.


before optional

A cursor used in pagination. before is a resource ID that defines your place in the list. For example, if you call a list request and receive 10 resources, starting with bstm_1234, your subsequent calls can include before=bstm_1234 to fetch the list's previous page.


after optional

A cursor used in pagination. after is a resource ID that defines your place in the list. For example, if you call a list request and receive 10 resources ending with bstm_1234, your subsequent calls can include after=bstm_1234 to fetch the next page of the list.

Returns

Returns a paginated list of Billing Statement resources.