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
id
string
required
Minimum string length: 1
reason
enum<string>
required
Available options:
manual_markdown,
promotional,
loyalty_reward,
damaged_goods,
manager_goodwill
cart
object
required
basis
enum<string>
required
Available options:
percent
percentBps
integer
required
Required range: 1 <= x <= 10000
note
string
Maximum string length: 280

Response

The persisted discount record, with the valued signed reduction.

The persisted discount record, with the valued signed reduction.

id
string
required
scope
enum<string>
required
Available options:
line,
ticket
lineId
string | null
required
basis
enum<string>
required
Available options:
percent,
amount
baseCents
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
amountCents
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
effectiveBps
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
reason
enum<string>
required
Available options:
manual_markdown,
promotional,
loyalty_reward,
damaged_goods,
manager_goodwill
actorId
string
required
at
string
required
note
string