curl --request GET \
--url https://api.example.com/transactions/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/transactions/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/transactions/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"inflowUsd": "500.00",
"inflowCount": 123,
"outflowUsd": "500.00",
"outflowCount": 123,
"pendingInflowUsd": "500.00",
"pendingInflowCount": 123,
"pendingOutflowUsd": "500.00",
"pendingOutflowCount": 123
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Inflow and outflow totals for the same filters
Its own route: an aggregate is never folded into a page.
curl --request GET \
--url https://api.example.com/transactions/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/transactions/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/transactions/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"inflowUsd": "500.00",
"inflowCount": 123,
"outflowUsd": "500.00",
"outflowCount": 123,
"pendingInflowUsd": "500.00",
"pendingInflowCount": 123,
"pendingOutflowUsd": "500.00",
"pendingOutflowCount": 123
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The client account to act for, as a cl_… id. Omit it to act as yourself.
"cl_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41"
Query Parameters
Comma-separated transaction types
Comma-separated statuses
Comma-separated tags
2Response
Successful Response
Settled incoming value converted to USD for the selected period.
"500.00"
Number of settled incoming transactions in the selected period.
Settled outgoing value converted to USD for the selected period.
"500.00"
Number of settled outgoing transactions in the selected period.
Pending incoming value converted to USD.
"500.00"
Number of pending incoming transactions.
Pending outgoing value converted to USD.
"500.00"
Number of pending outgoing transactions.
Was this page helpful?