POST api/Customer/AddCustomer

Request Information

URI Parameters

None.

Body Parameters

Customer
NameDescriptionTypeAdditional information
partyType

integer

None.

customerMasterId

integer

None.

customerName

string

None.

customerPhoneNumber

string

None.

partyOrganisationName

string

None.

GSTIN

string

None.

stateCode

string

None.

stateId

integer

None.

cityId

integer

None.

townId

integer

None.

address

string

None.

flag

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "partyType": 1,
  "customerMasterId": 2,
  "customerName": "sample string 3",
  "customerPhoneNumber": "sample string 4",
  "partyOrganisationName": "sample string 5",
  "GSTIN": "sample string 6",
  "stateCode": "sample string 7",
  "stateId": 8,
  "cityId": 9,
  "townId": 10,
  "address": "sample string 11",
  "flag": 12
}

text/html

Sample:
{"partyType":1,"customerMasterId":2,"customerName":"sample string 3","customerPhoneNumber":"sample string 4","partyOrganisationName":"sample string 5","GSTIN":"sample string 6","stateCode":"sample string 7","stateId":8,"cityId":9,"townId":10,"address":"sample string 11","flag":12}

application/xml, text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <GSTIN>sample string 6</GSTIN>
  <address>sample string 11</address>
  <cityId>9</cityId>
  <customerMasterId>2</customerMasterId>
  <customerName>sample string 3</customerName>
  <customerPhoneNumber>sample string 4</customerPhoneNumber>
  <flag>12</flag>
  <partyOrganisationName>sample string 5</partyOrganisationName>
  <partyType>1</partyType>
  <stateCode>sample string 7</stateCode>
  <stateId>8</stateId>
  <townId>10</townId>
</Customer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VCAPIResponse
NameDescriptionTypeAdditional information
Version

string

None.

dateTime

string

None.

StatusCode

integer

None.

ErrorMessage

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Version": "1.0.0",
  "dateTime": "2025/12/28 05:18:37",
  "StatusCode": 1,
  "ErrorMessage": "sample string 2",
  "Result": {}
}

text/html

Sample:
{"Version":"1.0.0","dateTime":"2025/12/28 05:18:37","StatusCode":1,"ErrorMessage":"sample string 2","Result":{}}

application/xml, text/xml

Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result />
  <StatusCode>1</StatusCode>
</VCAPIResponse>