> ## 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 payments report

> Create a [payments report](/reporting/payments-report) for a selected period.

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


## OpenAPI

````yaml POST /reporting/v1/reports/payments
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/payments:
    post:
      tags:
        - Reporting
      summary: Create a payments report
      description: >-
        Create a [payments report](/reporting/payments-report) for a selected
        period.
      operationId: post-reporting-reports-payments
      parameters:
        - $ref: '#/components/parameters/XProcessingSignatureHeader'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                filters:
                  type: object
                  description: The period of the report.
                  properties:
                    created_at_from:
                      type: string
                      description: >-
                        The first day of the period, in the `YYYY-MM-DD` format
                        (UTC). Can't be later than today.
                    created_at_to:
                      type: string
                      description: "The last day of the period, in the `YYYY-MM-DD` format (UTC). Can't be earlier than `created_at_from` or later than today. The period can be up to\_12\_months long: for example, from `2026-01-01` to `2026-12-31`."
                  required:
                    - created_at_from
                    - created_at_to
              required:
                - filters
            examples:
              Create a payments report:
                value:
                  filters:
                    created_at_from: '2026-08-01'
                    created_at_to: '2026-08-31'
      responses:
        '202':
          description: |
            **Accepted**

            The job that generates the report 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 report. Use it
                      to [check the job
                      status](/api-reference/endpoints/jobs-info), [download the
                      report](/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: payments
                  created_at:
                    type: string
                    description: The time the report was requested.
                  updated_at:
                    type: string
                    description: >-
                      The time the job was last updated. The same as
                      `created_at` for a new job.
              examples:
                Report queued:
                  value:
                    report_job_id: fded1f73-3587-4ebe-a568-f3a01f5b2fed
                    status: queued
                    report_type: payments
                    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.created_at_from: The created at from field is required.
                      filters.created_at_to: The created at 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.created_at_from: The created at from is not a valid date.
                Start date null or not a string:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.created_at_from: The created at from field is invalid.
                End date not in the YYYY-MM-DD format:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.created_at_to: The created at to is not a valid date.
                End date null or not a string:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.created_at_to: The created at to field is invalid.
                End date in the future:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.created_at_to: >-
                        The created at to must be a date before or equal to
                        today.
                Start date in the future:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.created_at_from: >-
                        The created at from must be a date before or equal to
                        today.
                      filters.created_at_to: >-
                        The created at to must be a date before or equal to
                        today.
                End date before start date:
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.created_at_to: >-
                        The created at to must be a date after or equal to
                        created at from.
                "Period longer than\_12\_months":
                  value:
                    message: Unprocessable Entity
                    errors:
                      filters.created_at_to: The created at to must not span more than 12 months.
        '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.