---
updatedAt: 2026-06-06T07:52:57.000Z
agentTools:
  projectIndex: https://developers.paygreen.fr/llms.txt
---

# Export Transactions

Export transactions into a CSV file

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Payment API",
    "description": "This API processes PayGreen V3 payment",
    "version": "1.46.3"
  },
  "servers": [
    {
      "url": "https://api.paygreen.fr",
      "description": "Production environment"
    },
    {
      "url": "https://sb-api.paygreen.fr",
      "description": "Sandbox environment"
    }
  ],
  "paths": {
    "/payment/transactions/export": {
      "get": {
        "tags": [
          "Transactions"
        ],
        "summary": "Export Transactions",
        "description": "Export transactions into a CSV file",
        "operationId": "get_export_transactions",
        "parameters": [
          {
            "name": "requester_shop_id",
            "in": "query",
            "description": "The Shop ID that initiated the Transaction. In a Marketplace mode, this is the Marketplace Shop ID.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "sh_[0-9a-f]{32}"
            },
            "example": "sh_9cc7d137d12f4c7b9d72ef4a279b3d2d"
          },
          {
            "name": "shop_id",
            "in": "query",
            "description": "The beneficiary Shop ID. In a Marketplace mode, this is the sub-entity ID.",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "sh_[0-9a-f]{32}"
            },
            "example": "sh_9cc7d137d12f4c7b9d72ef4a279b3d2d"
          },
          {
            "name": "buyer_id",
            "in": "query",
            "description": "The buyer Shop ID.",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "sh_[0-9a-f]{32}"
            },
            "example": "sh_9cc7d137d12f4c7b9d72ef4a279b3d2d"
          },
          {
            "name": "start_at",
            "in": "query",
            "description": "Use this parameter to return only Transactions initiated later than this date. `start_at` and `end_at` must not be more than one month apart",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "1970-01-01"
          },
          {
            "name": "end_at",
            "in": "query",
            "description": "Use this parameter to return only Transactions initiated earlier than this date. `start_at` and `end_at` must not be more than one month apart",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "1970-02-01"
          },
          {
            "name": "export_type",
            "in": "query",
            "description": "Type of export. Default is `transactions`. Other value is `operations`\n            to export both transactions and operations.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "transactions",
              "enum": [
                "transactions",
                "operations"
              ]
            },
            "example": "transactions"
          },
          {
            "name": "separator",
            "in": "query",
            "description": "Separator for CSV file. Default is `,`",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": ","
          },
          {
            "name": "max_per_page",
            "in": "query",
            "description": "The maximum number of results per page. Default is 20. Maximum is 3000.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 20,
              "maximum": 3000
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number. Default is 1 first page.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the CSV export in base64",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "export": {
                      "description": "The CSV file encoded in base64 format.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request, e.g. if the date interval is more than one month"
          },
          "401": {
            "description": "Unauthenticated"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "tags": [
    {
      "name": "Transactions"
    }
  ]
}
```