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

# Get batch job detail

> Retrieve a single batch job with its chunks and failures.



## OpenAPI

````yaml https://api.meteroid.com/api-docs/openapi.json get /api/v1/batch-jobs/{batch_job_id}
openapi: 3.1.0
info:
  title: meteroid
  description: ''
  license:
    name: LicenseRef-Proprietary
    identifier: LicenseRef-Proprietary
  version: 0.1.0
servers: []
security: []
tags:
  - name: Meteroid
    description: Meteroid API
  - name: Add-ons
  - name: Batch Jobs
  - name: Checkout Sessions
  - name: Connect
    description: Manage connected accounts (Express & Standard)
  - name: Coupons
  - name: Credit Notes
  - name: Customers
  - name: Entitlements
  - name: Events
  - name: Features
  - name: Invoices
  - name: Metrics
  - name: OAuth
    description: OAuth 2.0 token endpoints (public, client-credentials auth)
  - name: OAuth Apps
    description: Manage OAuth applications for Connect integrations
  - name: Plans
  - name: Product Families
  - name: Products
  - name: Subscriptions
  - name: Usage
paths:
  /api/v1/batch-jobs/{batch_job_id}:
    get:
      tags:
        - Batch Jobs
      summary: Get batch job detail
      description: Retrieve a single batch job with its chunks and failures.
      operationId: get_batch_job
      parameters:
        - name: batch_job_id
          in: path
          description: Batch job ID
          required: true
          schema:
            $ref: '#/components/schemas/BatchJobId'
      responses:
        '200':
          description: Batch job detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchJobDetailResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '404':
          description: Batch job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    BatchJobId:
      type: string
      format: MeteroidId
      examples:
        - bjob_7n42DGM5Tflk9n8mt7Fhc7
    BatchJobDetailResponse:
      type: object
      required:
        - id
        - job_type
        - status
        - processed_items
        - failed_items
        - created_by
        - created_at
        - failure_count
        - has_error_csv
      properties:
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        created_by:
          type: string
          format: uuid
        error_csv_url:
          type:
            - string
            - 'null'
        failed_items:
          type: integer
          format: int32
        failure_count:
          type: integer
          format: int64
        has_error_csv:
          type: boolean
        id:
          $ref: '#/components/schemas/BatchJobId'
        input_file_name:
          type:
            - string
            - 'null'
        input_file_url:
          type:
            - string
            - 'null'
        job_type:
          $ref: '#/components/schemas/BatchJobType'
        processed_items:
          type: integer
          format: int32
        status:
          $ref: '#/components/schemas/BatchJobStatus'
        total_items:
          type:
            - integer
            - 'null'
          format: int32
    RestErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
    BatchJobType:
      type: string
      title: BatchJobType
      enum:
        - EVENT_CSV_IMPORT
        - CUSTOMER_CSV_IMPORT
        - SUBSCRIPTION_CSV_IMPORT
        - SUBSCRIPTION_PLAN_MIGRATION
    BatchJobStatus:
      type: string
      title: BatchJobStatus
      enum:
        - PENDING
        - CHUNKING
        - PROCESSING
        - COMPLETED
        - COMPLETED_WITH_ERRORS
        - FAILED
        - CANCELLED
    ErrorCode:
      type: string
      enum:
        - BAD_REQUEST
        - NOT_FOUND
        - CONFLICT
        - FORBIDDEN
        - UNAUTHORIZED
        - TOO_MANY_REQUESTS
        - INTERNAL_SERVER_ERROR
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer

````