메인 콘텐츠로 건너뛰기
GET
/
v1
/
server
/
coupons
/
user
/
{userId}
유저 쿠폰 사용 내역
curl --request GET \
  --url https://sdk-api.playcamp.io/v1/server/coupons/user/{userId} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 123,
      "userId": "<string>",
      "couponCode": "<string>",
      "packageId": 123,
      "campaignId": "<string>",
      "creatorKey": "<string>",
      "usedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "page": 123,
    "limit": 123,
    "total": 123,
    "totalPages": 123
  }
}

인증

Authorization
string
header
필수

Server API Key (format: {keyId}:{secret})

경로 매개변수

userId
string
필수

쿼리 매개변수

page
integer
기본값:1
limit
integer
기본값:20
필수 범위: x <= 100

응답

200 - application/json

성공

data
object[]
필수
pagination
object
필수