OptionalamountFixed amount (for amount types).
OptionalcatalogReference an existing CatalogDiscount by id.
OptionalnameOptionalpercentagePercentage as a string, e.g. "7.25" (for percentage types).
OptionalscopeORDER applies to the whole order (Square auto-applies to every line);
LINE_ITEM applies only to lines that list this discount's uid in their
appliedDiscounts.
OptionaltypeOptionaluidClient-side id; reference it from a line item's appliedDiscounts.
An order discount. Reference an existing
CatalogDiscountbycatalogObjectId(keeps the catalog authoritative — the price tracks the rule), or define an ad-hoc discount inline withtype+percentage/amountMoney.See
https://developer.squareup.com/docs/orders-api/discounts