Skip to main content

Single Sign On by customer reference

Single Sign On by customer reference

Last updated: 13-Oct-2021
Rate this article:


Use the getSingleSignOnByCustomer method to create Single Sign On links into Avangate myAccount based on customer references (IDs). Use either the Avangate Customer Reference or the External Customer Reference to identify specific customers.


Parameters Type/Description


Required (string)


Session identifier, the output of the Login method. Include sessionID into all your requests. Avangate throws an exception if the values are incorrect.  The sessionID expires in 10 minutes.


Required (string)


Unique customer identifiers. Can be either the ExternalCustomerReference you control or the system-generated AvangateCustomerReference.


Required (string)


Possible values:

  • ExternalCustomerReference
  • AvangateCustomerReference


Optional (string)


The specific myAccount page where you redirect the customer.

Possible values:

my_subscription - redirect shoppers to the subscription's page of myAccount based on the SubscriptionReference you provide.

my_products - redirects shoppers to the myAccount page designed to list all products purchased from Avangate.

user_data - redirects shoppers to the Personal Information page in myAccount

order_lookup - redirects shoppers to the Order Lookup area of myAccount:

faq - redirects shoppers to the Support page of myAccount


payment_methods – redirect shoppers to the Payment Methods area of myAccount:

Do not include PAGE in the URL to redirect shoppers to myAccount homepage



Optional (string)


Needed for 'my_subscription'

Request[]=code=123D40F123 redirects customers to the page for the subscription with the 123D40F123 SubscriptionReference value.



Optional (int)


The time, in seconds, before the single sign-on URL expires. By default, the URL expires after 10 seconds. (optional)


Optional (string)


The IP address of the shopper, necessary for security purposes. Can be an empty string or a valid IP, or null.


Parameters Type/Description

Single sign-on URL



The string generated is the complete single sign-on URL pointing to Avangate myAccount, containing the unique URL. Shoppers using it log into their Avangate myAccount automatically.



require ('PATH_TO_AUTH');

$idCustomer = '352365983';
$customerType = 'AvangateCustomerReference';
$page = 'my_license';
$request = null;
$validityTime = 50;
$validationIp = null;

$jsonRpcRequest = array (
'method' => 'getSingleSignOnByCustomer',
'params' => array($sessionID, $idCustomer, $customerType, $page, $request, $validityTime, $validationIp),
'id' => $i++,
'jsonrpc' => '2.0');

var_dump (callRPC((Object)$jsonRpcRequest, $host, true));
Rate this article:
Logo of Verifone