POST Customers/AddCustomerContact
Registers a Customer.
Request Information
URI Parameters
None.
Body Parameters
AddCustomerContactBinding| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerID | string |
Required String length: inclusive between 0 and 128 |
|
| IsIntraCommunitaryOperator | boolean |
None. |
|
| string |
Required String length: inclusive between 0 and 200 |
||
| Phone | string |
Required String length: inclusive between 0 and 20 |
|
| Alias | string |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 100 |
|
| Surnames | string |
Required String length: inclusive between 0 and 100 |
|
| VatIdentifier | string |
None. |
|
| WebURL | string |
None. |
|
| Addressee |
Addressee can be anything this address refers to: Name of a building, of a person, ... |
string |
None. |
| Street | string |
Required |
|
| PostalCode | string |
Required |
|
| PlaceID | integer |
None. |
|
| CountryID | integer |
None. |
|
| Lang | string |
None. |
|
| StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerID": "sample string 1",
"IsIntraCommunitaryOperator": true,
"Email": "sample string 3",
"Phone": "sample string 4",
"Alias": "sample string 5",
"Name": "sample string 6",
"Surnames": "sample string 7",
"VatIdentifier": "sample string 8",
"WebURL": "sample string 9",
"Addressee": "sample string 10",
"Street": "sample string 11",
"PostalCode": "sample string 12",
"PlaceID": 13,
"CountryID": 14,
"Lang": "sample string 15",
"StoreID": 16
}
application/xml, text/xml
Sample:
<AddCustomerContactBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Customer"> <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">sample string 15</Lang> <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">16</StoreID> <Addressee xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Location">sample string 10</Addressee> <CountryID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Location">14</CountryID> <PlaceID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Location">13</PlaceID> <PostalCode xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Location">sample string 12</PostalCode> <Street xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Location">sample string 11</Street> <Email xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Base">sample string 3</Email> <Phone xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Base">sample string 4</Phone> <WebURL xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Base">sample string 9</WebURL> <Alias xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Base">sample string 5</Alias> <Name xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Base">sample string 6</Name> <Surnames xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Base">sample string 7</Surnames> <VatIdentifier xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Base">sample string 8</VatIdentifier> <CustomerID>sample string 1</CustomerID> <IsIntraCommunitaryOperator>true</IsIntraCommunitaryOperator> </AddCustomerContactBinding>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>