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

# Create a fee statement

> Create a [fee statement](/reporting/balance-statements) for a selected period.

For every error this endpoint returns and what it means, see [API errors: Create a fee statement](https://docs.cryptoprocessing.us/api-reference/errors.md#create-a-fee-statement).


## OpenAPI

````yaml POST /reporting/v1/reports/fee_statement
openapi: 3.1.0
info:
  title: Merchant Backend V2
  version: '1.0'
  description: Documentation for merchant backend processing endpoints
servers:
  - url: https://app.cryptoprocessing.us/api
security:
  - xProcessingKey: []
tags:
  - name: Status
  - name: Balance
  - name: Currencies
  - name: Deposit addresses
  - name: Withdrawal
  - name: Exchange
  - name: Invoices
  - name: Transactions
  - name: Reporting
paths:
  /reporting/v1/reports/fee_statement:
    post:
      tags:
        - Reporting
      summary: Create a fee statement
      description: >-
        Create a [fee statement](/reporting/balance-statements) for a selected
        period.
      operationId: post-reporting-reports-fee-statement
      parameters:
        - $ref: '#/components/parameters/XProcessingSignatureHeader'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                filters:
                  type: object
                  description: The period of the statement.
                  properties:
                    date_from:
                      type: string
                      description: >-
                        The first day of the period, in the `YYYY-MM-DD` format
                        (UTC). Can't be later than today.
                    date_to:
                      type: string
                      description: >-
                        The last day of the period, in the `YYYY-MM-DD` format
                        (UTC). Can't be earlier than `date_from` or later than
                        today.
                  required:
                    - date_from
                    - date_to
              required:
                - filters
            examples:
              Create a fee statement:
                value:
                  filters:
                    date_from: '2026-08-01'
                    date_to: '2026-08-31'
      responses:
        '202':
          description: |
            **Accepted**

            The job that generates the statement is queued.
          content:
            application/json:
              schema:
                type: object
                required:
                  - report_job_id
                  - status
                  - report_type
                  - created_at
                  - updated_at
                properties:
                  report_job_id:
                    type: string
                    description: >
                      The unique ID of the job that generates the statement. Use
                      it to [check the job
                      status](/api-reference/endpoints/jobs-info), [download the
                      statement](/api-reference/endpoints/jobs-download) or
                      [cancel the job](/api-reference/endpoints/jobs-cancel).
                  status:
                    type: string
                    description: The status of the job.
                    const: queued
                  report_type:
                    type: string
                    description: The type of the report.
                    const: fee_statement
                  created_at:
                    type: string
                    description: The time the statement was requested.
                  updated_at:
                    type: string
                    description: >-
                      The time the job was last updated. The same as
                      `created_at` for a new job.
              examples:
                Statement queued:
                  value:
                    report_job_id: 5e2b7c90-1f3d-4a8b-b6e4-9d0a2c7f8e15
                    status: queued
                    report_type: fee_statement
                    created_at: '2026-09-01T10:00:00Z'
                    updated_at: '2026-09-01T10:00:00Z'
        '400':
          description: >
            **Bad Request**


            The request body is empty or not valid JSON, or the Content-Type
            header is not set to `application/json`.
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    title: EmptyBody
                    description: The request body is empty.
                    properties:
                      message:
                        type: string
                        description: Human-readable error message.
                      errors:
                        type: object
                        description: >-
                          A map of the missing part of the request (`body` or
                          `content-type`) to a human-readable error message.
                        additionalProperties:
                          type: string
                  - type: object
                    title: MalformedJson
                    description: >-
                      The request body is not valid JSON or the Content-Type
                      header is not set to `application/json`.
                    properties:
                      error:
                        type: string
                        description: Human-readable error message.
                      code:
                        type: string
                        description: Error code.
              examples:
                Empty body:
                  value:
                    message: Bad Request
                    errors:
                      body: The request body is required.
                Empty body without Content-Type:
                  value:
                    message: Bad Request
                    errors:
                      content-type: The content type field is required.
                Malformed JSON:
                  value:
                    error: Bad content format
                    code: bad_content_format
        '403':
          $ref: '#/components/responses/HeaderAuthorization'
        '422':
          description: |
            **Unprocessable Entity**

            The request failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportValidationError'
              examples:
                Dates missing:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.date_from: The date from field is required.
                      filters.date_to: The date to field is required.
                Filters missing:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters: The filters field is required.
                Unknown filter:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters: The filters field is invalid.
                Start date not in the YYYY-MM-DD format:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.date_from: The date from is not a valid date.
                Start date null or not a string:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.date_from: The date from field is invalid.
                End date not in the YYYY-MM-DD format:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.date_to: The date to is not a valid date.
                End date null or not a string:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.date_to: The date to field is invalid.
                End date in the future:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.date_to: The date to must be a date before or equal to today.
                Start date in the future:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.date_from: The date from must be a date before or equal to today.
                      filters.date_to: The date to must be a date before or equal to today.
                End date before start date:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.date_to: The date to must be a date after or equal to date from.
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    XProcessingSignatureHeader:
      name: X-Processing-Signature
      in: header
      required: true
      description: >-
        Hex-encoded HMAC-SHA512 signature of the request body, [generated using
        your secret key](/api-reference/authentication).
      schema:
        type: string
  responses:
    HeaderAuthorization:
      description: |
        **Forbidden**
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                description: Human-readable error message.
              code:
                type: string
                description: Error code.
            description: >-
              Invalid or missing headers, the API key does not have access to
              the endpoint, or your merchant account is disabled. Refer to
              [Errors](/api-reference/errors#general-errors) for troubleshooting
              steps.
          examples:
            Bad signature header:
              value:
                error: Bad signature header
                code: bad_header_signature
            API key does not have the required ability:
              value:
                error: The API key does not have access to this endpoint.
                code: api_key_ability_required
            No signature header:
              value:
                error: No signature header
                code: required_header_signature
            No key header:
              value:
                error: No key header
                code: required_header_key
            Client is not enabled:
              value:
                error: Client is not enabled
                code: client_disabled
    TooManyRequests:
      description: >
        **Too Many Requests**


        You sent too many requests in a short time. The limit is counted per API
        key, so requests from all your servers that use the same key count
        together. Wait before you send the request again, increasing the delay
        if you get `429` again, and handle this error by its status code, not by
        a particular response body. See [Too many
        requests](/api-reference/errors#too-many-requests-429-too-many-requests).
  schemas:
    ReportValidationError:
      type: object
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: Human-readable error message.
        errors:
          type: object
          description: >-
            A map of request field names to a human-readable validation error
            message for that field.
          additionalProperties:
            type: string
            description: Human-readable validation error message for this field.
  securitySchemes:
    xProcessingKey:
      type: apiKey
      description: Your [API key](/merchant-administration/generate-and-activate-api-keys).
      in: header
      name: X-Processing-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.