Skip to main content
POST
/
v2
/
pos
/
{posSystemId}
/
coupon
/
couponCodes
/
validate
Validate coupon
curl --request POST \
  --url https://public-api-demo.clearline.me/v2/pos/{posSystemId}/coupon/couponCodes/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json-patch+json' \
  --data '
{
  "posLocationId": "6orMqUyq2Hg3tP",
  "code": "Sl75Ev",
  "rewardProvider": "TwoReward"
}
'
{
  "data": {}
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

posSystemId
string
required

POS system identifier

Body

Request

Request model for validating a coupon code

posLocationId
string
required

The POS location identifier

Minimum string length: 1
code
string | null

Coupon code

rewardProvider
enum<string>
Available options:
TwoReward,
PJM

Response

Success

data
object

Response model for validating a coupon code