Get a charge statement
curl --request GET \
--url https://{host}/v1/charges/statement \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://{host}/v1/charges/statement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v1/charges/statement"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"services": [
{
"service_type": "<string>",
"count": 123,
"amount_minor": 2500000,
"fee_minor": 123,
"tax_minor": 123,
"total_minor": 123,
"refunded_count": 123,
"refunded_minor": 123,
"net_minor": 123
}
],
"totals": {
"count": 123,
"amount_minor": 2500000,
"fee_minor": 123,
"tax_minor": 123,
"total_minor": 123,
"refunded_count": 123,
"refunded_minor": 123,
"net_minor": 123
}
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"fields": {}
},
"code": "13"
}Charges
Get a charge statement
The charges in a period (from and to, at most 92 days), per service and summed: charged, given back, and the difference.
Required permission: accounts:read, feature:TRANSACTIONS
GET
/
v1
/
charges
/
statement
Get a charge statement
curl --request GET \
--url https://{host}/v1/charges/statement \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://{host}/v1/charges/statement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v1/charges/statement"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"services": [
{
"service_type": "<string>",
"count": 123,
"amount_minor": 2500000,
"fee_minor": 123,
"tax_minor": 123,
"total_minor": 123,
"refunded_count": 123,
"refunded_minor": 123,
"net_minor": 123
}
],
"totals": {
"count": 123,
"amount_minor": 2500000,
"fee_minor": 123,
"tax_minor": 123,
"total_minor": 123,
"refunded_count": 123,
"refunded_minor": 123,
"net_minor": 123
}
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"fields": {}
},
"code": "13"
}