> 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:
  /lending-schema:
    get:
      operationId: subpackageCapabilities_getLendingSchema
      summary: Lending Schema
      tags:
        - subpackage_capabilities
      responses:
        '200':
          description: Lending schema
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Capabilities_getLendingSchema_Response_200
tags:
  - name: subpackage_capabilities
servers:
  - url: https://agencyapi.afterpay.com
    description: Production
  - url: https://agencyapi.sandbox.afterpay.com
    description: Sandbox
components:
  schemas:
    Channel:
      type: string
      description: >-
        Defines whether the channel for the capability is online or in-store.
        Accepted values [Online, In-store].
      title: Channel
    LendingConfigurationMinimumAmount:
      type: object
      properties:
        amount:
          type: string
          description: Min amount.
        currency:
          type: string
          description: Currency for min amount in the three-letter ISO 4217 currency code.
      title: LendingConfigurationMinimumAmount
    LendingConfigurationMaximumAmount:
      type: object
      properties:
        amount:
          type: string
          description: Max amount.
        currency:
          type: string
          description: Currency for max amount in the three-letter ISO 4217 currency code.
      title: LendingConfigurationMaximumAmount
    LendingConfigurationRateDetailsItems:
      type: object
      properties:
        variableRatePercentage:
          type: string
          description: Variable part of the buy-rate in percentage format e.g. 5.00 for 5%.
        fixedRate:
          type: string
          description: Fixed part of the buy-rate e.g. 0.30 for 30 cents.
        fixedRateCurrencyCode:
          type: string
          description: >-
            Currency of the fixed part of the buy-rate in the three-letter ISO
            4217 currency code.
        rateType:
          type: string
          description: >-
            Type of rate whether introductory for temporary promotional periods
            or ongoing for steady-state business. Accepted values [INTRODUCTORY,
            ONGOING].
        durationInMonths:
          type: integer
          description: Number of months that the introductory rate will be applied.
        effectiveFrom:
          type: string
          description: Effective date and time of when the rate applies.
      title: LendingConfigurationRateDetailsItems
    LendingConfiguration:
      type: object
      properties:
        minimumAmount:
          $ref: '#/components/schemas/LendingConfigurationMinimumAmount'
        maximumAmount:
          $ref: '#/components/schemas/LendingConfigurationMaximumAmount'
        rateDetails:
          type: array
          items:
            $ref: '#/components/schemas/LendingConfigurationRateDetailsItems'
      title: LendingConfiguration
    Lending:
      type: object
      properties:
        channel:
          $ref: '#/components/schemas/Channel'
        enabled:
          type: boolean
          description: Defines whether the capability is enabled for the above channel.
        configuration:
          $ref: '#/components/schemas/LendingConfiguration'
      required:
        - channel
        - enabled
      title: Lending
    Capabilities_getLendingSchema_Response_200:
      type: object
      properties:
        lending:
          $ref: '#/components/schemas/Lending'
      required:
        - lending
      title: Capabilities_getLendingSchema_Response_200

```

**`Example`**

```json Example
{
  "channel": "ONLINE",
  "enabled": true,
  "configuration": {
    "minimumAmount": {
      "amount": "200",
      "currency": "USD"
    },
    "maximumAmount": {
      "amount": "4000",
      "currency": "USD"
    },
    "rateDetails": [
      {}
    ]
  }
}
```