Click or drag to resize
Infosoft Logo

InfoWebXMLWebServiceGetCustomerProductByTitle Method

Get a customers product by title. Returns the same information as GetCustomerInformationByTitleAndCustomerNumber.

Namespace: Infosoft.Webservices
Assembly: Infosoft.Webservices (in Infosoft.Webservices.dll) Version: 4.00.0.0
Syntax
public InfoWebCustomerInfo GetCustomerProductByTitle(
	int customerNumber,
	string titleCode
)

Parameters

customerNumber  Int32
The number for the customer
titleCode  String
The code for the susbcription title

Return Value

InfoWebCustomerInfo
InfoWebCustomerInfo object with status code '00' if customer was retrieved successfully. For other possible status codes, look under Remarks.
Remarks

Possible status codes:

    string titleCode = "TEST";
    int customerNumber = 1000;
    
    InfoWebCustomerInfo customerObject = GetCustomerProductByTitle(customerNumber, titleCode);
    if (customerObject.StatusCode == StatusCodes.OK)
    {
        string product = customerObject.Subscription.ProductCode
    }
    else
    {
        // Show an error message based on another status code
    }
See Also