Skip to main content

CampaignCouponList

Function

Get a list of campaign coupon

Endpoint

  • /v1/coupon/campaign/list

HTTP Method

  • POST

Request Headers

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

Request Payload


{
"pageNo": 1,
"pageSize": 10,
"channelType": "APP_REDEMPTION"
}

Request Parameters

FieldRequiredTypeRemarkSample
pageNoNointegerPagination page number, 0 represents the first page1
pageSizeNonumberNumber of entries per page, maximum 20010
channelTypeYesstringChannel Type: GC_PAGE、APP_REDEMPTIONAPP_REDEMPTION
couponTypeNostringCoupon TypeCash
isFeaturedNonumberisFeatured, 0:NonFeatured, 1:Featured1

Response Payload

{
"status": 1,
"errorCode": 0,
"message": "success",
"morePage":true,
"pageNo": 1,
"pageSize": 1,
"items": [
{
"campaignId": "1",
"campaignName": "Name",
"campaignStatus": "Active",
"effectiveDate": "2024-01-01",
"expirationDate": "2024-02-28",
"requiredPoints":0,
"coupons": [
{
"couponId": "couponId",
"couponNameEn": "Coupon Name(EN)",
"couponNameSc": "Coupon Name(SC)",
"couponNameTc": "Coupon Name(TC)",
"couponType": "Cash",
"couponStatus": "Active",
"iconUrl": "https://xxx",
"campaignStock": 10
}
],
"isFeatured": 1,
"label": "Featured"
}
]
}

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[]
campaignIdNostringCampaign Id
couponNameNostringCampaign Name
campaignStatusNostringCampaign Status: Active 、 InactiveActive
effectiveDateNostringEffective Date
expirationDateNostringExpiration Date
requiredPointsNonumberrequired Points0
couponsYesobject[]
. couponIdNostring
. couponNameEnNostringCoupon Name(EN)
. couponNameScNostringCoupon Name(SC)
. couponNameTcNostringCoupon Name(TC)
. couponTypeYesstringCoupon Type: Cash(FixedValue)、 Exchange、 FreeParking、 KTSPPointsCash
. couponStatusNostringCoupon Status: Active 、 InactiveActive
. iconUrlNostringIcon Url
. campaignStockNonumberCampaign Stock Value10
isFeaturedNonumberisFeatured, 0:NonFeatured, 1:Featured1
labelNostringlabel: Featured、 LimitedFeatured

Response Headers

Error Codes

CodeDescription
1Internal Error
3Missing Parameter
4Invalid Input