Read Token

This function is used to create a token that can be used for single sign on purposes to Fusebill hosted portal pages.

​Minimum Request: You are required to pass in the Fusebill ID of the customer in the URL.

Using the Token to access the Portal: Upon successful completion of the api call you will be returned a string that is your single use token. To link a portal page simply append the token to the desired destination portal URL to by pass the login screen, i.e (V1 / Legacy Portals)
or (V2 Portals)

​Where 846aeef5-3512-42f3-b2e0-4f6989e9163c was the returned token.

If a previous token has been issued and not used that token will be invalidated upon creation of the new token. Additional details on SSO can be found here:

Path Parameters

customerIdIntegerThe Fusebill ID of the customer who's single sign-on key is being requested.
curl -X GET "{customerId}" \
	-H "Content-Type: application/json" \
	-H "Authorization: Basic {APIKey}"
//Path Parameter
int customerId = {customerId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://"+customerId);
//Set Content Length
request.ContentLength = 0;
//Add Content type
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic " + apiKey);
//Set request method
request.Method = "GET";
//Perform the request
var httpResponse = (HttpWebResponse)request.GetResponse();
//Record the response from our request
var result = "";
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
  result = streamReader.ReadToEnd();
#Import library Requests
import requests
#Pass in a dictionary to the Headers parameter
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' : 'application/json'}
#Pass in your URI and Headers
r = requests.get('{id}', headers=headers)
A unique identifier (GUID) token that can be used for single sign on purposes to Fusebill hosted portal pages.