Promotion by Order
Calculates promotional discounts that apply to a given order. Each organization may have one or more active campaigns evaluated in priority order — the response lists every discount that fired for the cart.
This endpoint accepts the same body shape as rewardByOrder (see Reward by Order)
and operates in two modes: Public (omit x-guper-authorization) and Private.
Monetary fields (price, listPrice, tax) are sent as integer cents —
see Monetary values.
Try-it values populated from environment ACME (Demo)
Authentication
Token
Send your user token in the x-guper-authorization header. Endpoints that
support a Public mode (e.g. acúmulo and resgate previews) accept the same
request without the header — Private mode adds customer data and a
confirmation token to the response.
Headers
Request body
Content-Type:
application/json