FSL ID Documentation
  • Overview of FSL ID
    • What is FSL ID?
  • Guides
    • Setup an FSL ID
  • Developers
    • Join as a Developer
    • FSL ID SDK
    • Univeral Login
    • Interact with Wallet
    • Reputation Score
      • Upload Reputation Score
      • Retrieve Reputation Score
    • Grant Scope
Powered by GitBook
On this page
  • Pre-requisite
  • API
  1. Developers
  2. Reputation Score

Retrieve Reputation Score

PreviousUpload Reputation ScoreNextGrant Scope

Last updated 9 months ago

Retrieve the Reputation Score for an FSL ID user.

Pre-requisite

Make sure the ReputationScore is included when requesting authorization. You cannot share or retrieve reputation scores without approval from the user.

API

Post /api/account/party/reputationscore

Header

Name
Value

Content-Type

application/json

Authorization

Bearer <access token>

Parameters

Name
Mandatory?
Description

appid

N

Provide the appid if you want to retrieve scores from a specific app. You can find the App ID from developer console. Retrieve global score if you don't provide appid.

Request Example

curl --location 'https://$API_BASE_URL/api/account/party/reputationscore' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer access_token'
-d "appid=xxxxxxx"

Response

{
    "code": 0,
    "data": {
        "fslUid": 1111111,
        "appid": "xxxxxxx",
        "reputationScore": {
            "ALL": {
                "Trade Volume": "Whale"
            },
            "30D": {
                "Trade Volume": "Shark",
                "Active": "Casual"
            },
            "7D": {
                "Active": "Engaged"
            }
        }
    }
}
{
    "code": 208403,
    "message": "No user grant or revoked"
}
/*
208004: Invalid access token
301002: User doesn't exist
208403: No user grant or revoked
209001: Invalid App ID
*/

Grant Scope