POST api/customers/create
Create a new customer with a new random cardnumber
Request Information
URI Parameters
None.
Body Parameters
createcustomerarguments| Name | Description | Type | Additional information |
|---|---|---|---|
| cardnumber |
The cardnumer to be created for the person, leave empty or null to let the system generate a random cardnumber |
string |
None. |
| initials |
The Initials of the person |
string |
None. |
| firstname |
The first name of the person |
string |
None. |
| middlename |
The middle name of the person |
string |
None. |
| name |
The last name of the person |
string |
None. |
| street |
The street name of the customer |
string |
None. |
| housenumber |
The house number of the customer |
string |
None. |
| postalcode |
The postal code of the customer |
string |
None. |
| city |
The city of the customer |
string |
None. |
| birthdate |
The birthdate of the person, can be null |
date |
None. |
|
The email address of the person |
string |
None. |
|
| marketing |
The person has given permision to use the email addres for marketing activities |
boolean |
None. |
| mobilephone |
The mobile phonenumber |
string |
None. |
| licenceplate |
The licenceplate |
string |
None. |
| password |
The password for the customer to login, leave empty if not used |
string |
None. |
Request Formats
application/json, text/json
{
"cardnumber": "sample string 1",
"initials": "sample string 2",
"firstname": "sample string 3",
"middlename": "sample string 4",
"name": "sample string 5",
"street": "sample string 6",
"housenumber": "sample string 7",
"postalcode": "sample string 8",
"city": "sample string 9",
"birthdate": "2026-03-13",
"email": "sample string 10",
"marketing": true,
"mobilephone": "sample string 12",
"licenceplate": "sample string 13",
"password": "sample string 14"
}
application/xml, text/xml
<createcustomerarguments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API"> <birthdate>2026-03-13T05:20:45.8024534+01:00</birthdate> <cardnumber>sample string 1</cardnumber> <city>sample string 9</city> <email>sample string 10</email> <firstname>sample string 3</firstname> <housenumber>sample string 7</housenumber> <initials>sample string 2</initials> <licenceplate>sample string 13</licenceplate> <marketing>true</marketing> <middlename>sample string 4</middlename> <mobilephone>sample string 12</mobilephone> <name>sample string 5</name> <password>sample string 14</password> <postalcode>sample string 8</postalcode> <street>sample string 6</street> </createcustomerarguments>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
createcustomerresult| Name | Description | Type | Additional information |
|---|---|---|---|
| success |
Indicates if the action was successfull |
boolean |
None. |
| remark |
A description regarding the result |
string |
None. |
| customer |
Returns the created customer object |
customer |
None. |
Response Formats
application/json, text/json
{
"success": true,
"remark": "sample string 2",
"customer": {
"externalid": 1,
"externalpersonid": 2,
"locationid": 3,
"location": "sample string 4",
"customernumber": 5,
"cardnumber": "sample string 6",
"initials": "sample string 7",
"firstname": "sample string 8",
"middlename": "sample string 9",
"name": "sample string 10",
"street": "sample string 11",
"housenumber": "sample string 12",
"postalcode": "sample string 13",
"city": "sample string 14",
"birthdate": "2026-03-13",
"email": "sample string 15",
"marketing": true,
"licenceplate": "sample string 17",
"datemodified": "2026-03-13T05:20:45.8180834+01:00",
"group": "sample string 19",
"rategroup": "sample string 20",
"lastvisit": "2026-03-13T05:20:45.8180834+01:00",
"lastvisitlocationid": 1,
"lastvisitlocation": "sample string 22",
"loyaltypoints": 23.0,
"balance": 24.0,
"subscription": true,
"mobilephone": "sample string 26",
"companyname": "sample string 27",
"datetriggered": "2026-03-13T05:20:45.8180834+01:00"
}
}
application/xml, text/xml
<createcustomerresult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API">
<customer>
<balance>24</balance>
<birthdate>2026-03-13T05:20:45.8180834+01:00</birthdate>
<cardnumber>sample string 6</cardnumber>
<city>sample string 14</city>
<companyname>sample string 27</companyname>
<customernumber>5</customernumber>
<datemodified>2026-03-13T05:20:45.8180834+01:00</datemodified>
<datetriggered>2026-03-13T05:20:45.8180834+01:00</datetriggered>
<email>sample string 15</email>
<externalid>1</externalid>
<externalpersonid>2</externalpersonid>
<firstname>sample string 8</firstname>
<group>sample string 19</group>
<housenumber>sample string 12</housenumber>
<initials>sample string 7</initials>
<lastvisit>2026-03-13T05:20:45.8180834+01:00</lastvisit>
<lastvisitlocation>sample string 22</lastvisitlocation>
<lastvisitlocationid>1</lastvisitlocationid>
<licenceplate>sample string 17</licenceplate>
<location>sample string 4</location>
<locationid>3</locationid>
<loyaltypoints>23</loyaltypoints>
<marketing>true</marketing>
<middlename>sample string 9</middlename>
<mobilephone>sample string 26</mobilephone>
<name>sample string 10</name>
<postalcode>sample string 13</postalcode>
<rategroup>sample string 20</rategroup>
<street>sample string 11</street>
<subscription>true</subscription>
</customer>
<remark>sample string 2</remark>
<success>true</success>
</createcustomerresult>