User Verify Request Example & Responses

User Verify Request

Example Format: JSON-RPC

// {
    "id": "6164695159717629913",
    "jsonrpc": "2.0",
    "method": "verify",
    "params": [
        {
            "isForTest": 1,
            "serviceProvider": "Coda",
            "purchaseOrigin": "TH",
            "user": {
                "userId": "111111",
                "zoneId": "101"
            },
            "signature": "4646fbd3363ab452f40187f8744cd321f71968ed01cdc19c416203832cddd76e"
        }
    ]
}

User Verify Request Responses

User Verify Response describes the response to a verify request by the partner. See below for examples of Valid and Invalid User Verify responses.

Valid User Verify Response

Example 1: Validate/Verify the user profile Format: JSON-RPC

// 
{
  "id": "6164695159717629913",
  "jsonrpc": "2.0",
  "result": {
    "username": "Randy",
    "originCountry": "ID",
  }
}

Example 2:

If the Publisher wants to send metadata to showcase personalized SKU list based on the in-game user information

//
{
  "id": "6164695159717629913",
  "jsonrpc": "2.0",
  "result": {
    "username": "Randy",
    "metadata": {
      "originCountry": "ID",
      "inGameLevel": "Gold Level"
      "roleInfo": "Warrior"
      
    },"personalisedSkus": [
      {
        "skuId": "100_diamonds_coda",
        "description": "100 Diamonds",
        "details": {
          "category": "vip-cash",
          "price": 1.25,
          "currency": "USD",
          "imageUrl": "https: //cdn1.partner.com/S/content/common/images/denom-image/BGMI/100x100/60_bgmi_uc.png"
        }
      },
      {
        "skuId": "1000_diamonds_coda",
        "description": "100 Diamonds",
        "details": {
          "category": "growth",
          "price": 150000,
          "currency": "IDR",
          "imageUrl": "https: //cdn1.partner.com/S/content/common/images/denom-image/BGMI/100x100/60_bgmi_uc.png"
        }
      }
    ]
  }
}

Invalid User Verify Response

Format: JSON-RPC

// 
{
    "id": "6164695159717629913",
    "jsonrpc": "2.0",
    "error": {
        "code": -100,
        "message": "Invalid user ID"
    }
}

For any queries related to integration, reach out to the Partnership Support Team.

Last updated