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"
}
}
'