POST api/customers/deliveryaddress

Add customer delivery address.

Request Information

URI Parameters

None.

Body Parameters

CustomerDeliveryAddressPostRequest
NameDescriptionTypeAdditional information
CustomerNumber

integer

None.

Name

string

Required

Max length: 50

Address1

string

Max length: 50

Address2

string

Max length: 50

Address3

string

Max length: 50

PostalCode

string

Max length: 50

Town

string

Max length: 50

CountryId

string

Max length: 2

Phone1

string

Max length: 50

Phone2

string

Max length: 50

IsDefaultAddress

boolean

Required

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerNumber": 1,
  "Name": "sample string 2",
  "Address1": "sample string 3",
  "Address2": "sample string 4",
  "Address3": "sample string 5",
  "PostalCode": "sample string 6",
  "Town": "sample string 7",
  "CountryId": "sample string 8",
  "Phone1": "sample string 9",
  "Phone2": "sample string 10",
  "IsDefaultAddress": true
}

application/xml, text/xml

Sample:
<CustomerDeliveryAddressPostRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
  <Address1>sample string 3</Address1>
  <Address2>sample string 4</Address2>
  <Address3>sample string 5</Address3>
  <CountryId>sample string 8</CountryId>
  <IsDefaultAddress>true</IsDefaultAddress>
  <Name>sample string 2</Name>
  <Phone1>sample string 9</Phone1>
  <Phone2>sample string 10</Phone2>
  <PostalCode>sample string 6</PostalCode>
  <Town>sample string 7</Town>
  <CustomerNumber>1</CustomerNumber>
</CustomerDeliveryAddressPostRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CustomerDeliveryAddressPostResponse
NameDescriptionTypeAdditional information
Errors

Collection of PostCustomerDeliveryAddressError

None.

Success

boolean

None.

Id

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    },
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    }
  ],
  "Success": true,
  "Id": "df6ab5bd-4536-422c-8e2f-71970b525f34"
}

application/xml, text/xml

Sample:
<CustomerDeliveryAddressPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
  <Errors>
    <PostCustomerDeliveryAddressError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PostCustomerDeliveryAddressError>
    <PostCustomerDeliveryAddressError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PostCustomerDeliveryAddressError>
  </Errors>
  <Id>df6ab5bd-4536-422c-8e2f-71970b525f34</Id>
  <Success>true</Success>
</CustomerDeliveryAddressPostResponse>