Skip to main content
POST
/
pos
/
{posSystemId}
/
coupon
/
validate
/
byTransaction
Validate coupon, by transaction
curl --request POST \
  --url https://public-api-demo.clearline.me/pos/{posSystemId}/coupon/validate/byTransaction \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json-patch+json' \
  --data '
{
  "sessionId": "9a19a987-7e0b-4bc2-8126-e92e3c6c7860",
  "campaignId": "12312",
  "transactionId": "e9762ba8-5571-4359-897e-b4e3002316b4",
  "couponUser": {
    "firstName": "Test",
    "lastName": "User",
    "gender": "Male",
    "phone": "1111111111",
    "email": "mail@com.com"
  }
}
'
{
  "posStatus": "Accepted",
  "data": {
    "externalSessionId": "<string>",
    "status": "<string>",
    "validationDate": "2023-11-07T05:31:56Z",
    "errorMessage": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

posSystemId
string
required

Body

An instance of ClearLine.API.Dtos.ValidatePosTransactionCouponPostDto

Validate pos coupon post dto

sessionId
string | null

Coupon user session if exists

campaignId
string | null

External coupon id

transactionId
string | null
couponUser
object

Represent Coupon session user

Response

Success

posStatus
enum<string>
Available options:
Accepted,
Disabled,
NotAvailable
data
object

Validate Coupon Session result Dto