Skip to Content
Transactions & ReportingReport Files

Download a Report File

Get a link to download a report file.

This request returns the report file metadata together with a link, which is a short-lived URL used to download the report content. The link is valid for 15 minutes from the time the request is made. Once it expires, a new link must be generated to access the file again.

A report file is available for 30 days from the date it is created. The expiresAt field indicates the actual expiration date of the report file. This request returns a 404 Not Found response if the file does not exist or has already expired.

POST
/v1/report-files/{id}/download

Authorization

authorization
headerAuthorizationBearer <SECRET_API_KEY>

Set Your Secret API Key

Path Parameters

id*string

Response Body

OK

*/*
createdAt?string

Time at which the object was created. In ISO 8601 format.

expiresAt?string

Time at which the report file expires and can no longer be downloaded. In ISO 8601 format. Not the link expiry, which is shorter.

fileName?string

Name of the report file.

format?string

File format. CSV is comma-separated values.

id?string

Unique identifier for this report file.

link?string

Short-lived URL used to download the report content. Valid for 15 minutes from the time the request is made.

reportDate?string

Report date, in the format YYYY-MM-DD.

type?string

Report file type. DBS_CREDIT_CARD_SETTLEMENT_REPORT is the DBS credit card settlement report.

updatedAt?string

Time at which the object was last updated. In ISO 8601 format.

Example Request
curl -X POST 'https://api.tryacme.com/v1/report-files/string/download'
Example Response
{
  "createdAt": "string",
  "expiresAt": "string",
  "fileName": "string",
  "format": "string",
  "id": "string",
  "link": "string",
  "reportDate": "string",
  "type": "string",
  "updatedAt": "string"
}