Step 2: download a transaction activity CSV

Now that we've retrieved a JSON list of transactions, let's try downloading a CSV version. This will contain a slightly different set of information. Learn more about the transaction activity CSV format.

info

There are a number of additional parameters available for you to filter your results. For more information, see the API reference

In this example, we're downloading a CSV list of all transactions without adding any filters.

SandboxProduction
Copy
Copied
curl -i -X POST \
  https://api-sandbox.equalsmoney.com/v2/activity/download \
  -H 'Authorization: {apiKey}' \
  -H 'Content-Type: application/json' \
  -d '{
    "accountId": "{accountId}",
    "email": "{emailAddress}", # Your email address
    "name": "{name}", # Your name
    "startDate": "{startDate}", # The earliest date from which to retrieve results (includes transactions on this date)
    "endDate": "{endDate}" # The latest date until which to retrieve results (includes transactions on this date)
  }'
Copy
Copied
curl -i -X POST \
  https://api.equalsmoney.com/v2/activity/download \
  -H 'Authorization: {apiKey}' \
  -H 'Content-Type: application/json' \
  -d '{
    "accountId": "{accountId}",
    "email": "{emailAddress}", # Your email address
    "name": "{name}", # Your name
    "startDate": "{startDate}", # The earliest date from which to retrieve results (includes transactions on this date)
    "endDate": "{endDate}"  # The latest date until which to retrieve results (includes transactions on this date)
  }'

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