> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rolla.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Export Transactions

> Exports wallet transactions as a downloadable file with optional filtering.

Export wallet transactions as a downloadable file. Supports the same filters as the transaction list endpoint but without pagination.

## Example Request

```bash theme={null}
curl -X GET "https://api.rolla.xyz/api/v1/external/wallet/transactions/export?currency=NGN&startDate=2024-01-01&endDate=2024-01-31" \
  -H "X-API-Key: your_api_key_here"
```

## Query Parameters

| Parameter         | Type   | Description                                                            |
| ----------------- | ------ | ---------------------------------------------------------------------- |
| `currency`        | string | Filter by 3-letter currency code                                       |
| `transactionType` | string | Filter by type: `deposit`, `withdrawal`, `swap`                        |
| `status`          | string | Filter by status: `pending`, `completed`, `failed`, `rejected`, `sent` |
| `startDate`       | string | Start date filter (YYYY-MM-DD)                                         |
| `endDate`         | string | End date filter (YYYY-MM-DD)                                           |

## Example Response

```json theme={null}
{
  "status": 200,
  "success": true,
  "message": "Transactions exported successfully",
  "data": {
    "url": "https://fpqdjdeslwryrsertmji.supabase.co/storage/v1/object/sign/transaction_documents/exports/4f7d3522-3a52-4402-8a0e-f1bd041c3eec/1774432456044.csv?token=eyJr...",
    "format": "csv",
    "totalRecords": 317
  }
}
```

<Tip>
  Use `startDate` and `endDate` to export transactions for a specific period, such as a monthly reconciliation report.
</Tip>

<Info>
  The `url` is a signed download link that expires after **1 hour**. Download the file promptly after receiving the response.
</Info>

<Warning>
  If no transactions match the selected filters, the endpoint returns a `404` error instead of an empty file.
</Warning>


## OpenAPI

````yaml GET /wallet/transactions/export
openapi: 3.1.0
info:
  title: Rolla Developer API
  description: >-
    API for programmatic transaction management on the Rolla platform. Monetary
    `amount` fields use the smallest unit of the referenced currency unless an
    endpoint says otherwise (e.g. NGN = kobo, USD = cents, where **100 cents =
    USD 1.00**).
  version: 1.0.0
servers:
  - url: https://api.rolla.xyz/api/v1/external
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /wallet/transactions/export:
    get:
      summary: Export Transactions
      description: >-
        Exports wallet transactions as a downloadable file with optional
        filtering.
      operationId: exportWalletTransactions
      parameters:
        - name: currency
          in: query
          description: Filter by 3-letter currency code
          schema:
            type: string
            minLength: 3
            maxLength: 3
        - name: transactionType
          in: query
          description: Filter by transaction type
          schema:
            type: string
            enum:
              - deposit
              - withdrawal
              - swap
        - name: status
          in: query
          description: Filter by status
          schema:
            type: string
            enum:
              - pending
              - completed
              - failed
              - rejected
              - sent
        - name: startDate
          in: query
          description: Start date filter (YYYY-MM-DD)
          schema:
            type: string
            format: date
        - name: endDate
          in: query
          description: End date filter (YYYY-MM-DD)
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Transactions exported successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Transactions exported successfully
                  data:
                    type: object
                    properties:
                      url:
                        type: string
                        format: uri
                        description: Download URL for the exported file
                      format:
                        type: string
                        description: File format
                        example: csv
                      totalRecords:
                        type: integer
                        description: Number of transactions exported
                        example: 150
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your Rolla API key

````