> This page is for Afterpay Partner API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.afterpay.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.afterpay.com/_mcp/server.

### Schema (`response.body`)

```yaml
openapi: 3.1.0
info:
  title: API
  version: 1.0.0
paths:
  /batch-settlement-schema:
    get:
      operationId: subpackageSettlements_getBatchSettlementSchema
      summary: BatchSettlement Schema
      tags:
        - subpackage_settlements
      responses:
        '200':
          description: BatchSettlement schema
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Settlements_getBatchSettlementSchema_Response_200
tags:
  - name: subpackage_settlements
servers:
  - url: https://agencyapi.afterpay.com
    description: Production
  - url: https://agencyapi.sandbox.afterpay.com
    description: Sandbox
components:
  schemas:
    BatchSettlementSettlementBatchesItems:
      type: object
      properties:
        id:
          type: string
          description: Settlement batch ID.
        created_at:
          type: string
          description: Creation date of the settlement batch ID.
      title: BatchSettlementSettlementBatchesItems
    BatchSettlementMetaData:
      type: object
      properties:
        more_data:
          type: boolean
          description: Whether there is more settlement batches beyond the limit provided.
        computed_at:
          type: string
          description: Timestamp of the query computation.
      title: BatchSettlementMetaData
    BatchSettlement:
      type: object
      properties:
        settlement_batches:
          type: array
          items:
            $ref: '#/components/schemas/BatchSettlementSettlementBatchesItems'
        meta_data:
          $ref: '#/components/schemas/BatchSettlementMetaData'
      title: BatchSettlement
    Settlements_getBatchSettlementSchema_Response_200:
      type: object
      properties:
        batch_settlement:
          $ref: '#/components/schemas/BatchSettlement'
      required:
        - batch_settlement
      title: Settlements_getBatchSettlementSchema_Response_200

```

**`Example`**

```json Example
{
  "settlement_batches": [
    {
      "id": "2020-07-10Z_a8xhc6DJF3h48377DCV",
      "created_at": "2020-07-10T22:53:46Z"
    }
  ],
  "meta_data": {
    "more_data": true,
    "computed_at": "2024-02-21T18:53:26Z"
  }
}
```