Rsl.Lotteries

<back to all web services

UpdateCustomer

Updates customer details

The following routes are available for this service:
PATCH/customers/{CustomerId}
UpdateCustomer Parameters:
NameParameterData TypeRequiredDescription
CustomerIdpathstringYesThe customer identifier
KnownAsquerystringNoThe name the customer is known as
RemoveKnownAsquerybool?NoWhen true, known as will be removed
TitlequeryPersonTitle?NoPerson title

Allowable Values

  • Mr
  • Mrs
  • Miss
  • Ms
  • Dr
FirstNamequerystringNoFirst name
LastNamequerystringNoLast name
DateOfBirthqueryDateTime?NoDate of birth. format YYYY-MM-DD
MobilePhonequerystringNoMobile phone
RemoveMobilePhonequerybool?NoWhen true, mobile phone will be removed
HomePhonequerystringNoHome phone
RemoveHomePhonequerybool?NoWhen true, mobile phone will be removed
AddressqueryAddressNoPostal address
NotForPublicationquerybool?NoTrue to remain confidential if declared a winner. Default is false
SendTicketsViaPostquerybool?NoTrue to mail tickets to the postal address. Default is false
RequestReferencequeryRequestReferenceNoAttribution values associated to the request if any
AccountInstructionsquerystringNoAdditional information / notes about customer. e.g. when calling, Speak Loud for this customer
RemoveAccountInstructionsquerybool?NoWhen true, the account instructions will be deleted
IdentityStatusqueryIdentityStatus?NoThe identity status of customer in Dynamics
PersonTitle Enum:
Mr
Mrs
Miss
Ms
Dr
Address Parameters:
NameParameterData TypeRequiredDescription
StreetformstringNo
CityformstringNo
ZipCodeformstringNo
StateformstringNo
CountryRegionIdformstringNo
DPIDformintNo
SuburbformstringNo
RequestReference Parameters:
NameParameterData TypeRequiredDescription
CampaignIdformstringNo
RetailChannelIdformstringYes
ReferenceIdformstringNo
IdentityStatus Enum:
NameValue
NewCustomer0
NoOnlineAccount1
ValidOnlineAccount2
PrimaryEmailChange3
EmailAlreadyInIM4
PrimaryEmailRemoved5
Unknown-1

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PATCH /customers/{CustomerId} HTTP/1.1 
Host: azs-stg-lotteries-web.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	customerId: String,
	knownAs: String,
	removeKnownAs: False,
	title: Mr,
	firstName: String,
	lastName: String,
	dateOfBirth: 0001-01-01,
	mobilePhone: String,
	removeMobilePhone: False,
	homePhone: String,
	removeHomePhone: False,
	address: 
	{
		street: String,
		city: String,
		zipCode: String,
		state: String,
		countryRegionId: String,
		dpid: 0,
		suburb: String
	},
	notForPublication: False,
	sendTicketsViaPost: False,
	requestReference: 
	{
		campaignId: String,
		retailChannelId: String,
		referenceId: String
	},
	accountInstructions: String,
	removeAccountInstructions: False,
	identityStatus: NewCustomer
}