HomeTutorialsAPI ReferenceChangelog
Log In
API Reference

Apply discounts to a sale object

Applies the best available promotion to a sale and returns the sale and discount. Include the full sale details, including customer and product information. This operation does not modify server-side state.

🔒 Requires: promotions:read outlets:read scopes

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The channel where the sale is coming from

integer

The online channel ID for this sale

customer
object
required
boolean

Indication whether loyalty is enabled or not

boolean

Indication whether the sale is tax inclusive or tax exclusive

string
required

The outlet ID for this sale

string

The promo code to apply to this sale

sale
object
required
Response

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json