GET api/Customer/LoadCustomer/{Email}/{PostCode}/{LastName}/{ID}/{Password}/{MemberNumber}/{UserName}/{CheckExists}/{SerialNumber}

Loads a customer based on a number of parameters. If a parameter is not being used it can be left blank or as 0 for numbers, CheckExists is a boolean and must always have either a true or false value.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Email

Customer's Email Address

string

Required

PostCode

Customer's Postode

string

Required

LastName

Customer's LastName

string

Required

ID

Customer's ID

integer

Required

Password

Customer's Password

string

Required

MemberNumber

Customer's Member Number

string

Required

UserName

Customer's UserName

string

Required

CheckExists

If set to true this will simply check if the customer exists, meaning only an information response will be returned and not a full customer object.

boolean

Required

SerialNumber

Use this to pass a thankQ serial number to check the contact in Gamma, if this is passed with any other parameter it will first check Gamma otherwise if it is sent along it will check only thankQ and create the contact in Gamma if found.

string

Required

Body Parameters

None.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.

Response Formats

application/json, text/json

Sample:
{"ID":0,"Email":"","UDF":"","Title":"","Firstname":"","Middlename":"","Lastname":"","DOB":"0001-01-01T00:00:00","CompanyName":"","HouseNo":"","AddressLine1":"","AddressLine2":"","AddressLine3":"","City":"","Postcode":"","County":"","Country":"","TelephoneNumber":"","EveningTelephoneNumber":"","MailingList":"","Notes":"","Password":"","Interests":null,"PersonImage":"","DDAcountHolder":"","DDAccountNumber":"","DDSortCode":"","DDBankName":"","DDBankAddress":"","DDBankPostCode":"","MemberNumber":"","AccountRef":"","ConsentMail":false,"ConsentPhone":false,"ConsentSMS":false,"ConsentEmail":false,"Username":"","ForcePasswordChange":false,"CustomerRef":"","CustomerUDFs":null}

application/xml, text/xml

Sample:
<?xml version="1.0" encoding="utf-16"?>
<Customer xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>0</ID>
  <Email />
  <UDF />
  <Title />
  <Firstname />
  <Middlename />
  <Lastname />
  <DOB>0001-01-01T00:00:00</DOB>
  <CompanyName />
  <HouseNo />
  <AddressLine1 />
  <AddressLine2 />
  <AddressLine3 />
  <City />
  <Postcode />
  <County />
  <Country />
  <TelephoneNumber />
  <EveningTelephoneNumber />
  <MailingList />
  <Notes />
  <Password />
  <PersonImage />
  <DDAcountHolder />
  <DDAccountNumber />
  <DDSortCode />
  <DDBankName />
  <DDBankAddress />
  <DDBankPostCode />
  <MemberNumber />
  <AccountRef />
  <ConsentMail>false</ConsentMail>
  <ConsentPhone>false</ConsentPhone>
  <ConsentSMS>false</ConsentSMS>
  <ConsentEmail>false</ConsentEmail>
  <Username />
  <ForcePasswordChange>false</ForcePasswordChange>
  <CustomerRef />
</Customer>