POST api/Customer

Request Information

URI Parameters

None.

Body Parameters

Customer
NameDescriptionTypeAdditional information
id

string

None.

name

string

None.

companyid

string

None.

email_id

string

None.

phoneno

string

None.

address_street

string

None.

stateid

string

None.

districtid

string

None.

pincode

string

None.

id_type

integer

None.

id_no

string

None.

id_path

string

None.

img_path

string

None.

createdon

date

None.

createdby

string

None.

hotelid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "name": "sample string 2",
  "companyid": "sample string 3",
  "email_id": "sample string 4",
  "phoneno": "sample string 5",
  "address_street": "sample string 6",
  "stateid": "sample string 7",
  "districtid": "sample string 8",
  "pincode": "sample string 9",
  "id_type": 10,
  "id_no": "sample string 11",
  "id_path": "sample string 12",
  "img_path": "sample string 13",
  "createdon": "2025-12-11T20:15:15.8775448+05:30",
  "createdby": "sample string 15",
  "hotelid": "sample string 16"
}

application/xml, text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InventoryAPI.Models">
  <address_street>sample string 6</address_street>
  <companyid>sample string 3</companyid>
  <createdby>sample string 15</createdby>
  <createdon>2025-12-11T20:15:15.8775448+05:30</createdon>
  <districtid>sample string 8</districtid>
  <email_id>sample string 4</email_id>
  <hotelid>sample string 16</hotelid>
  <id>sample string 1</id>
  <id_no>sample string 11</id_no>
  <id_path>sample string 12</id_path>
  <id_type>10</id_type>
  <img_path>sample string 13</img_path>
  <name>sample string 2</name>
  <phoneno>sample string 5</phoneno>
  <pincode>sample string 9</pincode>
  <stateid>sample string 7</stateid>
</Customer>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Customer'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.