# Create bulk payout

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /payouts/bulk:
    post:
      summary: Create bulk payout
      deprecated: false
      description: >-
        Uploads a CSV file to storage and kicks off a payout batch. Clients must
        supply an idempotency key via the idempotency-key header.
      operationId: createBulkPayout
      tags:
        - Vrtx APIs/Payouts
        - Payouts
      parameters:
        - name: idempotency-key
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
            minLength: 1
            maxLength: 255
            examples:
              - bulk_payout_batch_2024_11_19_a1b2c3d4e5f6
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  description: CSV file containing the payouts to process
                  format: binary
                  example: ''
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  batch_id:
                    type: string
                    minLength: 1
                    description: Identifier of the created payout batch
                    examples:
                      - batch_01HZY6ZQ4J8ZKFE20QG93DYD3A
                  original_file_name:
                    type: string
                    description: Original filename supplied by the client during upload
                    examples:
                      - merchant-payouts.csv
                  status:
                    type: string
                    enum:
                      - PROCESSING
                      - READY
                      - ERROR
                    description: Current processing status of the payout batch
                    examples:
                      - PROCESSING
                  created_at:
                    type: string
                    format: date-time
                    description: Timestamp when the batch was created (ISO 8601)
                    examples:
                      - '2025-09-21T13:48:42.608Z'
                required:
                  - batch_id
                  - original_file_name
                  - status
                x-apidog-orders:
                  - batch_id
                  - original_file_name
                  - status
                  - created_at
              examples:
                example1:
                  summary: example1
                  value:
                    batch_id: batch_01HZY6ZQ4J8ZKFE20QG93DYD3A
                    original_file_name: merchant-payouts-nov-2024.csv
                    status: PROCESSING
                    created_at: '2024-11-19T10:00:00.000Z'
                example2:
                  summary: example2
                  value:
                    batch_id: batch_01HZY7XQ8K9ALGH30RI04EZE5B
                    original_file_name: salary-payouts.csv
                    status: READY
                    created_at: '2024-11-19T15:30:00.000Z'
          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:
                  - field_name: file
                    description: CSV file is required
                    code: MISSING_FILE
                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
                  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: 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: CM6_2P1wJr9mXQWTMmslI
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: CM6_2P1wJr9mXQWTMmslI
            scopes:
              CM6_2P1wJr9mXQWTMmslI:
                bearerAuth: []
      x-apidog-folder: Vrtx APIs/Payouts
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1053095/apis/api-24712063-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: []

```
