POST api/customer

Creates a new customer.

Request Information

URI Parameters

None.

Body Parameters

An object containing information about the customer to create. If IsPasswordAutoGenerated is true, the user will be required to change the password upon their next login.

CustomerCreateRequest
NameDescriptionTypeAdditional information
CustomerData

CustomerCreate

None.

IsPasswordAutoGenerated

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerData": {
    "ExternalAdditionalInfo": "sample string 1",
    "ExternalCustomerId": "sample string 2",
    "WebPassword": "sample string 3",
    "WholeSalePartnerId": 4,
    "WholeSaleSalesRepresentativeId": 1,
    "BirthDay": "sample string 5",
    "CompanyName": "sample string 6",
    "CustomerType": 7,
    "Firstname": "sample string 8",
    "InvoiceTypeId": 1,
    "Lastname": "sample string 9",
    "LegalAddress": {
      "ApartmentNumber": "sample string 1",
      "Attention": "sample string 2",
      "City": "sample string 3",
      "Co": "sample string 4",
      "ContactEmail": "sample string 5",
      "ContactName": "sample string 6",
      "ContactPhoneNumber": "sample string 7",
      "Country": "sample string 8",
      "Email": "sample string 9",
      "FaxNumber": "sample string 10",
      "Floor": "sample string 11",
      "HouseNumber": "sample string 12",
      "Letter": "sample string 13",
      "PhoneNumber": "sample string 14",
      "PlaceName": "sample string 15",
      "PostBox": "sample string 16",
      "Side": "sample string 17",
      "Street": "sample string 18",
      "ZipCode": "sample string 19"
    },
    "Sex": 1,
    "SocialSecurityNumber": "sample string 10",
    "Title": "sample string 11",
    "VatRegistrationNumber": "sample string 12"
  },
  "IsPasswordAutoGenerated": true
}

text/html

Sample:
{"CustomerData":{"ExternalAdditionalInfo":"sample string 1","ExternalCustomerId":"sample string 2","WebPassword":"sample string 3","WholeSalePartnerId":4,"WholeSaleSalesRepresentativeId":1,"BirthDay":"sample string 5","CompanyName":"sample string 6","CustomerType":7,"Firstname":"sample string 8","InvoiceTypeId":1,"Lastname":"sample string 9","LegalAddress":{"ApartmentNumber":"sample string 1","Attention":"sample string 2","City":"sample string 3","Co":"sample string 4","ContactEmail":"sample string 5","ContactName":"sample string 6","ContactPhoneNumber":"sample string 7","Country":"sample string 8","Email":"sample string 9","FaxNumber":"sample string 10","Floor":"sample string 11","HouseNumber":"sample string 12","Letter":"sample string 13","PhoneNumber":"sample string 14","PlaceName":"sample string 15","PostBox":"sample string 16","Side":"sample string 17","Street":"sample string 18","ZipCode":"sample string 19"},"Sex":1,"SocialSecurityNumber":"sample string 10","Title":"sample string 11","VatRegistrationNumber":"sample string 12"},"IsPasswordAutoGenerated":true}

application/xml, text/xml

Sample:
<CustomerCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LimitlessMobile.WebAPI.Controllers">
  <CustomerData>
    <BirthDay xmlns="">sample string 5</BirthDay>
    <CompanyName xmlns="">sample string 6</CompanyName>
    <CustomerType xmlns="">7</CustomerType>
    <Firstname xmlns="">sample string 8</Firstname>
    <InvoiceTypeId xmlns="">1</InvoiceTypeId>
    <Lastname xmlns="">sample string 9</Lastname>
    <LegalAddress xmlns="">
      <ApartmentNumber>sample string 1</ApartmentNumber>
      <Attention>sample string 2</Attention>
      <City>sample string 3</City>
      <Co>sample string 4</Co>
      <ContactEmail>sample string 5</ContactEmail>
      <ContactName>sample string 6</ContactName>
      <ContactPhoneNumber>sample string 7</ContactPhoneNumber>
      <Country>sample string 8</Country>
      <Email>sample string 9</Email>
      <FaxNumber>sample string 10</FaxNumber>
      <Floor>sample string 11</Floor>
      <HouseNumber>sample string 12</HouseNumber>
      <Letter>sample string 13</Letter>
      <PhoneNumber>sample string 14</PhoneNumber>
      <PlaceName>sample string 15</PlaceName>
      <PostBox>sample string 16</PostBox>
      <Side>sample string 17</Side>
      <Street>sample string 18</Street>
      <ZipCode>sample string 19</ZipCode>
    </LegalAddress>
    <Sex xmlns="">1</Sex>
    <SocialSecurityNumber xmlns="">sample string 10</SocialSecurityNumber>
    <Title xmlns="">sample string 11</Title>
    <VatRegistrationNumber xmlns="">sample string 12</VatRegistrationNumber>
    <ExternalAdditionalInfo xmlns="">sample string 1</ExternalAdditionalInfo>
    <ExternalCustomerId xmlns="">sample string 2</ExternalCustomerId>
    <WebPassword xmlns="">sample string 3</WebPassword>
    <WholeSalePartnerId xmlns="">4</WholeSalePartnerId>
    <WholeSaleSalesRepresentativeId xmlns="">1</WholeSaleSalesRepresentativeId>
  </CustomerData>
  <IsPasswordAutoGenerated>true</IsPasswordAutoGenerated>
</CustomerCreateRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The created customer.

CustomerQuery
NameDescriptionTypeAdditional information
Enddate

date

None.

ExternalAdditionalInfo

string

None.

ExternalCustomerId

string

None.

Id

integer

None.

InvoiceTypeName

string

None.

MainCustomerId

integer

None.

Startdate

date

None.

WholeSalePartnerId

integer

None.

BirthDay

string

None.

CompanyName

string

None.

CustomerType

integer

None.

Firstname

string

None.

InvoiceTypeId

integer

None.

Lastname

string

None.

LegalAddress

Address

None.

Sex

integer

None.

SocialSecurityNumber

string

None.

Title

string

None.

VatRegistrationNumber

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Enddate": "2025-04-28T01:17:46.1307887+02:00",
  "ExternalAdditionalInfo": "sample string 1",
  "ExternalCustomerId": "sample string 2",
  "Id": 3,
  "InvoiceTypeName": "sample string 4",
  "MainCustomerId": 5,
  "Startdate": "2025-04-28T01:17:46.1307887+02:00",
  "WholeSalePartnerId": 1,
  "BirthDay": "sample string 7",
  "CompanyName": "sample string 8",
  "CustomerType": 9,
  "Firstname": "sample string 10",
  "InvoiceTypeId": 1,
  "Lastname": "sample string 11",
  "LegalAddress": {
    "ApartmentNumber": "sample string 1",
    "Attention": "sample string 2",
    "City": "sample string 3",
    "Co": "sample string 4",
    "ContactEmail": "sample string 5",
    "ContactName": "sample string 6",
    "ContactPhoneNumber": "sample string 7",
    "Country": "sample string 8",
    "Email": "sample string 9",
    "FaxNumber": "sample string 10",
    "Floor": "sample string 11",
    "HouseNumber": "sample string 12",
    "Letter": "sample string 13",
    "PhoneNumber": "sample string 14",
    "PlaceName": "sample string 15",
    "PostBox": "sample string 16",
    "Side": "sample string 17",
    "Street": "sample string 18",
    "ZipCode": "sample string 19"
  },
  "Sex": 1,
  "SocialSecurityNumber": "sample string 12",
  "Title": "sample string 13",
  "VatRegistrationNumber": "sample string 14"
}

text/html

Sample:
{"Enddate":"2025-04-28T01:17:46.1307887+02:00","ExternalAdditionalInfo":"sample string 1","ExternalCustomerId":"sample string 2","Id":3,"InvoiceTypeName":"sample string 4","MainCustomerId":5,"Startdate":"2025-04-28T01:17:46.1307887+02:00","WholeSalePartnerId":1,"BirthDay":"sample string 7","CompanyName":"sample string 8","CustomerType":9,"Firstname":"sample string 10","InvoiceTypeId":1,"Lastname":"sample string 11","LegalAddress":{"ApartmentNumber":"sample string 1","Attention":"sample string 2","City":"sample string 3","Co":"sample string 4","ContactEmail":"sample string 5","ContactName":"sample string 6","ContactPhoneNumber":"sample string 7","Country":"sample string 8","Email":"sample string 9","FaxNumber":"sample string 10","Floor":"sample string 11","HouseNumber":"sample string 12","Letter":"sample string 13","PhoneNumber":"sample string 14","PlaceName":"sample string 15","PostBox":"sample string 16","Side":"sample string 17","Street":"sample string 18","ZipCode":"sample string 19"},"Sex":1,"SocialSecurityNumber":"sample string 12","Title":"sample string 13","VatRegistrationNumber":"sample string 14"}

application/xml, text/xml

Sample:
<CustomerQuery xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <BirthDay>sample string 7</BirthDay>
  <CompanyName>sample string 8</CompanyName>
  <CustomerType>9</CustomerType>
  <Firstname>sample string 10</Firstname>
  <InvoiceTypeId>1</InvoiceTypeId>
  <Lastname>sample string 11</Lastname>
  <LegalAddress>
    <ApartmentNumber>sample string 1</ApartmentNumber>
    <Attention>sample string 2</Attention>
    <City>sample string 3</City>
    <Co>sample string 4</Co>
    <ContactEmail>sample string 5</ContactEmail>
    <ContactName>sample string 6</ContactName>
    <ContactPhoneNumber>sample string 7</ContactPhoneNumber>
    <Country>sample string 8</Country>
    <Email>sample string 9</Email>
    <FaxNumber>sample string 10</FaxNumber>
    <Floor>sample string 11</Floor>
    <HouseNumber>sample string 12</HouseNumber>
    <Letter>sample string 13</Letter>
    <PhoneNumber>sample string 14</PhoneNumber>
    <PlaceName>sample string 15</PlaceName>
    <PostBox>sample string 16</PostBox>
    <Side>sample string 17</Side>
    <Street>sample string 18</Street>
    <ZipCode>sample string 19</ZipCode>
  </LegalAddress>
  <Sex>1</Sex>
  <SocialSecurityNumber>sample string 12</SocialSecurityNumber>
  <Title>sample string 13</Title>
  <VatRegistrationNumber>sample string 14</VatRegistrationNumber>
  <Enddate>2025-04-28T01:17:46.1307887+02:00</Enddate>
  <ExternalAdditionalInfo>sample string 1</ExternalAdditionalInfo>
  <ExternalCustomerId>sample string 2</ExternalCustomerId>
  <Id>3</Id>
  <InvoiceTypeName>sample string 4</InvoiceTypeName>
  <MainCustomerId>5</MainCustomerId>
  <Startdate>2025-04-28T01:17:46.1307887+02:00</Startdate>
  <WholeSalePartnerId>1</WholeSalePartnerId>
</CustomerQuery>