PUT api/CrmCustomer
Updates customer record
Request Information
URI Parameters
None.
Body Parameters
The customer object with the updated information
CrmCustomerName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
None. |
|
Firstname | string |
None. |
|
Lastname | string |
None. |
|
Company | string |
None. |
|
Phone | string |
None. |
|
PhoneExt | string |
None. |
|
PagerNumber | string |
None. |
|
Solicitation | boolean |
None. |
|
EnableSoupEmail | boolean |
None. |
|
DeliveryInstructions | string |
None. |
|
SpecialtysNetUserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "Firstname": "sample string 2", "Lastname": "sample string 3", "Company": "sample string 4", "Phone": "sample string 5", "PhoneExt": "sample string 6", "PagerNumber": "sample string 7", "Solicitation": true, "EnableSoupEmail": true, "DeliveryInstructions": "sample string 10", "SpecialtysNetUserId": 11 }
text/html
Sample:
{"CustomerId":1,"Firstname":"sample string 2","Lastname":"sample string 3","Company":"sample string 4","Phone":"sample string 5","PhoneExt":"sample string 6","PagerNumber":"sample string 7","Solicitation":true,"EnableSoupEmail":true,"DeliveryInstructions":"sample string 10","SpecialtysNetUserId":11}
application/xml, text/xml
Sample:
<CrmCustomer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Specialtys.DTO"> <SpecialtysNetUserId>11</SpecialtysNetUserId> <Company>sample string 4</Company> <CustomerId>1</CustomerId> <DeliveryInstructions>sample string 10</DeliveryInstructions> <EnableSoupEmail>true</EnableSoupEmail> <Firstname>sample string 2</Firstname> <Lastname>sample string 3</Lastname> <PagerNumber>sample string 7</PagerNumber> <Phone>sample string 5</Phone> <PhoneExt>sample string 6</PhoneExt> <Solicitation>true</Solicitation> </CrmCustomer>
Response Information
Resource Description
BaseResponseName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
ExceptionMessage | string |
None. |
|
SuccessMessage | string |
None. |
|
IsBaseResponse | boolean |
None. |
|
NewSessionLunchcartCreated | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "ExceptionMessage": "sample string 2", "SuccessMessage": "sample string 3", "IsBaseResponse": true, "NewSessionLunchcartCreated": true }
text/html
Sample:
{"Success":true,"ExceptionMessage":"sample string 2","SuccessMessage":"sample string 3","IsBaseResponse":true,"NewSessionLunchcartCreated":true}
application/xml, text/xml
Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Specialtys.DTO.Response"> <ExceptionMessage>sample string 2</ExceptionMessage> <IsBaseResponse>true</IsBaseResponse> <NewSessionLunchcartCreated>true</NewSessionLunchcartCreated> <Success>true</Success> <SuccessMessage>sample string 3</SuccessMessage> </BaseResponse>