POST api/Customer/CreateOrUpdate

Request Information

URI Parameters

None.

Body Parameters

CreateCustomerRequest
NameDescriptionTypeAdditional 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.

Email

string

None.

Facebook

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": "2025-10-26T13:01:27.3786995+07:00",
  "MaSoThue": "sample string 8",
  "Email": "sample string 9",
  "Facebook": "sample string 10",
  "Note": "sample string 11",
  "AvartaId": "ef30dabd-0b1e-4e49-b765-b55fc15a4ec3",
  "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>ef30dabd-0b1e-4e49-b765-b55fc15a4ec3</AvartaId>
  <Code>sample string 14</Code>
  <DateOfBirth>2025-10-26T13:01:27.3786995+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:

Sample not available.

Response Information

Resource Description

string

Response 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>