List All Reports

This request can be used to list all reports. The list of objects is sorted in descending order by creation date, with the most recently created object appearing first.

GET/reports/list

Header Parameters

X-Organization-Codestringrequired

Organization code associated to the request.

Query Parameters

account_idstring

The unique identifier of the account. To request the creation of a report for all accounts, don’t send this parameter. Otherwise indicate all the account_id you want to include (MAX 64; MIN 36).

page_sizeinteger

Limit of reports to retrieve. Default 1 and maximum 99 (MAX 2; MIN 1).

page_numberinteger

Reports start page. Default 1 and maximum 10 (MAX 2; MIN 1).

start_datestring

Reports created after and equal this date (ISO 8601 MAX 27; MIN 27).

end_datestring

Reports created before and equal this date (ISO 8601 MAX 27; MIN 27).

Response

200

idstring
typestring
start_datestring
end_datestring
merchant_reference_idstring
created_atstring
updated_atstring
expires_atstring
statusstring

400

codestring
messagesstring[]

401

codestring
messagesstring[]

403

codestring
messagesstring[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/reports/list?account_id=<account_id>&page_size=<page_size>&page_number=<page_number>&start_date=<start_date>&end_date=<end_date>" \
  -H "X-Organization-Code: <X-Organization-Code>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
[
  {
    "id": "5104911d-5df9-229e-8468-bd41abea1",
    "type": "TRANSACTIONS",
    "start_date": "2022-05-09T20:46:54.786342Z",
    "end_date": "2022-05-09T20:46:54.786342Z",
    "merchant_reference_id": "Merchant_report_1234",
    "created_at": "2022-05-16T20:46:54.786342Z",
    "updated_at": "2022-05-16T20:46:54.786342Z",
    "expires_at": "2022-05-16T20:46:54.786342Z",
    "status": "SUCCEEDED"
  }
]