# Download transactional tax

Retrieves a generated transactional tax report in CSV format.
In a successful response, you will be redirected to S3 to download the file.

Endpoint: GET /transactional/report/{report_id}/download
Version: 1.0.0
Security: merchant, signature

## Security:

  - `merchant` (unknown)
    apiKey in header merchant

  - `signature` (unknown)
    apiKey in header signature

## Path parameters:

  - `report_id` (string, required)
    Unique report identifier for download.
It follows the pattern [report_prefix] [date (yyMMdd)] [time (HHmmss)] [channel name].

## Header parameters:

  - `merchant` (string, required)

  - `signature` (string, required)

## Response 200:

  - `200` (unknown)
    `200` responses always indicate an error object. Successful downloads never return `200`. They redirect to S3 with `302` instead. Poll this endpoint and expect `204` until you receive the `302` redirect.

## Response 200 fields (application/json):

  - `error` (object, required)
    Error object.

  - `error.code` (string, required)
    Unauthorized access due to invalid credentials.
    Example: 1.01

  - `error.messages` (array, required)
    Array of error messages applied to the decline payment.

## Response 204:

  - `204` (unknown)
    Report is not ready

## Response 302:

  - `302` (unknown)
    Redirect to one-time S3 download report link

## Response 404:

  - `404` (unknown)
    Report not found

## Response 410:

  - `410` (unknown)
    Report unavailable (expired)

## Response 200 examples:

  - `Authentication failed` (unknown)

  - `Invalid data` (unknown)

