POST api/Values/MAddCustomer

Request Information

URI Parameters

None.

Body Parameters

CustomersDomain
NameDescriptionTypeAdditional information
CustomerID

integer

None.

CustomerName

string

None.

ContactPerson

string

None.

CNIC

string

None.

Address

string

None.

PhoneNo

string

None.

MobileNo

string

None.

OtherInfo

string

None.

CreditLimit

decimal number

None.

CustomerAccountID

integer

None.

InActive

boolean

None.

InvoiceTypeID

integer

None.

RegionID

integer

None.

BirthdayMonth

date

None.

Email

string

None.

CreatedDate

date

None.

CreatedBY

integer

None.

ModifyBY

integer

None.

ModifyDate

date

None.

LocationID

integer

None.

CustomerInitial

string

None.

IsSynchronize

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": 1,
  "CustomerName": "sample string 2",
  "ContactPerson": "sample string 3",
  "CNIC": "sample string 4",
  "Address": "sample string 5",
  "PhoneNo": "sample string 6",
  "MobileNo": "sample string 7",
  "OtherInfo": "sample string 8",
  "CreditLimit": 9.0,
  "CustomerAccountID": 10,
  "InActive": true,
  "InvoiceTypeID": 12,
  "RegionID": 13,
  "BirthdayMonth": "2024-12-21T10:46:00.8814058+05:00",
  "Email": "sample string 14",
  "CreatedDate": "2024-12-21T10:46:00.8814058+05:00",
  "CreatedBY": 16,
  "ModifyBY": 17,
  "ModifyDate": "2024-12-21T10:46:00.8814058+05:00",
  "LocationID": 19,
  "CustomerInitial": "sample string 20",
  "IsSynchronize": true
}

application/xml, text/xml

Sample:
<CustomersDomain xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestAPITest.Models">
  <Address>sample string 5</Address>
  <BirthdayMonth>2024-12-21T10:46:00.8814058+05:00</BirthdayMonth>
  <CNIC>sample string 4</CNIC>
  <ContactPerson>sample string 3</ContactPerson>
  <CreatedBY>16</CreatedBY>
  <CreatedDate>2024-12-21T10:46:00.8814058+05:00</CreatedDate>
  <CreditLimit>9</CreditLimit>
  <CustomerAccountID>10</CustomerAccountID>
  <CustomerID>1</CustomerID>
  <CustomerInitial>sample string 20</CustomerInitial>
  <CustomerName>sample string 2</CustomerName>
  <Email>sample string 14</Email>
  <InActive>true</InActive>
  <InvoiceTypeID>12</InvoiceTypeID>
  <IsSynchronize>true</IsSynchronize>
  <LocationID>19</LocationID>
  <MobileNo>sample string 7</MobileNo>
  <ModifyBY>17</ModifyBY>
  <ModifyDate>2024-12-21T10:46:00.8814058+05:00</ModifyDate>
  <OtherInfo>sample string 8</OtherInfo>
  <PhoneNo>sample string 6</PhoneNo>
  <RegionID>13</RegionID>
</CustomersDomain>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.