POST
/
v1
/
discounts

Authorizations

Authorization
string
header
required

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

Body

application/json
entityReference
string
required

External reference of the store where the transaction occurred

Minimum length: 1
grossAmount
number
required

Gross amount of the transaction (before discount)

netAmount
number
required

Net amount of the transaction (after discount).

profileId
string
required

Profile ID of member

taxAmount
number
required

Tax amount

transactionTimestamp
string
required

Transaction timestamp (UTC format)

transactionItems
object[]

Response

200 - application/json

Response of the Discounts API

data
object[]
errors
object

Error details, if applicable

message
string
default:
Exception message

Message corresponding to the call

status
integer

Status of the call