/player/validate
Validate Player
Validate a player ID for a specific game. Include the dynamic requirement fields returned by the Get Category Requirements endpoint.
Límite de solicitudesHas its own rate limiter
Nota: Use the Get Category Requirements endpoint to discover which fields are needed for each game. Include all required fields in the request body.
Cuerpo de la solicitud
| Nombre | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| sub_category_id | number | Sí | The subcategory ID of the product. Use Catalog Explorer to find this. | 999 |
| player_id | string | Sí | The in-game player ID. | 123456789 |
| ...requirements | varies | No | 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"
}
}