cURL
curl --request POST \ --url https://public-api-demo.clearline.me/v2/pos/{posSystemId}/coupon/couponCodes/lookup \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json-patch+json' \ --data ' { "posLocationId": "6orMqUyq2Hg3tP", "code": "Sl75Ev" } '
{ "data": { "couponCodes": [ { "rewardProvider": "TwoReward", "code": "<string>", "name": "<string>", "title": "<string>", "pictureUrl": "<string>", "availableUntil": "2023-11-07T05:31:56Z", "status": "Issued", "info": [ { "title": "<string>", "items": {} } ] } ] } }
Search coupons by code
JWT Authorization header using the Bearer scheme.
Enter JWT Bearer token only in the text input below.
POS system identifier
Request
Request model for looking up coupons
The POS location identifier
1
Coupon code
Success
Response model for looking up coupons
Show child attributes