Preview Automatic Discount
GET/api/v2/organization-settings/discount-rules/automatic-discount
What the invoice screen shows before the invoice exists.
Returns the coupon (if any) an active discount rule suggests for this beneficiary/product in
this currency. Nothing is applied automatically: the invoice-creation flow uses this same
resolution (with the invoice's actual currency) only to reject the invoice if the suggested
coupon isn't included, so the caller must fetch this first and pass it explicitly when
creating the invoice. currency is required so the suggestion always matches what invoice
creation will actually enforce -- a coupon fixed to a currency the invoice isn't in is never
"applicable", the same as an inactive or otherwise ineligible one.
Request
Responses
- 200
- 422
Successful Response
Validation Error