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
  • Australia
  • New Zealand
  • United States of America
Models

Discount Object

Was this page helpful?
Previous

Item Object

Next
Built with

Attributes

AttributeTypeDescription
displayNamestring requiredA display name for the discount. Limited to 128 characters.
amountMoney requiredThe discount amount.

Australia

1{
2 "displayName": "New Customer Coupon",
3 "amount": {
4 "amount": "29.99",
5 "currency": "AUD"
6 }
7}

New Zealand

1{
2 "displayName": "New Customer Coupon",
3 "amount": {
4 "amount": "29.99",
5 "currency": "NZD"
6 }
7}

United States of America

1{
2 "displayName": "New Customer Coupon",
3 "amount": {
4 "amount": "29.99",
5 "currency": "USD"
6 }
7}