Generate Account Statement PDF
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/account-statement/pdf/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/account-statement/pdf/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/account-statement/pdf/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Private
Generate Account Statement PDF
Generate a PDF account statement covering a chosen date range.
Pass date_from and date_to as ISO 8601 timestamps; the range
may span at most twelve months. The response is the generated PDF.
GET
/
api
/
private
/
account-statement
/
pdf
/
Generate Account Statement PDF
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/account-statement/pdf/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/account-statement/pdf/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/account-statement/pdf/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Personal API key, created in the Digital Surge app under Account Settings → API Keys. Send it with every request as Authorization: Bearer <your-api-key>.
Query Parameters
ISO 8601 period start
ISO 8601 period end
Response
PDF binary (application/pdf)