POST api/Customer/Update
Request Information
URI Parameters
None.
Body Parameters
Customer| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| CompanyId | integer |
None. |
|
| CustomerName | string |
None. |
|
| PhoneNo | string |
None. |
|
| string |
None. |
||
| Gender | string |
None. |
|
| DOB | date |
None. |
|
| TaxRegNo | string |
None. |
|
| Image | string |
None. |
|
| Active | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"customerId": 1,
"companyId": 1,
"customerName": "sample string 2",
"phoneNo": "sample string 3",
"email": "sample string 4",
"gender": "sample string 5",
"dob": "2025-12-11T20:07:53.8926854+05:30",
"taxRegNo": "sample string 6",
"image": "sample string 7",
"active": true
}
application/xml, text/xml
Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XeniaEStoreAPI.Resource"> <Active>true</Active> <CompanyId>1</CompanyId> <CustomerId>1</CustomerId> <CustomerName>sample string 2</CustomerName> <DOB>2025-12-11T20:07:53.8926854+05:30</DOB> <Email>sample string 4</Email> <Gender>sample string 5</Gender> <Image>sample string 7</Image> <PhoneNo>sample string 3</PhoneNo> <TaxRegNo>sample string 6</TaxRegNo> </Customer>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APIResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | string |
None. |
|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| Type | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": "sample string 1",
"data": {},
"message": "sample string 3",
"type": 4
}
application/xml, text/xml
Sample:
<APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XeniaEStoreAPI.Controllers.Resource"> <Data /> <Message>sample string 3</Message> <Status>sample string 1</Status> <Type>4</Type> </APIResponse>