setCurrentCustomer

setCurrentCustomer (CRX020A) – allows the user to set a new customer to use the current user’s session (anonymous or registered). This operation should only be used at the start of the session before any account or order services are used.
RetriveLinkedCustomers would normally be called first to get a list of customers linked to the contact. The current customer can only be set to a customer linked to the contact. This web service will return the status to inform us the success/failure of the program call. If it’s successful then the new customer number will replace the current customer number. Otherwise the appropriate error message(s) will be returned.
N.B. The user needs to call the createSession web service for a registered user before calling this web service.

Input parameters:

Field ID Description Type Length Constraints
sessionId Session ID for the logged in user String Mandatory
customerNumber Customer number for the customer to be set as the new current customer. String Mandatory

Response:

Field ID Description Type Length
status Status of function called String 1
NewCustomerNumber New customer number set as current customer, if successful String
messageSet Message set messageSetDataType