POST api/customers

Request Information

URI Parameters

None.

Body Parameters

CustomerModel
NameDescriptionTypeAdditional information
CustomerId

integer

None.

CustomerName

string

Required

String length: inclusive between 0 and 200

CompanyName

string

String length: inclusive between 0 and 200

Phone

string

String length: inclusive between 0 and 50

IsActive

boolean

None.

CreatedAt

date

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "CustomerName": "sample string 2",
  "CompanyName": "sample string 3",
  "Phone": "sample string 4",
  "IsActive": true,
  "CreatedAt": "2026-11-21T11:52:26.4962022+03:30"
}

application/xml, text/xml

Sample:
<CustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Avideh.License.Server.Models">
  <CompanyName>sample string 3</CompanyName>
  <CreatedAt>2026-11-21T11:52:26.4962022+03:30</CreatedAt>
  <CustomerId>1</CustomerId>
  <CustomerName>sample string 2</CustomerName>
  <IsActive>true</IsActive>
  <Phone>sample string 4</Phone>
</CustomerModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.