POST api/customer/upsert
Request Information
URI Parameters
None.
Body Parameters
CustomerUpsertRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| FullName | string |
None. |
|
| Phone | string |
None. |
|
| string |
None. |
||
| CustomerType | string |
None. |
|
| TaxCode | string |
None. |
|
| ContactPerson | string |
None. |
|
| DateOfBirth | date |
None. |
|
| Address | string |
None. |
|
| Note | string |
None. |
|
| CustomerGroupId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"FullName": "sample string 2",
"Phone": "sample string 3",
"Email": "sample string 4",
"CustomerType": "sample string 5",
"TaxCode": "sample string 6",
"ContactPerson": "sample string 7",
"DateOfBirth": "2026-07-14T17:49:21.2613863+07:00",
"Address": "sample string 8",
"Note": "sample string 9",
"CustomerGroupId": 1
}
application/xml, text/xml
Sample:
<CustomerUpsertRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmiletripB2B.API.Models"> <Address>sample string 8</Address> <ContactPerson>sample string 7</ContactPerson> <CustomerGroupId>1</CustomerGroupId> <CustomerType>sample string 5</CustomerType> <DateOfBirth>2026-07-14T17:49:21.2613863+07:00</DateOfBirth> <Email>sample string 4</Email> <FullName>sample string 2</FullName> <Id>1</Id> <Note>sample string 9</Note> <Phone>sample string 3</Phone> <TaxCode>sample string 6</TaxCode> </CustomerUpsertRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.