UseCoupon
Function
use a Coupon
Endpoint
- /v1/member-coupon/use
HTTP Method
- POST
Request Headers
- Authorization: Bearer {token}
- X-App-Key: {appKey}
Request Payload
{
"redemptionCode": "Code of the redemption",
"memberId": "memberId",
"source":"POS",
"storeCode": "KTSP010000001",
"transactionAmount": "100.00"
}
Request Parameters
| Field | Required | Type | Remark | Sample |
|---|---|---|---|---|
| redemptionCode | Yes | string | Code of the redemption | xxx |
| memberId | Yes | string | memberId | xxx |
| source | Yes | string | source: POS | POS |
| storeCode | Yes | string | storeCode | KTSP010000001 |
| transactionAmount | Yes | string | transaction amount | 100.00 |
Response Payload
{
"status": 1,
"errorCode": 0,
"message": "success",
"redemptionCode": "Code of the redemption"
}
Response Parameters
| Field | Required | Type | Remark | Sample |
|---|---|---|---|---|
| status | Yes | string | status code of the api call | |
| message | Yes | string | detail message of the api call | |
| errorCode | No | string | ||
| redemptionCode | No | string | redemption code |
Response Headers
Error Codes
| Code | Description |
|---|---|
| 1 | Internal Error |
| 3 | Missing Parameter |
| 4 | Invalid Input: [field name] |
| 4100 | Member not found |
| 10411 | Redemption not found |
| 10412 | Invalid Coupon |
| 10413 | Invalid Store |
| 10414 | quotaExceeded |
| 10415 | minimumSpendAmount not match |
| 10416 | Coupon already used |
| 10417 | Coupon only available to KDP member |