> This page is for Afterpay Online Developer, version Main (default).
> For other versions, use one of these documentation indexes:
> - Main (default): https://developers.afterpay.com/afterpay-online-developer/main/llms.txt
> - v1: https://developers.afterpay.com/afterpay-online-developer/v-1/llms.txt
> - Chinese: https://developers.afterpay.com/afterpay-online-developer/chinese/llms.txt

> 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:
  /consumer-model-test:
    get:
      operationId: subpackageModels_get-consumer-model-test
      summary: Get Consumer Model Test
      description: Consumer information schema
      tags:
        - subpackage_models
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Models_get-consumer-model-test_Response_200
tags:
  - name: subpackage_models
servers:
  - url: https://global-api-sandbox.afterpay.com
    description: Sandbox
  - url: https://global-api.afterpay.com
    description: Production
components:
  schemas:
    Consumer:
      type: object
      properties:
        email:
          type: string
          format: email
          maxLength: 128
        givenNames:
          type: string
          maxLength: 128
          description: The consumer's first name
        surname:
          type: string
          maxLength: 128
          description: The consumer's last name
        phoneNumber:
          type: string
          maxLength: 32
      required:
        - email
      description: >-
        The consumer data model is used for gathering essential user
        information. It captures details such as the individual's first name,
        represented by `givenNames`, and their last name, captured under
        `surname`. In addition, it stores the user's contact number under
        `phoneNumber` and their email address under `email`. These fields
        collectively provide indispensable contact and identification details
        for a user.
      title: Consumer
    Models_get-consumer-model-test_Response_200:
      type: object
      properties:
        consumer:
          $ref: '#/components/schemas/Consumer'
      required:
        - consumer
      title: Models_get-consumer-model-test_Response_200

```

**`Example`**

```json Example
{
  "email": "test@example.com",
  "givenNames": "Joe",
  "surname": "Consumer",
  "phoneNumber": "0400 000 000"
}
```