cURL
curl --request POST \ --url https://sdk-api.playcamp.io/v1/server/coupons/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "couponCode": "<string>", "userId": "<string>", "isTest": false } '
{ "data": { "valid": true, "couponCode": "<string>", "reward": [ { "itemName": {}, "itemId": "<string>", "itemQuantity": 123 } ], "itemName": {}, "errorCode": "<string>", "errorMessage": "<string>" } }
Validates if a specific user can use the coupon. Checks user-specific usage limits.
Server API Key (format: {keyId}:{secret})
Coupon code
User ID
Test mode (does not create actual data)
Success
Coupon validation result (fields vary based on valid/invalid)
Show child attributes