POST api/Customer/UpdateProfile
Request Information
URI Parameters
None.
Body Parameters
CustomerProfileViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| NHSId | string |
None. |
|
| TitleId | integer |
Required |
|
| Title_Value | string |
None. |
|
| FirstName | string |
Required |
|
| LastName | string |
None. |
|
| string |
Required |
||
| MaritalStatus | string |
None. |
|
| GenderId | integer |
Required |
|
| Gender_Value | string |
None. |
|
| DateOfBirth | date |
None. |
|
| RegisteredFor | string |
Required |
|
| IsPayForPrescription | boolean |
None. |
|
| ReasonId | integer |
None. |
|
| Reason_Value | string |
None. |
|
| PreferedContactId | integer |
None. |
|
| PreferedContact_Value | string |
None. |
|
| CreatedDate | date |
None. |
|
| LastModified | date |
None. |
|
| UserId | string |
Required |
|
| MobileNumber | string |
None. |
|
| IsActive | boolean |
None. |
|
| HowDidYouHearAboutUs | string |
None. |
|
| FreeReminderDate | date |
None. |
|
| ReasonDocumentFileName | string |
None. |
|
| ReasonDocumentFullPath | string |
None. |
|
| ReasonDocumentRejectDescription | string |
None. |
|
| IsReasonDocumentAccepted | boolean |
None. |
|
| Addresses | Collection of CustomerAddressViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"NHSId": "sample string 2",
"TitleId": 1,
"Title_Value": "sample string 3",
"FirstName": "sample string 4",
"LastName": "sample string 5",
"Email": "sample string 6",
"MaritalStatus": "sample string 7",
"GenderId": 1,
"Gender_Value": "sample string 8",
"DateOfBirth": "2025-12-06T03:59:23.5922431+00:00",
"RegisteredFor": "sample string 9",
"IsPayForPrescription": true,
"ReasonId": 1,
"Reason_Value": "sample string 10",
"PreferedContactId": 1,
"PreferedContact_Value": "sample string 11",
"CreatedDate": "2025-12-06T03:59:23.5922431+00:00",
"LastModified": "2025-12-06T03:59:23.5922431+00:00",
"UserId": "sample string 12",
"MobileNumber": "sample string 13",
"IsActive": true,
"HowDidYouHearAboutUs": "sample string 14",
"FreeReminderDate": "2025-12-06T03:59:23.593243+00:00",
"ReasonDocumentFileName": "sample string 15",
"ReasonDocumentFullPath": "sample string 16",
"ReasonDocumentRejectDescription": "sample string 17",
"IsReasonDocumentAccepted": true,
"Addresses": [
{
"Id": 1,
"CustomerId": 2,
"UserType": "sample string 3",
"AddressLine1": "sample string 4",
"AddressLine2": "sample string 5",
"CityId": 1,
"City_Value": "sample string 6",
"StateId": 1,
"State_Value": "sample string 7",
"PostCode": "sample string 8",
"CountryId": 1,
"Country_Value": "sample string 9",
"WorkPhoneNumber": "sample string 10",
"HomePhoneNumber": "sample string 11",
"IsPrimary": true,
"AddressType": "sample string 12",
"SpecialSafePlace": "sample string 13",
"IsActive": true,
"IsLetterBoxDelivery": true
},
{
"Id": 1,
"CustomerId": 2,
"UserType": "sample string 3",
"AddressLine1": "sample string 4",
"AddressLine2": "sample string 5",
"CityId": 1,
"City_Value": "sample string 6",
"StateId": 1,
"State_Value": "sample string 7",
"PostCode": "sample string 8",
"CountryId": 1,
"Country_Value": "sample string 9",
"WorkPhoneNumber": "sample string 10",
"HomePhoneNumber": "sample string 11",
"IsPrimary": true,
"AddressType": "sample string 12",
"SpecialSafePlace": "sample string 13",
"IsActive": true,
"IsLetterBoxDelivery": true
}
]
}
application/xml, text/xml
Sample:
<CustomerProfileViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CodaPharma.Api.Models">
<Addresses>
<CustomerAddressViewModel>
<AddressLine1>sample string 4</AddressLine1>
<AddressLine2>sample string 5</AddressLine2>
<AddressType>sample string 12</AddressType>
<CityId>1</CityId>
<City_Value>sample string 6</City_Value>
<CountryId>1</CountryId>
<Country_Value>sample string 9</Country_Value>
<CustomerId>2</CustomerId>
<HomePhoneNumber>sample string 11</HomePhoneNumber>
<Id>1</Id>
<IsActive>true</IsActive>
<IsLetterBoxDelivery>true</IsLetterBoxDelivery>
<IsPrimary>true</IsPrimary>
<PostCode>sample string 8</PostCode>
<SpecialSafePlace>sample string 13</SpecialSafePlace>
<StateId>1</StateId>
<State_Value>sample string 7</State_Value>
<UserType>sample string 3</UserType>
<WorkPhoneNumber>sample string 10</WorkPhoneNumber>
</CustomerAddressViewModel>
<CustomerAddressViewModel>
<AddressLine1>sample string 4</AddressLine1>
<AddressLine2>sample string 5</AddressLine2>
<AddressType>sample string 12</AddressType>
<CityId>1</CityId>
<City_Value>sample string 6</City_Value>
<CountryId>1</CountryId>
<Country_Value>sample string 9</Country_Value>
<CustomerId>2</CustomerId>
<HomePhoneNumber>sample string 11</HomePhoneNumber>
<Id>1</Id>
<IsActive>true</IsActive>
<IsLetterBoxDelivery>true</IsLetterBoxDelivery>
<IsPrimary>true</IsPrimary>
<PostCode>sample string 8</PostCode>
<SpecialSafePlace>sample string 13</SpecialSafePlace>
<StateId>1</StateId>
<State_Value>sample string 7</State_Value>
<UserType>sample string 3</UserType>
<WorkPhoneNumber>sample string 10</WorkPhoneNumber>
</CustomerAddressViewModel>
</Addresses>
<CreatedDate>2025-12-06T03:59:23.5922431+00:00</CreatedDate>
<DateOfBirth>2025-12-06T03:59:23.5922431+00:00</DateOfBirth>
<Email>sample string 6</Email>
<FirstName>sample string 4</FirstName>
<FreeReminderDate>2025-12-06T03:59:23.593243+00:00</FreeReminderDate>
<GenderId>1</GenderId>
<Gender_Value>sample string 8</Gender_Value>
<HowDidYouHearAboutUs>sample string 14</HowDidYouHearAboutUs>
<Id>1</Id>
<IsActive>true</IsActive>
<IsPayForPrescription>true</IsPayForPrescription>
<IsReasonDocumentAccepted>true</IsReasonDocumentAccepted>
<LastModified>2025-12-06T03:59:23.5922431+00:00</LastModified>
<LastName>sample string 5</LastName>
<MaritalStatus>sample string 7</MaritalStatus>
<MobileNumber>sample string 13</MobileNumber>
<NHSId>sample string 2</NHSId>
<PreferedContactId>1</PreferedContactId>
<PreferedContact_Value>sample string 11</PreferedContact_Value>
<ReasonDocumentFileName>sample string 15</ReasonDocumentFileName>
<ReasonDocumentFullPath>sample string 16</ReasonDocumentFullPath>
<ReasonDocumentRejectDescription>sample string 17</ReasonDocumentRejectDescription>
<ReasonId>1</ReasonId>
<Reason_Value>sample string 10</Reason_Value>
<RegisteredFor>sample string 9</RegisteredFor>
<TitleId>1</TitleId>
<Title_Value>sample string 3</Title_Value>
<UserId>sample string 12</UserId>
</CustomerProfileViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | ResStatus |
None. |
|
| ErrorMessage | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 0,
"ErrorMessage": "sample string 1",
"Data": {}
}
application/xml, text/xml
Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CodaPharma.Api.Models"> <Data /> <ErrorMessage>sample string 1</ErrorMessage> <Status>Fail</Status> </ResponseModel>