POST api/Customer/CreateOrUpdate
Request Information
URI Parameters
None.
Body Parameters
CreateCustomerRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Phone | string |
None. |
|
| PhoneSub | string |
None. |
|
| TinhThanhCode | string |
None. |
|
| QuanHuyenCode | string |
None. |
|
| PhuongXaCode | string |
None. |
|
| DateOfBirth | date |
None. |
|
| MaSoThue | string |
None. |
|
| string |
None. |
||
| string |
None. |
||
| Note | string |
None. |
|
| AvartaId | globally unique identifier |
None. |
|
| Type | integer |
None. |
|
| Address | string |
None. |
|
| Gender | GenderEnum |
None. |
|
| Code | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"phone": "sample string 3",
"phoneSub": "sample string 4",
"tinhThanhCode": "sample string 5",
"quanHuyenCode": "sample string 6",
"phuongXaCode": "sample string 7",
"dateOfBirth": "2026-11-27T01:43:46.0381123+07:00",
"maSoThue": "sample string 8",
"email": "sample string 9",
"facebook": "sample string 10",
"note": "sample string 11",
"avartaId": "eb73e339-bb80-4287-8008-530c0cf71912",
"type": 12,
"address": "sample string 13",
"gender": 0,
"code": "sample string 14"
}
application/xml, text/xml
Sample:
<CreateCustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Customer"> <Address>sample string 13</Address> <AvartaId>eb73e339-bb80-4287-8008-530c0cf71912</AvartaId> <Code>sample string 14</Code> <DateOfBirth>2026-11-27T01:43:46.0381123+07:00</DateOfBirth> <Email>sample string 9</Email> <Facebook>sample string 10</Facebook> <Gender>Nam</Gender> <Id>1</Id> <MaSoThue>sample string 8</MaSoThue> <Name>sample string 2</Name> <Note>sample string 11</Note> <Phone>sample string 3</Phone> <PhoneSub>sample string 4</PhoneSub> <PhuongXaCode>sample string 7</PhuongXaCode> <QuanHuyenCode>sample string 6</QuanHuyenCode> <TinhThanhCode>sample string 5</TinhThanhCode> <Type>12</Type> </CreateCustomerRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>