POST Customers/AddContact

Create a new Customer Contact.

Request Information

URI Parameters

None.

Body Parameters

AddCustomerContactBinding
NameDescriptionTypeAdditional information
CustomerID

string

Required

String length: inclusive between 0 and 128

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.

Email

string

None.

WebURL

string

None.

Phone

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",
  "Alias": "sample string 2",
  "Name": "sample string 3",
  "Surnames": "sample string 4",
  "VatIdentifier": "sample string 5",
  "Email": "sample string 6",
  "WebURL": "sample string 7",
  "Phone": "sample string 8",
  "Addressee": "sample string 9",
  "Street": "sample string 10",
  "PostalCode": "sample string 11",
  "PlaceID": 12,
  "CountryID": 13,
  "Lang": "sample string 14",
  "StoreID": 15
}

application/xml, text/xml

Sample:
<AddCustomerContactBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Customer">
  <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">sample string 14</Lang>
  <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">15</StoreID>
  <Addressee xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">sample string 9</Addressee>
  <CountryID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">13</CountryID>
  <PlaceID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">12</PlaceID>
  <PostalCode xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">sample string 11</PostalCode>
  <Street xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">sample string 10</Street>
  <Email xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Base">sample string 6</Email>
  <Phone xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Base">sample string 8</Phone>
  <WebURL xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Base">sample string 7</WebURL>
  <Alias xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Base">sample string 2</Alias>
  <Name xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Base">sample string 3</Name>
  <Surnames xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Base">sample string 4</Surnames>
  <VatIdentifier xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Base">sample string 5</VatIdentifier>
  <CustomerID>sample string 1</CustomerID>
</AddCustomerContactBinding>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>