Generate a card account statement
curl --request GET \
--url https://business.planewallet.org/api/v1/account-statements \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://business.planewallet.org/api/v1/account-statements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://business.planewallet.org/api/v1/account-statements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"company": {
"id": "<string>",
"name": "<string>"
},
"environment": "<string>",
"currency": "<string>",
"account": "card_account",
"from": "<string>",
"to": "<string>",
"openingBalance": "<string>",
"closingBalance": "<string>",
"incoming": "50.00",
"outgoing": "50.00",
"generatedAt": "2023-11-07T05:31:56Z",
"data": [
{
"id": "<string>",
"reference": "<string>",
"kind": "<string>",
"description": "<string>",
"amount": "<string>",
"balance": "<string>",
"availableDelta": "<string>",
"heldDelta": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}{
"statusCode": 123,
"message": "<string>"
}Balance
Generate an account statement
Required permission: balance:read. Both dates are inclusive UTC calendar dates. Maximum 366 days and 10,000 ledger entries; narrow the range if exceeded. Includes card-account deposits, fees, reservations and captures. Card purchase history is available separately under transactions.
GET
/
api
/
v1
/
account-statements
Generate a card account statement
curl --request GET \
--url https://business.planewallet.org/api/v1/account-statements \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://business.planewallet.org/api/v1/account-statements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://business.planewallet.org/api/v1/account-statements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"company": {
"id": "<string>",
"name": "<string>"
},
"environment": "<string>",
"currency": "<string>",
"account": "card_account",
"from": "<string>",
"to": "<string>",
"openingBalance": "<string>",
"closingBalance": "<string>",
"incoming": "50.00",
"outgoing": "50.00",
"generatedAt": "2023-11-07T05:31:56Z",
"data": [
{
"id": "<string>",
"reference": "<string>",
"kind": "<string>",
"description": "<string>",
"amount": "<string>",
"balance": "<string>",
"availableDelta": "<string>",
"heldDelta": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}{
"statusCode": 123,
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Success
Show child attributes
Show child attributes
Available options:
card_account Pattern:
^\d+(\.\d{1,2})?$Example:
"50.00"
Pattern:
^\d+(\.\d{1,2})?$Example:
"50.00"
Show child attributes
Show child attributes