Documentation Index
Fetch the complete documentation index at: https://docs.clearline.me/llms.txt
Use this file to discover all available pages before exploring further.
Get Coupons data
To obtain coupons that the Seller can use during a transaction (apply to a purchase), it is possible to use the following endpoints:- Get Customer Coupons (SearchUserCoupons) - Returns array of Customer coupons by search params (returns all coupons of the specified Customer).
- Get Active Coupons By Location - Returns array of all active coupons of the specified pos location.
Get Customer Coupons
POST https://apitest.clearline.me/pos/{posSystemId}/coupon/couponCode/searchInput request
Input parameters
| Field name | Description |
|---|---|
| code | Coupon code |
| Customer email | |
| phone | Customer phone |
| posLocationId | ID of the location where the transaction will be made |
Response
Get Active Coupons By Location
GET https://apitest.clearline.me/pos/{posSystemId}/coupon/active/locationId/{posLocation}Input request
Input parameters
| Field name | Description |
|---|---|
| posSystemId | POS System ID |
| posLocationId | ID of the location where the transaction will be made |