> 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:
  /contract-schema:
    get:
      operationId: subpackageRates_getContractSchema
      summary: Contract Schema
      tags:
        - subpackage_rates
      responses:
        '200':
          description: Contract schema
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rates_getContractSchema_Response_200'
tags:
  - name: subpackage_rates
servers:
  - url: https://agencyapi.afterpay.com
    description: Production
  - url: https://agencyapi.sandbox.afterpay.com
    description: Sandbox
components:
  schemas:
    ContractStatus:
      type: string
      enum:
        - APPROVED
        - REJECTED
        - PENDING
      description: Contract status
      title: ContractStatus
    Contract:
      type: object
      properties:
        contractId:
          type: string
          description: The unique ID for the contract between Afterpay and the partner.
        effectiveFrom:
          type: string
          description: >-
            Effective date and time of when the contract applies, using the
            standard ISO 8601 format, returned in UTC Coordinated Universal
            Time).
        status:
          $ref: '#/components/schemas/ContractStatus'
          description: Contract status
        countryCode:
          type: string
          description: >-
            Country code in the two-letter ISO 3166-1 alpha-2 standard format,
            defining the consumer market for which the contact applies.
      title: Contract
    Rates_getContractSchema_Response_200:
      type: object
      properties:
        contract:
          $ref: '#/components/schemas/Contract'
      required:
        - contract
      title: Rates_getContractSchema_Response_200

```

**`Example`**

```json Example
{
  "contractId": "785389121238",
  "effectiveFrom": "2023-09-17T21:41:47.341+00:00",
  "status": "APPROVED",
  "countryCode": "US"
}
```