> ## 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.

# Cancel job

> Cancel a job that generates a report.

For every error this endpoint returns and what it means, see [API errors: Cancel job](https://docs.cryptoprocessing.us/api-reference/errors.md#cancel-job).


## OpenAPI

````yaml POST /reporting/v1/jobs/{report_job_id}/cancel
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/jobs/{report_job_id}/cancel:
    post:
      tags:
        - Reporting
      summary: Cancel job
      description: Cancel a job that generates a report.
      operationId: post-reporting-jobs-cancel
      parameters:
        - $ref: '#/components/parameters/XProcessingSignatureHeader'
        - $ref: '#/components/parameters/ReportJobIdPath'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              description: >-
                This endpoint doesn't accept any request parameters. Both an
                empty JSON object (`{}`) and an empty body are accepted.
            examples:
              Empty JSON object:
                value: {}
      responses:
        '200':
          description: |
            **OK**

            The job is cancelled, and its `status` is `cancelled`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportJob'
              examples:
                Payments report job cancelled:
                  value:
                    report_job_id: fded1f73-3587-4ebe-a568-f3a01f5b2fed
                    status: cancelled
                    report_type: payments
                    created_at: '2026-09-01T10:00:00Z'
                    updated_at: '2026-09-01T10:00:01Z'
                    parameters:
                      fields:
                        - TRANSACTION_ENTRY_ID
                        - TRANSACTION_ID
                        - PAYMENT_REQUEST_ID
                        - PAYMENT_ID
                        - FOREIGN_ID
                        - CURRENCY
                        - TYPE
                        - AMOUNT
                        - OPERATION_ID
                        - OPERATION_TYPE
                        - BALANCE
                        - NOTE
                        - CREATED_AT
                        - CONFIRMED_AT
                      filters:
                        created_at_from: '2026-08-01T00:00:00Z'
                        created_at_to: '2026-08-31T23:59:59.999Z'
                Transactions report job cancelled:
                  value:
                    report_job_id: 7c1e9b52-0d4a-4f8e-9a63-2b5d8e4f1c07
                    status: cancelled
                    report_type: transactions
                    created_at: '2026-09-01T10:00:00Z'
                    updated_at: '2026-09-01T10:00:01Z'
                    parameters:
                      fields:
                        - DATE
                        - ENTRY_ID
                        - TRANSACTION_ID
                        - INVOICE_ID
                        - PAYMENT_REQUEST_ID
                        - CLIENT_ID
                        - END_USER_REFERENCE
                        - FOREIGN_ID
                        - TYPE
                        - TRANSACTION_TYPE
                        - STATUS
                        - CROSS_CURRENCY
                        - CLIENT_NAME
                        - AMOUNT_FROM
                        - CURRENCY_FROM
                        - AMOUNT_TO
                        - CURRENCY_TO
                        - AMOUNT_EQUIVALENT
                        - EQUIVALENT_CURRENCY
                        - MINING_FEE_AMOUNT_PER_USER
                        - MINING_FEE_CURRENCY_PER_USER
                        - PROCESSING_FEE_AMOUNT_PER_USER
                        - PROCESSING_FEE_CURRENCY_PER_USER
                        - ADDRESS
                        - SENDER_ADDRESS
                        - TAG
                        - TXID
                        - RISKSCORE
                        - RISKSCORE_SCORECHAIN
                        - NOTE
                        - ORIGIN
                        - CREATED_BY
                        - UPDATED_AT
                      filters:
                        created_at_from: '2026-08-01T00:00:00Z'
                        created_at_to: '2026-08-31T23:59:59.999Z'
                Balance statement job cancelled:
                  value:
                    report_job_id: 3a8d5f21-6b4c-4e9a-8f17-c2d0e5b9a463
                    status: cancelled
                    report_type: balance_statement
                    created_at: '2026-09-01T10:00:00Z'
                    updated_at: '2026-09-01T10:00:01Z'
                    parameters:
                      fields: []
                      filters:
                        date: '2026-08-31'
                        visible_zero_balance: false
                Fee statement job cancelled:
                  value:
                    report_job_id: 5e2b7c90-1f3d-4a8b-b6e4-9d0a2c7f8e15
                    status: cancelled
                    report_type: fee_statement
                    created_at: '2026-09-01T10:00:00Z'
                    updated_at: '2026-09-01T10:00:01Z'
                    parameters:
                      fields: []
                      filters:
                        date_from: '2026-08-01'
                        date_to: '2026-08-31'
                Cash flow statement job cancelled:
                  value:
                    report_job_id: 8f4a1d63-2c7e-4b5f-a9d8-6e3b0c1f7a24
                    status: cancelled
                    report_type: cash_flow_statement
                    created_at: '2026-09-01T10:00:00Z'
                    updated_at: '2026-09-01T10:00:01Z'
                    parameters:
                      fields: []
                      filters:
                        date_from: '2026-08-01'
                        date_to: '2026-08-31'
        '403':
          $ref: '#/components/responses/HeaderAuthorization'
        '404':
          $ref: '#/components/responses/ReportNotFound'
        '409':
          description: >
            **Conflict**


            The job [status](/api-reference/endpoints/jobs-info#response-status)
            isn't `queued` or `generating`, so there is nothing to cancel.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportError'
              examples:
                Status isn't queued or generating:
                  value:
                    message: Conflict
        '422':
          $ref: '#/components/responses/ReportJobIdValidationError'
        '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
    ReportJobIdPath:
      name: report_job_id
      in: path
      required: true
      description: >-
        The `report_job_id` from the response to the request that created the
        report.
      schema:
        type: string
        example: fded1f73-3587-4ebe-a568-f3a01f5b2fed
  schemas:
    ReportJob:
      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.
        status:
          type: string
          description: "The status of the job.\n\n- `ready`: you can [download the report](/api-reference/endpoints/jobs-download).\n- `cancelled`: the job was [cancelled](/api-reference/endpoints/jobs-cancel), and there is no file to download.\n- `archived`: the report is more than\_30\_days old and can't be downloaded anymore. Create a new report if you need it.\n"
          enum:
            - queued
            - generating
            - ready
            - failed
            - cancelled
            - archived
        report_type:
          type: string
          description: The type of the report.
          enum:
            - payments
            - transactions
            - balance_statement
            - fee_statement
            - cash_flow_statement
        created_at:
          type: string
          description: The time the report was requested.
        updated_at:
          type: string
          description: The time the job was last updated.
        parameters:
          type: object
          description: The settings the report was created with.
          properties:
            fields:
              type: array
              description: "The columns of the CSV file. See [Payments report](/reporting/payments-report) and [Transactions report](/reporting/transactions-report). Empty for a statement. In a transactions report, four\_columns have other names here than in the file's header row: `MINING_FEE_AMOUNT_PER_USER` → `MINING_FEE_AMOUNT`, `MINING_FEE_CURRENCY_PER_USER` → `MINING_FEE_CURRENCY`, `PROCESSING_FEE_AMOUNT_PER_USER` → `PROCESSING_FEE_AMOUNT`, `PROCESSING_FEE_CURRENCY_PER_USER` → `PROCESSING_FEE_CURRENCY`."
              items:
                type: string
            filters:
              description: >-
                The filters from the request. Which fields it has depends on
                `report_type`.
              oneOf:
                - title: Payments or transactions report
                  type: object
                  properties:
                    created_at_from:
                      type: string
                      description: "The start of the period, 00:00:00\_UTC on the `created_at_from` day of the request."
                      example: '2026-08-01T00:00:00Z'
                    created_at_to:
                      type: string
                      description: >-
                        The end of the period, the end of the `created_at_to`
                        day of the request in UTC.
                      example: '2026-08-31T23:59:59.999Z'
                - title: Balance statement
                  type: object
                  properties:
                    date:
                      type: string
                      description: The `date` from the request.
                      example: '2026-08-31'
                    visible_zero_balance:
                      type: boolean
                      description: The `visible_zero_balance` from the request.
                - title: Fee or cash flow statement
                  type: object
                  properties:
                    date_from:
                      type: string
                      description: The `date_from` from the request.
                      example: '2026-08-01'
                    date_to:
                      type: string
                      description: The `date_to` from the request.
                      example: '2026-08-31'
    ReportError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: Human-readable error message.
    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.
  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
    ReportNotFound:
      description: |
        **Not Found**

        The report doesn't exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ReportError'
          examples:
            Report doesn't exist:
              value:
                message: Not Found
    ReportJobIdValidationError:
      description: |
        **Unprocessable Entity**

        The report ID isn't valid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ReportValidationError'
          examples:
            Invalid report ID:
              value:
                message: Unprocessable Entity
                errors:
                  report_job_id: The report job id field is invalid.
    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).
  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.