pixi Developer & Integration Documentation

pixiCustomerKeyByEmail

Description

This function returns pixi* Customer Key by a given customer eMail. It is possible to determine how one wishes to handle ambigous situations when there are several customers in pixi* with the same email


Request Parameters

# Name Type Required Example Description
1 eMail string 1 Sample text [mandatory] eMail Address of the customer
2 ShopId string 0 A [optional] ID of the shop, to which the customer belongs
3 AllowAmbiguous boolean 0 0/1 [optional] If this parameter is 0 (default value), in case when pixi* database contains several customers with same email, function will return NULL. If the parameter is 1, then one of these customers' Key will be returned (it is undefined, which one's)

Request body

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dem="https://api.pixi.eu/soap/demosandbox/">
   <soapenv:Header/>
   <soapenv:Body>
      <dem:pixiCustomerKeyByEmail>
         <dem:eMail>Sample text</dem:eMail>
         <dem:ShopId>A</dem:ShopId>
         <dem:AllowAmbiguous>0/1</dem:AllowAmbiguous>
      </dem:pixiCustomerKeyByEmail>
   </soapenv:Body>
</soapenv:Envelope>

Response


Body 1:

# Name Type Description
0 return integer Customer Key

Additional Notes