Skip to main content

QueryCouponHistory

Function

Query member's coupon history.

(redemptions that have expired or have been used)

Endpoint

  • /v1/member-coupon/history

HTTP Method

  • POST

Request Headers

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

Request Payload

{
"pageNo": 1,
"pageSize": 10,
"memberId": "xxx"
}

Request Parameters

FieldRequiredTypeRemarkSample
pageNoNointegerPagination page number, 0 represents the first page1
pageSizeNointegerNumber of entries per page, maximum 20010
memberIdYesstringmemberIdxxx

Response Payload

{
"status": 1,
"errorCode": 0,
"message": "success",
"morePage":true,
"pageNo": 1,
"pageSize": 1,
"items": [
{
"couponId": "xxxxx",
"couponNameEn": "Coupon Name(EN)",
"couponNameSc": "Coupon Name(SC)",
"couponNameTc": "Coupon Name(TC)",
"couponType": "Cash",
"iconUrl": "",
"usageEffectiveTime": "2024-01-01T00:00:00+08:00",
"usageExpirationTime": "2024-01-01T23:59:59+08:00",
"redemptionCode": "xxxx",
"redemptionStatus": "Used"
}
]
}

Response Parameters

FieldRequiredTypeRemarkSample
statusYesstringstatus code of the api call
messageYesstringdetail message of the api call
errorCodeNostring
morePageNobooleanWhether has more page. If this value is true, you may want to continue to check next pagetrue
pageNoYesintegerPagination page number, 0 represents the first page1
pageSizeYesintegerNumber of entries per page, maximum 20010
itemsYesobject[]
couponIdNostring
couponNameEnNostringCoupon Name(EN)
couponNameScNostringCoupon Name(SC)
couponNameTcNostringCoupon Name(TC)
couponTypeYesstringCoupon Type: Cash(FixedValue)、 Exchange、 FreeParking、 KTSPPointsCash
iconUrlNostringIcon Url
usageEffectiveTimeNostringEffective Time
usageExpirationTimeNostringExpiration Time
redemptionCodeNostringCode of the redemptionxxx
redemptionStatusNostringredemptionStatus: Used、Deactivated、Expired、Other

Response Headers

Error Codes

CodeDescription
1Internal Error