Coupon Validation Endpoint
This endpoint validates coupons used with a specific POS transaction (applied to a purchase). POST /pos//coupon/validate/byTransactionInput request
Input parameters
| Field name | Description |
|---|---|
| sessionId | Coupon ID that needs to be validated.This parameter is used if we Validate a coupon that was issued to the Client (ID received from this enpoint: Get Customer Coupons) |
| campaignId | Coupon ID that needs to be validated.This parameter is used if we Validate a coupon that was Active on current Location (ID received from this enpoint: Get Active Coupons By Location) |
| transactionId | Transaction ID to which this coupon was applied |
| couponUser | Customer Data block |
| firstName | Customer First name |
| lastName | Customer Last name |
| gender | Customer gender |
| Customer email | |
| phone | Customer phone |
Response
Response parameters
| Field name | Description |
|---|---|
| posStatus | Only “Accepted” POS can validate a Coupon (POS must be registered with CMC in order to use this endpoint) |
| data | Data Block |
| externalSessionId | Coupon ID that was validated (external or internal, depends on the Coupon provider) |
| status | Operation status |
| validationDate | Coupon validation date |
| errorMessage | Error message |