Create manual discount
Creates a manual discount. With line_item_id a single row is created; without it the amount is distributed across line items (largest remainder). This is the sanctioned post-placement discount path and works on completed orders.
Required scope: write_orders (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Path Parameters
Order prefixed ID
Body
"Customer appeasement"
An amount in the order currency for a flat discount, or a percentage for a percent one.
^-?\d+(\.\d+)?$"10.00"
Defaults to flat.
flat, percent The line item the discount applies to. Omitted, the value is distributed across the line items.
Response
discount created

