Step 4: download a statement PDF

Now that we've downloaded a CSV, let's also get the corresponding PDF. The PDF is designed to be an easily-read summary, so it contains less information than the CSV does. Learn more about the statement PDF format.

SandboxProduction
Copy
Copied
curl -i -X POST \
  https://api-sandbox.equalsmoney.com/v2/statement/download \
  -H 'Authorization: ApiKey {apiKey}' \
  -H 'Content-Type: application/json' \
  -d '{
    "accountId": "{accountId}",
    "email": "{emailAddress}", # Your email address
    "name": "{name}",
    "startDate": "2023-02-15", # The date from which you want to retrieve transactions (includes transactions on this date)
    "endDate": "2023-03-30", # The date until which you want to retrieve transactions (at least one day before today)
    "currencyCodes": "eur,gbp,usd",  # The ISO-4217 code of one or more currencies to retrieve transactions for
    "budgetIds": [
      "{budgetId}" # The ID of one or more budgets to retrieve transactions for
    ],
    "fileFormat": "pdf"
  }'
Copy
Copied
curl -i -X POST \
  https://api.equalsmoney.com/v2/statement/download \
  -H 'Authorization: ApiKey {apiKey}' \
  -H 'Content-Type: application/json' \
  -d '{
    "accountId": "{accountId}",
    "email": "{emailAddress}", # Your email address
    "name": "{name}",
    "startDate": "2023-02-15", # The date from which you want to retrieve transactions (includes transactions on this date)
    "endDate": "2023-03-30", # The date until which you want to retrieve transactions (at least one day before today)
    "currencyCodes": "eur,gbp,usd",  # The ISO-4217 code of one or more currencies to retrieve transactions for
    "budgetIds": [
      "{budgetId}" # The ID of one or more budgets to retrieve transactions for
    ],
    "fileFormat": "pdf"
  }'

If your request is successful, you'll receive a 202 response. If you're using a production environment, you'll receive an email containing a download link shortly after.

Copy
Copied
{
  "message": "accepted"
}

Next