Intro
The Automatic Flow is designed for fully automated POS system integrations where widget sessions are triggered in real time based on transaction events — without the need for manual input from the operator.Check POS Settings
Before starting a transaction, the POS system must check whether marketing transactions are enabled for the specific posSystem.[GET] /pos/{posSystem}/settings/{companyPosId}
Headers
| Name | Value | Description |
|---|---|---|
| Authorization | Bearer | Request authorization header |
| Content-Type | application/json | Content type |
Input parameters
| Field name | Description |
|---|---|
| posSystem | The identifier of the POS system (e.g., pax, clover) |
Response
Response parameters
| Field name | Description |
|---|---|
| data.isCheckInMenuEnabled | Identifies if CheckIn menu is enabled |
| data.isTransactionsEnabled | Identifies if Transactions are enabled |
| data.isPosRulesEnabled | Identifies if PosRules are enabled |
| data.isReceiptPromotionEnabled | Identifies if Receipt Promotion is enabled |
| data.isCouponsEnabled | Identifies if Coupons are enabled |
| data.isProductsImportEnabled | Identifies if Products import is enabled |
isTransactionsEnabled is false, the third-party system should not send any transactions to ClearLine.
Start a New Interaction
Start a new session between the POS system and the marketing platform.[POST] /pos/{posSystem}/startInteraction
Headers
| Name | Value | Description |
|---|---|---|
| Authorization | Bearer | Request authorization header |
| Content-Type | application/json | Content type |
Input parameters
| Field name | Description |
|---|---|
| posSystem | The identifier of the POS system (e.g., pax, clover) |
Input request
Response
Response parameters
| Field name | Description |
|---|---|
| data.sessionId | Identifier of the session |
| data.posStatus | Pos Status: Accepted, Disabled, NotAvailable |
Send Transaction Details
Send a completed POS transaction to the marketing platform. This action may trigger the execution of a widget session automatically.[POST] /pos/{posSystem}/transaction
Headers
| Name | Value | Description |
|---|---|---|
| Authorization | Bearer | Request authorization header |
| Content-Type | application/json | Content type |
Input parameters
| Field name | Description |
|---|---|
| posSystem | The identifier of the POS system (e.g., pax, clover) |
Input request
Response
Validate Coupon by Transaction
This endpoint validates coupons associated with a specific POS transaction within a marketing campaign session[POST] /pos/{posSystem}/coupon/validate/byTransaction
Headers
| Name | Value | Description |
|---|---|---|
| Authorization | Bearer | Request authorization header |
| Content-Type | application/json | Content type |
Input parameters
| Field name | Description |
|---|---|
| posSystem | The identifier of the POS system (e.g., pax, clover) |