Object
Admin / POSdiscount
A shop discount / promo rule.
Amount off products/order, BXGY, free shipping. Applied at POS and checkout when codes/rules match.
Exposure
Used in Admin, POS, or Storefront. Not exposed on Merchant API v1 routes yet.
What
The discount object is the JSON / domain shape for this resource in RetailLink.
Why
Use these fields when integrating — not scraped Admin HTML — so sync jobs and apps stay stable across UI changes.
How
Read each property below — description first, then that property's Code / Data / Output (or type). Use the sticky example JSON on the right as a full fixture.
Properties
14 fields on discount. Types link to related objects when available. Snippets for a property appear under that property.
id
stringDiscount id.
id: stringname
stringMerchant-facing name.
name: stringcode
string | nullOptional discount code customers enter.
code: string | nulltype
DiscountTypeDiscount rule kind.
type: PERCENTAGE | FIXED_AMOUNT | FREE_SHIPPING | BUY_X_GET_Yvalue
numberPercent or fixed amount depending on type.
value: numberminAmount
number | nullMinimum purchase amount when required.
minAmount: number | nullmaxUses
number | nullGlobal usage cap.
maxUses: number | nullusedCount
numberTimes the discount has been used.
usedCount: numberstartsAt
string | nullStart of validity window.
startsAt: string | nullendsAt
string | nullEnd of validity window.
endsAt: string | nullisActive
booleanWhether the discount is active.
isActive: booleanappliesTo
string | nullORDER or PRODUCTS for amount-off rules.
appliesTo: string | nullcreatedAt
stringISO-8601 created timestamp.
createdAt: stringupdatedAt
stringISO-8601 updated timestamp.
updatedAt: string