POST api/customers/AddCustomer

Request Information

URI Parameters

None.

Body Parameters

CustomerEntity
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Title

string

None.

Name

string

None.

Mobile

string

None.

Gender

string

None.

Email

string

None.

Active

boolean

None.

CreatedTime

date

None.

UpdatedTime

date

None.

VendorId

integer

None.

LocationId

integer

None.

AddressId

integer

None.

Anniversary

date

None.

LastVisit

date

None.

DateOfBirth

date

None.

Address

AddressEntity

None.

TotalVisits

integer

None.

TotalSaleValue

decimal number

None.

ValidationPassed

boolean

None.

ValidationMessage

string

None.

IsImported

boolean

None.

VendorName

string

None.

EnabledPromotionalSMS

boolean

None.

Services

Collection of string

None.

FollowupDate

date

None.

AadharNumber

string

None.

CustomerLabel

string

None.

GSTIN

string

None.

ImportedCustomerId

string

None.

Memberships

Collection of MembershipCustomerMapEntity

None.

WalletBalance

decimal number

None.

CustomerAreaId

integer

None.

CustomerArea

string

None.

LocationContact

string

None.

Membership

string

None.

MembershipId

integer

None.

LocationName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Title": "sample string 2",
  "Name": "sample string 3",
  "Mobile": "sample string 4",
  "Gender": "sample string 5",
  "Email": "sample string 6",
  "Active": true,
  "CreatedTime": "2025-12-31T16:35:40.8790361+05:30",
  "UpdatedTime": "2025-12-31T16:35:40.8790361+05:30",
  "VendorId": 10,
  "LocationId": 11,
  "AddressId": 1,
  "Anniversary": "2025-12-31T16:35:40.8790361+05:30",
  "LastVisit": "2025-12-31T16:35:40.8790361+05:30",
  "DateOfBirth": "2025-12-31T16:35:40.8790361+05:30",
  "Address": {
    "AddressId": 1,
    "AddressLine1": "sample string 2",
    "AddressLine2": "sample string 3",
    "City": "sample string 4",
    "State": "sample string 5",
    "Zipcode": "sample string 6",
    "Country": "sample string 7",
    "Latitude": "sample string 8",
    "Longitude": "sample string 9",
    "Active": true,
    "CreatedTime": "2025-12-31T16:35:40.8790361+05:30",
    "UpdatedTime": "2025-12-31T16:35:40.8790361+05:30"
  },
  "TotalVisits": 12,
  "TotalSaleValue": 1.0,
  "ValidationPassed": true,
  "ValidationMessage": "sample string 14",
  "IsImported": true,
  "VendorName": "sample string 16",
  "EnabledPromotionalSMS": true,
  "Services": [
    "sample string 1",
    "sample string 2"
  ],
  "FollowupDate": "2025-12-31T16:35:40.8790361+05:30",
  "AadharNumber": "sample string 18",
  "CustomerLabel": "sample string 19",
  "GSTIN": "sample string 20",
  "ImportedCustomerId": "sample string 21",
  "Memberships": [
    {
      "MembershipCustomerMapId": 1,
      "ExpiryDate": "2025-12-31T16:35:40.8790361+05:30",
      "Active": true,
      "CreatedTime": "2025-12-31T16:35:40.8790361+05:30",
      "UpdatedTime": "2025-12-31T16:35:40.8790361+05:30",
      "MembershipName": "sample string 5",
      "VendorId": 6,
      "LocationId": 7,
      "CustomerId": 8,
      "MembershipId": 9,
      "MembershipBillId": 10,
      "MembershipType": 64,
      "MembershipCardNo": "sample string 12",
      "IsExpired": true,
      "CustomerName": "sample string 14",
      "Mobile": "sample string 15",
      "LocationName": "sample string 16",
      "Price": 17.0
    },
    {
      "MembershipCustomerMapId": 1,
      "ExpiryDate": "2025-12-31T16:35:40.8790361+05:30",
      "Active": true,
      "CreatedTime": "2025-12-31T16:35:40.8790361+05:30",
      "UpdatedTime": "2025-12-31T16:35:40.8790361+05:30",
      "MembershipName": "sample string 5",
      "VendorId": 6,
      "LocationId": 7,
      "CustomerId": 8,
      "MembershipId": 9,
      "MembershipBillId": 10,
      "MembershipType": 64,
      "MembershipCardNo": "sample string 12",
      "IsExpired": true,
      "CustomerName": "sample string 14",
      "Mobile": "sample string 15",
      "LocationName": "sample string 16",
      "Price": 17.0
    }
  ],
  "WalletBalance": 22.0,
  "CustomerAreaId": 1,
  "CustomerArea": "sample string 23",
  "LocationContact": "sample string 24",
  "Membership": "sample string 25",
  "MembershipId": 26,
  "LocationName": "sample string 27"
}

application/xml, text/xml

Sample:
<CustomerEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pos_crm_api_DAL.Entities">
  <AadharNumber>sample string 18</AadharNumber>
  <Active>true</Active>
  <Address>
    <Active>true</Active>
    <AddressId>1</AddressId>
    <AddressLine1>sample string 2</AddressLine1>
    <AddressLine2>sample string 3</AddressLine2>
    <City>sample string 4</City>
    <Country>sample string 7</Country>
    <CreatedTime>2025-12-31T16:35:40.8790361+05:30</CreatedTime>
    <Latitude>sample string 8</Latitude>
    <Longitude>sample string 9</Longitude>
    <State>sample string 5</State>
    <UpdatedTime>2025-12-31T16:35:40.8790361+05:30</UpdatedTime>
    <Zipcode>sample string 6</Zipcode>
  </Address>
  <AddressId>1</AddressId>
  <Anniversary>2025-12-31T16:35:40.8790361+05:30</Anniversary>
  <CreatedTime>2025-12-31T16:35:40.8790361+05:30</CreatedTime>
  <CustomerArea>sample string 23</CustomerArea>
  <CustomerAreaId>1</CustomerAreaId>
  <CustomerId>1</CustomerId>
  <CustomerLabel>sample string 19</CustomerLabel>
  <DateOfBirth>2025-12-31T16:35:40.8790361+05:30</DateOfBirth>
  <Email>sample string 6</Email>
  <EnabledPromotionalSMS>true</EnabledPromotionalSMS>
  <FollowupDate>2025-12-31T16:35:40.8790361+05:30</FollowupDate>
  <GSTIN>sample string 20</GSTIN>
  <Gender>sample string 5</Gender>
  <ImportedCustomerId>sample string 21</ImportedCustomerId>
  <IsImported>true</IsImported>
  <LastVisit>2025-12-31T16:35:40.8790361+05:30</LastVisit>
  <LocationContact>sample string 24</LocationContact>
  <LocationId>11</LocationId>
  <LocationName>sample string 27</LocationName>
  <Membership>sample string 25</Membership>
  <MembershipId>26</MembershipId>
  <Memberships>
    <MembershipCustomerMapEntity>
      <Active>true</Active>
      <CreatedTime>2025-12-31T16:35:40.8790361+05:30</CreatedTime>
      <CustomerId>8</CustomerId>
      <CustomerName>sample string 14</CustomerName>
      <ExpiryDate>2025-12-31T16:35:40.8790361+05:30</ExpiryDate>
      <IsExpired>true</IsExpired>
      <LocationId>7</LocationId>
      <LocationName>sample string 16</LocationName>
      <MembershipBillId>10</MembershipBillId>
      <MembershipCardNo>sample string 12</MembershipCardNo>
      <MembershipCustomerMapId>1</MembershipCustomerMapId>
      <MembershipId>9</MembershipId>
      <MembershipName>sample string 5</MembershipName>
      <MembershipType>64</MembershipType>
      <Mobile>sample string 15</Mobile>
      <Price>17</Price>
      <UpdatedTime>2025-12-31T16:35:40.8790361+05:30</UpdatedTime>
      <VendorId>6</VendorId>
    </MembershipCustomerMapEntity>
    <MembershipCustomerMapEntity>
      <Active>true</Active>
      <CreatedTime>2025-12-31T16:35:40.8790361+05:30</CreatedTime>
      <CustomerId>8</CustomerId>
      <CustomerName>sample string 14</CustomerName>
      <ExpiryDate>2025-12-31T16:35:40.8790361+05:30</ExpiryDate>
      <IsExpired>true</IsExpired>
      <LocationId>7</LocationId>
      <LocationName>sample string 16</LocationName>
      <MembershipBillId>10</MembershipBillId>
      <MembershipCardNo>sample string 12</MembershipCardNo>
      <MembershipCustomerMapId>1</MembershipCustomerMapId>
      <MembershipId>9</MembershipId>
      <MembershipName>sample string 5</MembershipName>
      <MembershipType>64</MembershipType>
      <Mobile>sample string 15</Mobile>
      <Price>17</Price>
      <UpdatedTime>2025-12-31T16:35:40.8790361+05:30</UpdatedTime>
      <VendorId>6</VendorId>
    </MembershipCustomerMapEntity>
  </Memberships>
  <Mobile>sample string 4</Mobile>
  <Name>sample string 3</Name>
  <Services xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Services>
  <Title>sample string 2</Title>
  <TotalSaleValue>1</TotalSaleValue>
  <TotalVisits>12</TotalVisits>
  <UpdatedTime>2025-12-31T16:35:40.8790361+05:30</UpdatedTime>
  <ValidationMessage>sample string 14</ValidationMessage>
  <ValidationPassed>true</ValidationPassed>
  <VendorId>10</VendorId>
  <VendorName>sample string 16</VendorName>
  <WalletBalance>22</WalletBalance>
</CustomerEntity>

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.