Skip to main content
GET
/
v1
/
server
/
coupons
/
user
/
{userId}
Get User Coupon History
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
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

userId
string
required

Query Parameters

page
integer
default:1
limit
integer
default:20
Required range: x <= 100

Response

200 - application/json

Success

data
object[]
required
pagination
object
required