POST api/Customer?accountNoSerieFrom={accountNoSerieFrom}&accountNoSerieTo={accountNoSerieTo}

Endpoint to create a new Customer

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountNoSerieFrom

First customerNo in Account serie

integer

None.

accountNoSerieTo

Last customerNo in Account serie

integer

None.

Body Parameters

PostCustomerDto
NameDescriptionTypeAdditional information
CustomerNo

integer

Required

EmployeeNo

integer

None.

SellerNo

integer

None.

CompanyNo

string

None.

CustomerPriceGroup1

integer

None.

CustomerPriceGroup2

integer

None.

CustomerPriceGroup3

integer

None.

OrgUnit1No

integer

None.

Information1

string

None.

Information2

string

None.

Information3

string

None.

Information4

string

None.

Information5

string

None.

Information6

string

None.

Information7

string

None.

Information8

string

None.

Name

string

None.

MobilePhone

string

None.

EmailAddress

string

None.

Phone

string

None.

PostCode

string

None.

PostalArea

string

None.

CountryNo

integer

None.

AddressLine1

string

None.

AddressLine2

string

None.

ToDate

integer

None.

FromDate

integer

None.

Group1

integer

None.

Group2

integer

None.

Group3

integer

None.

Group4

integer

None.

Group5

integer

None.

Group6

integer

None.

Group7

integer

None.

Group8

integer

None.

Group9

integer

None.

Group10

integer

None.

Group11

integer

None.

Group12

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerNo": 1,
  "EmployeeNo": 2,
  "SellerNo": 3,
  "CompanyNo": "sample string 4",
  "CustomerPriceGroup1": 5,
  "CustomerPriceGroup2": 6,
  "CustomerPriceGroup3": 7,
  "OrgUnit1No": 8,
  "Information1": "sample string 9",
  "Information2": "sample string 10",
  "Information3": "sample string 11",
  "Information4": "sample string 12",
  "Information5": "sample string 13",
  "Information6": "sample string 14",
  "Information7": "sample string 15",
  "Information8": "sample string 16",
  "Name": "sample string 17",
  "MobilePhone": "sample string 18",
  "EmailAddress": "sample string 19",
  "Phone": "sample string 20",
  "PostCode": "sample string 21",
  "PostalArea": "sample string 22",
  "CountryNo": 23,
  "AddressLine1": "sample string 24",
  "AddressLine2": "sample string 25",
  "ToDate": 26,
  "FromDate": 27,
  "Group1": 28,
  "Group2": 29,
  "Group3": 30,
  "Group4": 31,
  "Group5": 32,
  "Group6": 33,
  "Group7": 34,
  "Group8": 35,
  "Group9": 36,
  "Group10": 37,
  "Group11": 38,
  "Group12": 39
}

application/xml, text/xml

Sample:
<PostCustomerDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Post">
  <AddressLine1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 24</AddressLine1>
  <AddressLine2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 25</AddressLine2>
  <CountryNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">23</CountryNo>
  <EmailAddress xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 19</EmailAddress>
  <FromDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">27</FromDate>
  <Group1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">28</Group1>
  <Group10 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">37</Group10>
  <Group11 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">38</Group11>
  <Group12 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">39</Group12>
  <Group2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">29</Group2>
  <Group3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">30</Group3>
  <Group4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">31</Group4>
  <Group5 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">32</Group5>
  <Group6 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">33</Group6>
  <Group7 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">34</Group7>
  <Group8 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">35</Group8>
  <Group9 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">36</Group9>
  <Information1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 9</Information1>
  <Information2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 10</Information2>
  <Information3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 11</Information3>
  <Information4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 12</Information4>
  <Information5 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 13</Information5>
  <Information6 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 14</Information6>
  <Information7 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 15</Information7>
  <Information8 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 16</Information8>
  <MobilePhone xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 18</MobilePhone>
  <Name xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 17</Name>
  <OrgUnit1No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">8</OrgUnit1No>
  <Phone xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 20</Phone>
  <PostCode xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 21</PostCode>
  <PostalArea xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 22</PostalArea>
  <ToDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">26</ToDate>
  <CompanyNo>sample string 4</CompanyNo>
  <CustomerNo>1</CustomerNo>
  <CustomerPriceGroup1>5</CustomerPriceGroup1>
  <CustomerPriceGroup2>6</CustomerPriceGroup2>
  <CustomerPriceGroup3>7</CustomerPriceGroup3>
  <EmployeeNo>2</EmployeeNo>
  <SellerNo>3</SellerNo>
</PostCustomerDto>

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 'PostCustomerDto'.

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.