Exporting Data

Receive raw payments data for reporting and daily reconciliations

You are able to export transaction data for:

  • Payments in a sent state
  • Refunds in a sent state

This data is provided as a zipped collection of CSVs for any date in the past.

Retrieving transaction data

  1. Initiating the data export

In order to initiate a data export, use the API endpoint GET https://api.banked.com/partner/v1/data_exports specifying a date and mode as query parameters.

And example request would look like:

curl --location --request GET 'https://api.banked.com/partner/v1/data_exports?date=2021-07-10&mode=test' \
--header 'Authorization: Bearer YOUR_TOKEN'

and a response would be:

Response: {
    id: 'EXPORT_ID'
    date: '2021-07-01',
  mode: 'test',
  status: 'processing'

2. Wait until the data is ready

The status parameter you see on the API response will change from processing to complete. Poll the endpoint GET https://api.banked.com/partner/v1/data_exports until the data is ready for download.

3. Download the data

When the data is ready for download, you may download it from https://api.banked.com/partner/v1/data_exports/EXPORT_ID. The data will be streamed back to you, so you will need to save the response.

curl --location --request GET 'https://api.banked.com/partner/v1/data_exports/EXPORT_ID' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Accept: application/octet-stream' > download.zip

Data format

Data will be provided as a zipped folder, containing two data types: payments, and refunds, segmented by businesses and business applications. There will be one folder for every business within each data type folder with data for the given day. Within that, there will be one folder for every business application, containing the CSV data files. Each CSV will contain up to 1000 rows and will be split into multiple files if required, sequentially numbered:


You can find example CSV data files below for payment sessions:

abcdef,2021-08-01 00:00:00 UTC,10000,GBP,sent,flared jeans,123456abcdef,business_id_1,business_application_id_1

and for refunds:

abcdefgh,2021-08-09 00:00:00 UTC,10000,GBP,sent,flared jeans,abcdefg123456789,abcdefg1234567,abcdef,business_id_1,business_application_id_1