POST customer

Adds the specified customer.

Request Information

Parameters

NameDescriptionAdditional information
customer
The customer.
            1) AccountNumber: Mandatory. String, max 10 chars. Company's account number
            2) Forename: Mandatory. String, max 50 chars
            3) Surname: Mandatory. String, max 50 chars
            4) Email: Mandatory. String, max 100 chars. Needs to be unique for each customer the same customer cannot belong to more than one company.
            5) Password: Mandatory. String, max 50 chars. Special characters are also allowed. Password will be hash-encrypted

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "Forename": "sample string 2",
  "Surname": "sample string 3",
  "DateAdded": "2017-11-23T21:57:08.7511759+00:00",
  "Password": "sample string 5",
  "AccountNumber": "sample string 6"
}

application/xml, text/xml

Sample:
<CustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webi.Api2.Models">
  <AccountNumber>sample string 6</AccountNumber>
  <DateAdded>2017-11-23T21:57:08.7511759+00:00</DateAdded>
  <Email>sample string 1</Email>
  <Forename>sample string 2</Forename>
  <Password>sample string 5</Password>
  <Surname>sample string 3</Surname>
</CustomerModel>

application/x-www-form-urlencoded

Sample:

Sample not available.