For AI agents: the docs index is at https://docs.affirm.com/developers/v1.0-Global-Integration/llms.txt. The index for every project on this site is at https://docs.affirm.com/llms.txt. Append .md to any documentation page URL to get its markdown version.
The name of your discount code is the name of the object that describes the amount and display name for that discount. For example, RETURN5 is the name of the discount code, so it is represented here as the name of the first discount in the discount object.
discount_amount\ required
integer
Amount of the discount being applied in USD or CAD cents. This value is not used to calculate the total.