# Download report
URL: /api-reference/stablecoins/reporting/get-reports-id-download

Download a generated report as a CSV attachment. Return `404` when the report does not exist, belongs to another customer, is still generating, has failed or has expired.

- `GET /reports/{id}/download`

```json
{
  "servers": [
    {
      "name": "Sandbox",
      "url": "https://stablecoins.sandbox.volt.io",
      "description": "Sandbox"
    },
    {
      "name": "Production",
      "url": "https://stablecoins.volt.io",
      "description": "Production"
    }
  ],
  "paths": {
    "/reports/{id}/download": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ReportId"
        }
      ],
      "get": {
        "summary": "Download report",
        "tags": [
          "Reporting"
        ],
        "operationId": "get-reports-id-download",
        "security": [
          {
            "Bearer": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/X-Volt-Api-Version"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ReportFileResponse"
          },
          "400": {
            "$ref": "#/components/responses/BadRequestResponse"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedResponse"
          },
          "403": {
            "$ref": "#/components/responses/AccessDeniedResponse"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundResponse"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequestsResponse"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerErrorResponse"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "OAuth access token."
      }
    },
    "parameters": {
      "ReportId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "Identifier of the report.",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "X-Volt-Api-Version": {
        "name": "X-Volt-Api-Version",
        "in": "header",
        "required": true,
        "description": "Version of the API used. Currently, version `1` is the only version.",
        "schema": {
          "type": "integer",
          "enum": [
            1
          ],
          "examples": [
            1
          ]
        }
      }
    },
    "responses": {
      "ReportFileResponse": {
        "description": "**OK** - The CSV report, as an attachment named after the wallet and period.",
        "headers": {
          "Content-Disposition": {
            "description": "Attachment with the file name.",
            "schema": {
              "type": "string"
            },
            "examples": [
              "attachment; filename=\"wallet-report-6a4f0c9e-2d1b-4c8a-9f3e-b7d2a1c4e5f6-20260801-20260901.csv\""
            ]
          }
        },
        "content": {
          "text/csv": {
            "schema": {
              "type": "string",
              "format": "binary"
            },
            "examples": {
              "WalletReportCsvExample": {
                "summary": "Wallet bookings and balances",
                "value": "accountId,accountType,accountLabel,accountIdentifier,customerId,customerName,transactionId,transactionType,subType,transactionStatus,createdAt,updatedAt,bookedAt,paymentId,counterpartyAccountId,paymentReference,internalReference,amountCredit,amountDebit,currency,balanceAfter,paidAmount,paidCurrency,exchangeRateBase,exchangeRateCounter,exchangeRate,network,txHash,blockchainAddress,sourceAddress,channelId,beneficiaryName,beneficiaryIban,beneficiaryAccountNumber,riskLevel\n6a4f0c9e-2d1b-4c8a-9f3e-b7d2a1c4e5f6,CRYPTO_WALLET,USDT wallet,,29e92b5a-325b-4489-97f4-4a28785e132f,Acme Ltd,,OPENING_BALANCE,,,2026-08-01T00:00:00Z,2026-08-01T00:00:00Z,2026-08-01T00:00:00Z,,,,,,,USDT,43.432465,,,,,,,,,,,,,,\n6a4f0c9e-2d1b-4c8a-9f3e-b7d2a1c4e5f6,CRYPTO_WALLET,USDT wallet,,29e92b5a-325b-4489-97f4-4a28785e132f,Acme Ltd,5cc50031-659d-42b2-9fde-3f5be51bfb0f,PAYIN,CHANNEL,COMPLETED,2026-08-09T12:59:41Z,2026-08-09T13:01:35Z,2026-08-09T13:01:35Z,,,user-7mz5t0,,300,,USDT,343.432465,300,USDT,USDT,USDT,1,ETHEREUM,0xc1def1798aaa2b0d56feaef1f43daa4679f97736b928b6eefcec175c702ee9ca,0x16ecb48f0c669ba6985fbbcac981e79c76e5f059,0x029f6faa9b08c831ba9ced422bb1805c0e160c69,16d77016-fdbf-44f3-a3dc-24783f25f23f,,,,LOW\n6a4f0c9e-2d1b-4c8a-9f3e-b7d2a1c4e5f6,CRYPTO_WALLET,USDT wallet,,29e92b5a-325b-4489-97f4-4a28785e132f,Acme Ltd,5cc50031-659d-42b2-9fde-3f5be51bfb0f,FEE,DEPOSIT_FEE,COMPLETED,2026-08-09T13:01:35Z,2026-08-09T13:01:35Z,2026-08-09T13:01:35Z,,,user-7mz5t0,,,3,USDT,340.432465,,,,,,ETHEREUM,,,,16d77016-fdbf-44f3-a3dc-24783f25f23f,,,,\n6a4f0c9e-2d1b-4c8a-9f3e-b7d2a1c4e5f6,CRYPTO_WALLET,USDT wallet,,29e92b5a-325b-4489-97f4-4a28785e132f,Acme Ltd,,CLOSING_BALANCE,,,2026-09-01T00:00:00Z,2026-09-01T00:00:00Z,2026-09-01T00:00:00Z,,,,,,,USDT,340.432465,,,,,,,,,,,,,,\n"
              }
            }
          }
        }
      },
      "BadRequestResponse": {
        "description": "**Bad request** - Request you sent is invalid or malformed. Response will contain a description of the actual problem.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "BAD_REQUEST",
                    "CONFIGURATION_ERROR"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "BAD_REQUEST"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "BadRequestExample": {
                "summary": "Malformed request",
                "value": {
                  "code": "BAD_REQUEST",
                  "message": "The request is invalid or malformed."
                }
              },
              "ConfigurationErrorExample": {
                "summary": "Customer not onboarded for stablecoin payments",
                "value": {
                  "code": "CONFIGURATION_ERROR",
                  "message": "Customer is not onboarded for stablecoin payments."
                }
              }
            }
          }
        }
      },
      "UnauthorizedResponse": {
        "description": "**Unauthorized** - Your credentials were invalid. It may be that the token you've used has expired. Try re-authenticating with valid or updated credentials and retry this request.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "UNAUTHORISED"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "UNAUTHORISED"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "UnauthorizedExample": {
                "summary": "Missing or invalid access token",
                "value": {
                  "code": "UNAUTHORISED",
                  "message": "Authentication required."
                }
              }
            }
          }
        }
      },
      "AccessDeniedResponse": {
        "description": "**Access denied** - Although your credentials are correct, your access to this section of the API has been disabled or limited. Subsequent requests to this endpoint will not be processed.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "ACCESS_DENIED"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "ACCESS_DENIED"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "AccessDeniedExample": {
                "summary": "Access to the API disabled or limited",
                "value": {
                  "code": "ACCESS_DENIED",
                  "message": "Your access to this part of the API has been disabled or limited."
                }
              }
            }
          }
        }
      },
      "NotFoundResponse": {
        "description": "**Not found** - The resource that you are requesting cannot be found.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "RESOURCE_NOT_FOUND"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "RESOURCE_NOT_FOUND"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "WalletNotFoundExample": {
                "summary": "Resource not found",
                "value": {
                  "code": "RESOURCE_NOT_FOUND",
                  "message": "Not found."
                }
              }
            }
          }
        }
      },
      "TooManyRequestsResponse": {
        "description": "**Too many requests** - The rate limit was exceeded. Try again later.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "RATE_LIMIT_EXCEEDED"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "RATE_LIMIT_EXCEEDED"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "TooManyRequestsExample": {
                "summary": "Rate limit exceeded",
                "value": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Too many requests. Try again later."
                }
              }
            }
          }
        }
      },
      "InternalServerErrorResponse": {
        "description": "**Internal server error** - Something went wrong and request cannot be processed due to server error. Message will contain trace ID and timestamp, which allows to investigate what went wrong.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "INTERNAL_SERVER_ERROR"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "INTERNAL_SERVER_ERROR"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "InternalServerErrorExample": {
                "summary": "Unexpected internal error",
                "value": {
                  "code": "INTERNAL_SERVER_ERROR",
                  "message": "An internal error occurred."
                }
              }
            }
          }
        }
      }
    },
    "headers": {
      "Retry-After": {
        "description": "Number of seconds to wait before retrying the request.",
        "schema": {
          "type": "integer",
          "examples": [
            30
          ]
        }
      }
    }
  }
}
```