whitemarket Documentation For Partners

Authorization

Authorization via Partner Token

  1. Paste following mutation into playground left side terminal:

    mutation
    {
        auth_token {accessToken}
    }
    
  2. Paste following code into “HTTP Headers” tab, using your Partner Token (received from WhiteMarket) :

    {
        "X-partner-token" : "Partner Token (received from WhiteMarket)"
    }
    
  3. Receive Authorization Token at right-side terminal. You will need to use it for further requests in order for our server to process them as legit ones.

    image

    This token has 1 hour lifetime

    After 1 hour you will receive next one:

    "error": {
       "code": 401,
       "message": "Expired JWT Token"
    }
    

    Please repeat step 2 to receive new token.

  4. Change code in “HTTP Headers” tab to following one, using your Authorization Token (received in step 3):

    {
     "Authorization" : " Bearer %Your authorization token received in step 3% "
    }
    
  5. With “Authorization”… HTTP Header you can call any available query:

    image