StageUpStageUp
Api

Verification API Request

This function verifies user IDs in the web shop.

This API is used to query users who want to make payments in the web shop. If the example below works, the integration work is complete.

Verification API Request

POST /verity

This is a webhook to verify if the game ID is valid.

Headers

NameValue
Content-Typeapplication/json
X-API-KEYAPI KEY

Body

NameTypeDescription
userIDstringUser ID entered by customer
serverIDstringServer ID (if needed)

Request Examples

cURL Request
curl -X POST https://api.stageup.store/verity \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: your-api-key" \
  -d '{
    "userID": "playerID123",
    "serverID": "server01"
  }'
JavaScript Request
const response = await fetch('https://api.stageup.store/verity', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-KEY': 'your-api-key'
  },
  body: JSON.stringify({
    userID: 'playerID123',
    serverID: 'server01'
  })
});
 
const data = await response.json();
console.log(data);

Response

Success Response (200) - Single Server
{
  "status": 1,
  "message": "OK"
}
Success Response (200) - Multi Server
{
  "status": 1,
  "message": "OK",
  "servers": [
    {
      "id": "server1",
      "name": "characterName",
      "level": "1"
    },
    {
      "id": "server2",
      "name": "characterName",
      "level": "10"
    }
  ]
}
Error Response (400)
{
  "status": -1,
  "message": "User not found"
}

On this page