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

# Retrieve an orchestration batch

> Retrieve a specific settlement batch produced by an orchestration address.



## OpenAPI

````yaml https://production.hifi.com/api/v3/openapi.json get /v3/users/{userId}/orchestration-addresses/{orchestrationAddressId}/batches/{orchestrationBatchId}
openapi: 3.0.0
info:
  title: Hifi API
  version: 3.0.0
  description: API documentation for HIFI
servers:
  - url: https://production.hifi.com
    description: Production server
  - url: https://sandbox.hifi.com
    description: Sandbox server
security:
  - bearerAuth: []
tags:
  - name: Common
    description: Common endpoints
  - name: User
    description: User endpoints
  - name: Counter Party
    description: Counter party endpoints
  - name: Crypto Transfer
    description: Crypto transfer and batch transfer endpoints
  - name: Wallet
    description: Wallet and wallet offer endpoints
  - name: External Account
    description: External bank account endpoints (under a counter party)
  - name: External Wallet
    description: External wallet endpoints (under a counter party)
  - name: External Card
    description: External card endpoints (under a counter party)
  - name: Token Swap
    description: Token swap endpoints
  - name: Bridge
    description: Bridge endpoints
  - name: Virtual Account
    description: Virtual account endpoints
  - name: Compliance
    description: Compliance and compliance link endpoints
  - name: Webhook Endpoint
    description: Webhook endpoint endpoints
  - name: File
    description: File upload endpoints
  - name: Onramp
    description: Onramp (fiat to crypto) endpoints
  - name: Offramp
    description: Offramp (crypto to fiat) endpoints
  - name: Orchestration Address
    description: Orchestration (liquidation) address endpoints
  - name: KYC Link
    description: Hosted and custom KYC/KYB link endpoints
  - name: Transfer Approval
    description: Transfer approval endpoints
  - name: Corridor
    description: Supported fiat/crypto transfer corridor endpoints
  - name: Migration
    description: v2-to-v3 ID mapping endpoints
paths:
  /v3/users/{userId}/orchestration-addresses/{orchestrationAddressId}/batches/{orchestrationBatchId}:
    get:
      tags:
        - Orchestration Address
      summary: Retrieve an orchestration batch
      description: >-
        Retrieve a specific settlement batch produced by an orchestration
        address.
      operationId: v3GetOrchestrationBatch
      parameters:
        - $ref: '#/components/parameters/UserIdPathParameter'
        - $ref: '#/components/parameters/OrchestrationAddressIdPathParameter'
        - $ref: '#/components/parameters/OrchestrationBatchIdPathParameter'
      responses:
        '200':
          $ref: '#/components/responses/OrchestrationBatchResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedResponse'
        '404':
          $ref: '#/components/responses/NotFoundResponse'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponse'
components:
  parameters:
    UserIdPathParameter:
      name: userId
      in: path
      schema:
        type: string
        pattern: ^user_[A-Za-z0-9]+$
      description: ID of the user.
      required: true
    OrchestrationAddressIdPathParameter:
      name: orchestrationAddressId
      in: path
      schema:
        type: string
        format: uuid
      required: true
      description: ID of the orchestration address.
    OrchestrationBatchIdPathParameter:
      name: batchId
      in: path
      schema:
        type: string
        format: uuid
      required: true
      description: ID of the orchestration batch.
  responses:
    OrchestrationBatchResponse:
      description: >-
        A single batch record (with its included deposit IDs and the linked
        offramp).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/OrchestrationBatchObject'
    UnauthorizedResponse:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Unauthorized'
    NotFoundResponse:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFound'
    InternalServerErrorResponse:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InternalServerError'
  schemas:
    OrchestrationBatchObject:
      type: object
      description: >-
        A batch of one or more deposits rolled up into a single offramp
        transaction.
      properties:
        id:
          type: string
          format: uuid
        orchestrationAddressId:
          type: string
          format: uuid
        totalAmount:
          type: string
          description: Sum of the included deposits' amounts, in the source `currency`.
          example: '150.000000'
        currency:
          type: string
          enum:
            - usdc
            - usdt
        status:
          $ref: '#/components/schemas/OrchestrationBatchStatusEnum'
        failureReason:
          $ref: '#/components/schemas/OrchestrationBatchFailureReasonEnum'
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        depositIds:
          type: array
          description: IDs of all deposits included in this batch.
          items:
            type: string
            format: uuid
        offrampTransactionId:
          type: string
          format: uuid
          nullable: true
          description: |
            ID of the offramp transaction produced from this batch. `null` while
            `status=PENDING` (the worker has not yet created the offramp). Call
            `GET /v2/offramps/{transferId}` for full offramp details.
    Unauthorized:
      type: object
      properties:
        type:
          type: string
          description: Unauthorized enum
          example: UNAUTHORIZED
        message:
          type: string
          description: Unauthorized message
          example: Authentication required
    NotFound:
      type: object
      properties:
        type:
          type: string
          example: RESOURCE_NOT_FOUND
          description: The error type, e.g., RESOURCE_NOT_FOUND
        message:
          type: string
          description: A descriptive error message
        fields:
          type: array
          description: List of specific field errors
          items:
            type: object
            properties:
              code:
                type: string
                description: Error code related to the field issue
              message:
                type: string
                description: Error message for the specific issue
              field:
                type: string
                description: The name of the field that has an issue
    InternalServerError:
      type: object
      properties:
        type:
          type: string
          example: INTERNAL_SERVER_ERROR
          description: Internal server error enum
        message:
          type: string
          example: An internal server error occurred
          description: Internal server error message
    OrchestrationBatchStatusEnum:
      type: string
      enum:
        - PENDING
        - PROCESSING
        - COMPLETED
        - FAILED
      description: |
        Batch lifecycle.
          * `PENDING` — created; the worker has not yet picked it up.
          * `PROCESSING` — the linked offramp has been created and is in flight.
          * `COMPLETED` — the linked offramp reached `COMPLETED`.
          * `FAILED` — terminal failure. See `failureReason`.
    OrchestrationBatchFailureReasonEnum:
      type: string
      enum:
        - ADDRESS_NOT_ACTIVE
        - NOT_INITIATED
        - QUOTE_FAILED
        - CRYPTO_FAILED
        - FIAT_FAILED
        - EXPIRED
        - REJECTED
        - CANCELLED
      description: >
        Populated when `status=FAILED`.
          * `ADDRESS_NOT_ACTIVE` — the address was deactivated before the worker created
            the offramp. The only input condition that terminally fails a batch.
          * All other values are terminal statuses surfaced from the linked offramp
            transaction (e.g. lost product access → `NOT_INITIATED`, a rejected AML
            review → a terminal status).

        Internal inconsistencies (missing address, payout account lost its rail,
        a

        processor-validation bug) do **not** appear here — the worker pauses the
        batch

        (leaves it `PENDING`) and alerts ops instead of marking it `FAILED`.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````