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

# Trigger callbacks for multiple transactions



## OpenAPI

````yaml /OPENAPI.yaml post /api/transactions/callbacks
openapi: 3.0.3
info:
  title: Redf Backend API
  version: 1.0.0
  description: >
    OpenAPI specification for the current HTTP backend exposed by the Phoenix
    router. The spec reflects the routes and controller behaviour currently
    implemented in `blockchain_app/lib/blockchain_app_web/router.ex`.
servers:
  - url: http://localhost:4000
    description: Local development
security: []
tags:
  - name: Health
  - name: Networks
  - name: Projects
  - name: Transactions
  - name: Widgets
paths:
  /api/transactions/callbacks:
    post:
      tags:
        - Transactions
      summary: Trigger callbacks for multiple transactions
      operationId: triggerTransactionCallbacks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendCallbacksRequest'
      responses:
        '200':
          description: Batch callback results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendCallbacksResponse'
        '400':
          description: Invalid payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SendCallbacksRequest:
      type: object
      required:
        - tx_ids
      properties:
        tx_ids:
          type: array
          minItems: 1
          items:
            oneOf:
              - type: string
              - type: integer
    SendCallbacksResponse:
      type: object
      required:
        - status
        - results
      properties:
        status:
          type: string
          enum:
            - ok
        results:
          type: array
          items:
            $ref: '#/components/schemas/CallbackResult'
    ErrorResponse:
      type: object
      description: >
        Generic error payload used by the API. Some handlers return `error`,
        while validation and internal checker failures may return only `errors`
        or `reason`.
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - error
        error:
          type: string
          example: invalid_request
        reason:
          type: string
          nullable: true
        detail:
          type: string
          nullable: true
        field:
          oneOf:
            - type: string
            - type: integer
          nullable: true
        currency:
          type: string
          nullable: true
        missing:
          type: array
          items:
            type: string
        errors:
          $ref: '#/components/schemas/ValidationErrors'
        message:
          type: string
          nullable: true
        constraint:
          type: string
          nullable: true
        tx_status:
          type: string
          nullable: true
        project_uid:
          type: string
          nullable: true
        widget_id:
          oneOf:
            - type: string
            - type: integer
          nullable: true
        expected:
          type: object
          additionalProperties: true
      additionalProperties: true
    CallbackResult:
      type: object
      required:
        - status
      properties:
        tx_id:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - ok
            - error
        http_status:
          type: integer
          nullable: true
        body:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
    ValidationErrors:
      type: object
      description: Map of field names to validation error messages
      additionalProperties:
        type: array
        items:
          type: string

````