POST
/
v1
/
discounts

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
profileId
string
required

Profile ID of member

entityReference
string
required

External reference of the store where the transaction occurred

Minimum length: 1
transactionTimestamp
string
required

Transaction timestamp (UTC format)

taxAmount
number
required

Tax amount

grossAmount
number
required

Gross amount of the transaction (before discount)

netAmount
number
required

Net amount of the transaction (after discount).

transactionItems
object[]

Response

200 - application/json

Response of the Discounts API

status
integer

Status of the call

message
string
default: Exception message

Message corresponding to the call

errors
object

Error details, if applicable

data
object[]