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

# Read the durable receipt for an accepted batch

> Recover an accepted batch receipt, including its current processing status.



## OpenAPI

````yaml /openapi.yaml get /api/v1/financekit/publishers/{publisher_id}/batches/{batch_id}
openapi: 3.0.3
info:
  title: Sure API
  version: v1
  description: OpenAPI documentation generated from executable request specs.
servers:
  - url: https://app.sure.am
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
paths:
  /api/v1/financekit/publishers/{publisher_id}/batches/{batch_id}:
    parameters:
      - name: publisher_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: batch_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    get:
      tags:
        - FinanceKit
      summary: Read the durable receipt for an accepted batch
      description: >-
        Recover an accepted batch receipt, including its current processing
        status.
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Durable receipt for a previously accepted batch
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FinancekitBatchReceipt'
        '401':
          description: Invalid publisher credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FinancekitError'
        '404':
          description: No batch with that identity in the current generation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FinancekitError'
        '429':
          description: Rate limited
          headers:
            Retry-After:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FinancekitError'
      security:
        - financekitPublisher: []
components:
  schemas:
    FinancekitBatchReceipt:
      type: object
      additionalProperties: false
      required:
        - connection_id
        - publisher_id
        - generation
        - stream_id
        - batch_id
        - sequence
        - payload_digest
        - status
        - accepted_at
        - applied_at
        - error_code
      properties:
        connection_id:
          type: string
          format: uuid
          pattern: >-
            ^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$
        publisher_id:
          type: string
          format: uuid
          pattern: >-
            ^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$
        generation:
          type: integer
        stream_id:
          type: string
          format: uuid
          pattern: >-
            ^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$
        batch_id:
          type: string
          format: uuid
          pattern: >-
            ^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$
        sequence:
          type: integer
        payload_digest:
          type: string
          pattern: ^[0-9a-f]{64}$
        status:
          type: string
          enum:
            - accepted
            - processing
            - applied
            - failed
            - revoked
        accepted_at:
          type: string
          format: date-time
        applied_at:
          type: string
          format: date-time
          nullable: true
        error_code:
          type: string
          nullable: true
    FinancekitError:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
  securitySchemes:
    financekitPublisher:
      type: http
      scheme: bearer
      bearerFormat: opaque publisher credential
      description: Revocable credential restricted to one FinanceKit publisher upload URL.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.