# Get batch report

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /payouts/bulk/{batch_id}/report:
    get:
      summary: Get batch report
      deprecated: false
      description: >-
        Retrieves a detailed report for a bulk payout batch, including payouts
        and summary.
      operationId: getBulkPayoutReport
      tags:
        - Vrtx APIs/Payouts
        - Payouts
      parameters:
        - name: batch_id
          in: path
          description: ''
          required: true
          example: ''
          schema:
            type: string
            minLength: 1
            examples:
              - batch_01HZY6ZQ4J8ZKFE20QG93DYD3A
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  batch_id:
                    type: string
                    minLength: 1
                    description: Identifier of the payout batch
                    examples:
                      - batch_01HZY6ZQ4J8ZKFE20QG93DYD3A
                  report_status:
                    type: string
                    enum:
                      - PROCESSING
                      - READY
                      - ERROR
                    description: Current processing status of the payout batch
                    examples:
                      - READY
                  summary:
                    type: object
                    properties:
                      total_transactions:
                        type: integer
                        minimum: 0
                        description: Total number of payout transactions in the batch
                      processed:
                        type: integer
                        minimum: 0
                        description: Number of transactions processed so far
                      successful:
                        type: integer
                        minimum: 0
                        description: >-
                          Number of processed transactions that completed
                          successfully
                      failed:
                        type: integer
                        minimum: 0
                        description: Number of processed transactions that failed
                    required:
                      - total_transactions
                      - processed
                      - successful
                      - failed
                    description: Aggregated processing summary for the batch
                    x-apidog-orders:
                      - total_transactions
                      - processed
                      - successful
                      - failed
                    examples:
                      - total_transactions: 100
                        processed: 100
                        successful: 95
                        failed: 5
                  rows:
                    type: array
                    items:
                      type: object
                      properties:
                        row_number:
                          type: string
                          description: Row number in the original CSV file
                        external_reference:
                          type: string
                          description: External reference from the CSV file
                        payout_amount:
                          type: string
                          description: Payout amount from the CSV file
                        status:
                          type: string
                          enum:
                            - PENDING
                            - PROCESSING
                            - FAILED
                            - COMPLETED
                          description: Payout current status
                        error_code:
                          type: string
                          description: Error code if processing failed
                        error_message:
                          type: string
                          description: Error message if processing failed
                      required:
                        - row_number
                        - external_reference
                        - payout_amount
                        - status
                      x-apidog-orders:
                        - row_number
                        - external_reference
                        - payout_amount
                        - status
                        - error_code
                        - error_message
                      examples:
                        - row_number: '1'
                          external_reference: PAY-2024-001
                          payout_amount: '250.00'
                          status: COMPLETED
                    description: List of payout processing results
                required:
                  - batch_id
                  - report_status
                  - summary
                  - rows
                x-apidog-orders:
                  - batch_id
                  - report_status
                  - summary
                  - rows
              example:
                batch_id: batch_01HZY6ZQ4J8ZKFE20QG93DYD3A
                report_status: READY
                summary:
                  total_transactions: 3
                  processed: 3
                  successful: 2
                  failed: 1
                rows:
                  - row_number: '1'
                    external_reference: PAY-2024-001
                    payout_amount: '250.00'
                    status: COMPLETED
                  - row_number: '2'
                    external_reference: PAY-2024-002
                    payout_amount: '1500.50'
                    status: FAILED
                    error_code: PAYOUT_AMOUNT_EXCEEDS_MAX
                    error_message: Payout amount exceeds the configured maximum.
                  - row_number: '3'
                    external_reference: PAY-2024-003
                    payout_amount: '75.25'
                    status: COMPLETED
          headers: {}
          x-apidog-name: OK
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INVALID_INPUT
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: INVALID_INPUT
                error_message: Invalid payout request data provided.
                details: []
                status_code: 400
          headers: {}
          x-apidog-name: Bad Request
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - UNAUTHORIZED
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: UNAUTHORIZED
                error_message: Unauthorized access
                details: []
                status_code: 401
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - FORBIDDEN
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: FORBIDDEN
                error_message: Access forbidden
                details: []
                status_code: 403
          headers: {}
          x-apidog-name: Forbidden
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - NOT_FOUND
                      - PAYOUT_NOT_FOUND
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              examples:
                example1:
                  summary: example1
                  value:
                    error_code: NOT_FOUND
                    error_message: Resource not found
                    details: []
                    status_code: 404
                example2:
                  summary: example2
                  value:
                    error_code: PAYOUT_NOT_FOUND
                    error_message: >-
                      Batch not found with reference:
                      batch_01HZY6ZQ4J8ZKFE20QG93DYD3A
                    details: []
                    status_code: 404
          headers: {}
          x-apidog-name: Not Found
        '405':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INVALID_INPUT
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: INVALID_INPUT
                error_message: Input validation failed
                details: []
                status_code: 405
          headers: {}
          x-apidog-name: Method Not Allowed
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - CONFLICT
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: CONFLICT
                error_message: Resource conflict
                details: []
                status_code: 409
          headers: {}
          x-apidog-name: Conflict
        '410':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - NOT_FOUND
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: NOT_FOUND
                error_message: Resource not found
                details: []
                status_code: 410
          headers: {}
          x-apidog-name: Gone
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INVALID_INPUT
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: INVALID_INPUT
                error_message: Input validation failed
                details:
                  - field_name: amount
                    description: Amount must be greater than zero
                    code: VALIDATION_ERROR
                status_code: 422
          headers: {}
          x-apidog-name: Unprocessable Entity
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - RATE_LIMITED
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: RATE_LIMITED
                error_message: Too many requests
                details: []
                status_code: 429
          headers: {}
          x-apidog-name: Too Many Requests
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INTERNAL_ERROR
                      - EXTERNAL_SERVICE_ERROR
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              examples:
                example1:
                  summary: example1
                  value:
                    error_code: INTERNAL_ERROR
                    error_message: An internal server error occurred
                    details: []
                    status_code: 500
                example2:
                  summary: example2
                  value:
                    error_code: EXTERNAL_SERVICE_ERROR
                    error_message: An external service error occurred
                    details: []
                    status_code: 500
          headers: {}
          x-apidog-name: Internal Server Error
        '501':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INTERNAL_ERROR
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: INTERNAL_ERROR
                error_message: An internal server error occurred
                details: []
                status_code: 501
          headers: {}
          x-apidog-name: Not Implemented
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - SERVICE_UNAVAILABLE
                      - EXTERNAL_SERVICE_ERROR
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              examples:
                example1:
                  summary: example1
                  value:
                    error_code: SERVICE_UNAVAILABLE
                    error_message: >-
                      Service is currently not available. Please try again
                      later.
                    details: []
                    status_code: 503
                example2:
                  summary: example2
                  value:
                    error_code: EXTERNAL_SERVICE_ERROR
                    error_message: An external service error occurred
                    details: []
                    status_code: 503
          headers: {}
          x-apidog-name: Service Unavailable
        '504':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - EXTERNAL_SERVICE_ERROR
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: EXTERNAL_SERVICE_ERROR
                error_message: An external service error occurred
                details: []
                status_code: 504
          headers: {}
          x-apidog-name: Gateway Timeout
        '505':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - UNSUPPORTED_VERSION
                  error_message:
                    type: string
                    description: Human-readable description of the error
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: >-
                            Field that triggered the validation error or
                            additional error context
                        description:
                          type: string
                          description: Detailed explanation of the error
                        code:
                          type: string
                          description: Optional field-level error code
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: List of structured error details
                  status_code:
                    type: number
                    description: HTTP status code associated with the error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: UNSUPPORTED_VERSION
                error_message: An internal server error occurred
                details: []
                status_code: 500
          headers: {}
          x-apidog-name: HTTP Version Not Supported
      security:
        - bearerAuth: []
          x-apidog:
            schemeGroups:
              - id: o8OSeURt52hZGLUSjL_kF
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: o8OSeURt52hZGLUSjL_kF
            scopes:
              o8OSeURt52hZGLUSjL_kF:
                bearerAuth: []
      x-apidog-folder: Vrtx APIs/Payouts
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1053095/apis/api-25079343-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearerAuth1:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearerAuth2:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearerAuth3:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT issued by Keycloak. The client_id/azp in the token must map to a
        configured tenant (public, fai, neomrs; e.g., fai-sandbox -> fai) or
        requests will return 403.
    bearerAuth4:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.sandbox.vrtx.sa
    description: Sandbox
security:
  - bearer: []

```
