/player/validate
Validate Player
Validate a player ID for a specific game. Include the dynamic requirement fields returned by the Get Category Requirements endpoint.
Limite de requĂȘtesHas its own rate limiter
Note: Use the Get Category Requirements endpoint to discover which fields are needed for each game. Include all required fields in the request body.
Corps de la requĂȘte
| Nom | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| sub_category_id | number | Oui | The subcategory ID of the product. Use Catalog Explorer to find this. | 999 |
| player_id | string | Oui | The in-game player ID. | 123456789 |
| ...requirements | varies | Non | Additional fields from the Get Category Requirements endpoint. Include each field_name as a key with the user-provided value. | "server": "Asia" |
curl -s -X POST "https://shop2topup.com/api/endpoints/v1/player/validate" \
-H "Authorization: Bearer YOUR_KEY_ID.YOUR_KEY_SECRET" \
-H "Content-Type: application/json" \
-d '{
"sub_category_id": 999,
"player_id": 123456789
}'{
"success": true,
"player": {
"player_id": "123456789",
"player_name": "ProGamer99",
"region": "Asia"
}
}