For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HomeGuidesAPI Reference
HomeGuidesAPI Reference
  • Online API
    • API Environments
    • Direct Payment Flow
    • REST
    • HTTPS
    • Dates
    • Pagination
    • Authentication
    • Idempotent Requests
    • Timeouts
    • API Simulator
  • Models
    • Introduction
    • Contact Object
    • Consumer Object
    • Discount Object
    • Item Object
    • Money Object
    • Order Details Object
    • Payment Object
    • Refund Object
    • Shipping Courier Object
  • Service Status
    • GETPing
  • Configuration
    • GETGet Configuration
  • Orders
    • Introduction
    • GETGet Order
    • POSTCreate Order
  • Javascript afterpay.js
    • Information
    • Redirect Method
  • Payments
    • Introduction
    • POSTCapture Payment
    • PUTUpdate Shipping Courier
    • GETGet Payment By Order ID
    • GETGet Payment By Token
    • GETList Payment(s)
    • POSTCreate Refund
    • PUTUpdate Payment by Order ID
    • POSTReverse Payment By Token
  • Errors
    • Introduction
    • Get Errors
    • Put/Post Errors
  • Reference
LogoLogo
On this page
  • Attributes
  • Example Consumer Object
  • Australia
  • New Zealand
  • United States of America
Models

Consumer Object

Was this page helpful?
Previous

Discount Object

Next
Built with

Attributes

AttributeTypeDescription
phoneNumberstringThe consumer’s phone number. Limited to 32 characters.
givenNamesstring requiredThe consumer’s first name and any middle names. Limited to 128 characters.
surnamestring requiredThe consumer’s last name. Limited to 128 characters.
emailstring requiredThe consumer’s email address. Limited to 128 characters.

Example Consumer Object

Australia

1{
2 "phoneNumber": "0400 000 000",
3 "givenNames": "Joe",
4 "surname": "Consumer",
5 "email": "test@example.com"
6}

New Zealand

1{
2 "phoneNumber": "0200 000 000",
3 "givenNames": "Joe",
4 "surname": "Consumer",
5 "email": "test@example.com"
6}

United States of America

1{
2 "phoneNumber": "(415) 200-0000",
3 "givenNames": "Joe",
4 "surname": "Consumer",
5 "email": "test@example.com"
6}