Skip to main content

ClaimCampaignCoupon

Function

claim campaign coupon

Endpoint

  • /v1/member-coupon/claim-campaign

HTTP Method

  • POST

Request Headers

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

Request Payload

{
"memberId": "memberId",
"campaignId": "1",
"couponIds": [
"couponId"
]
}

Request Parameters

FieldRequiredTypeRemarkSample
memberIdYesstringmemberIdxxx
campaignIdYesstringcampaignIdxxx
couponIdsYesstringcouponIds["couponId"]

Response Payload

{
"status": 1,
"errorCode": 0,
"message": "success",
"redemptions": [
{
"couponId": "couponId",
"redemptionCode": "redemptionCode"
}
]
}

Response Parameters

FieldRequiredTypeRemarkSample
statusYesstringstatus code of the api call
messageYesstringdetail message of the api call
errorCodeNostring
redemptionsNoobject[]
couponIdYesstringID of the couponxxx
redemptionCodeYesstringCode of the redemptionxxx

Response Headers

Error Codes

CodeDescription
1Internal Error
3Missing Parameter
4Invalid Input: [field name]
4100Member not found
10401Coupon not found
10402Campaign not found
10403Invalid campaign coupon