Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.

Body

application/json
code
string
required
Minimum string length: 1
basketCents
integer
required
Required range: 0 <= x <= 9007199254740991

Response

The eligible coupon and the discount it would grant for this basket.

The eligible coupon and the discount it would grant for this basket.

couponId
string
required
Minimum string length: 1
code
string
required
Minimum string length: 1
discountType
enum<string>
required
Available options:
percentage,
fixed
discountAmountCents
integer
required
Required range: 0 <= x <= 9007199254740991