---
updatedAt: 2025-03-17T18:55:30.000Z
agentTools:
  projectIndex: https://docs.staxpayments.com/llms.txt
---

# Fees

Use this API to get your total fees paid within the timeline specified.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "stax-api",
    "version": "0.1"
  },
  "servers": [
    {
      "url": "https://apiprod.fattlabs.com/"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "API key for merchant-level operations. Provides access to merchant-specific endpoints including transactions, payments, customer management, and merchant account settings. This key is scoped to a single merchant account and cannot access partner-level functionality."
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/query/statement/v3/fees": {
      "get": {
        "summary": "Fees",
        "description": "Use this API to get your total fees paid within the timeline specified.",
        "operationId": "fee-statement",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "required": true,
            "description": "YYYY-MM-DD",
            "schema": {
              "type": "string",
              "default": "2025-01-01"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": true,
            "description": "YYYY-MM-DD",
            "schema": {
              "type": "string",
              "default": "2025-01-31"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "version": 2,
                      "data": [
                        {
                          "name": "Per Transaction Fee",
                          "count": 5,
                          "amount": 0.46
                        },
                        {
                          "name": "Rate Fee",
                          "count": 2,
                          "amount": 0.02
                        }
                      ],
                      "summary": {
                        "total": 0.48
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Per Transaction Fee"
                          },
                          "count": {
                            "type": "integer",
                            "example": 5,
                            "default": 0
                          },
                          "amount": {
                            "type": "number",
                            "example": 0.46,
                            "default": 0
                          }
                        }
                      }
                    },
                    "summary": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number",
                          "example": 0.48,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```