Skip to main content

PreVerifyCoupon

Function

PreVerify Coupon

Endpoint

  • /v1/member-coupon/pre-verify

HTTP Method

  • POST

Request Headers

  • Authorization: Bearer {token}
  • X-App-Key: {appKey}

Request Payload

  • with memberId (Check the consistency between redemptionCode and memberId)
{
"redemptionCode":"Code of the redemption",
"memberId": "memberId",
"storeCode": "KTSP010000001",
"transactionAmount": "100.00"
}
  • without memberId
{
"redemptionCode":"Code of the redemption",
"storeCode": "KTSP010000001",
"transactionAmount": "100.00"
}

Request Parameters

FieldRequiredTypeRemarkSample
redemptionCodeYesstringredemptionCode
storeCodeYesstringstoreCodeKTSP010000001
transactionAmountNostringtransaction amount100.00
memberIdNostringmemberId

Response Payload

{
"status": 1,
"errorCode": 0,
"message": "success",
"isPreVerified": true,
"redemptionCode": "Code of the redemption",
"memberId": "memberId",
"couponId": "couponId",
"couponNameEn": "Coupon Name(EN)",
"couponNameSc": "Coupon Name(SC)",
"couponNameTc": "Coupon Name(TC)",
"couponType": "Cash",
"minimumSpendAmount": "1000.00",
"discountAmount": "100.00",
"unitCost": "0.00",
"freeParkingMins": 0,
"usageEffectiveTime": "2024-01-01T00:00:00+08:00",
"usageExpirationTime": "2024-01-01T23:59:59+08:00"
}

Response Parameters

FieldRequiredTypeRemarkSample
statusYesstringstatus code of the api call
messageYesstringdetail message of the api call
errorCodeNostring
isPreVerifiedNobooleanPre-Verify resultture
redemptionCodeNostringCode of the redemption
memberIdNostringmemberId
couponIdNostringcouponId
couponNameEnNostringCoupon Name(EN)Coupon Name(EN)
couponNameScNostringCoupon Name(SC)Coupon Name(SC)
couponNameTcNostringCoupon Name(TC)Coupon Name(TC)
couponTypeNostringCoupon Type: Cash(FixedValue)、 Exchange、 FreeParking、 KTSPPointsCash
minimumSpendAmountNostringThe minimum spend required for using this coupon100.00
discountAmountNostringThe discount amount set for this particular coupon. Only when it is a fix amount coupon( couponType=Cash), api will return a value.100.00
unitCostNostringunitCost0.00
freeParkingMinsNonumberFree Parking Mins, Only when it is a FreeParking coupon( couponType=FreeParking), api will return a value.0
usageEffectiveTimeNostringEffective Time
usageExpirationTimeNostringExpiration Time

Response Headers

Error Codes

CodeDescription
1Internal Error
3Missing Parameter
4Invalid Input: [field name]
4100Member not found
10411Redemption not found
10412Invalid Coupon
10413Invalid Store
10414quotaExceeded
10415minimumSpendAmount not match
10416Coupon already used
10417Coupon only available to KDP member