POST v1/Addresses
Documentation for 'Post'.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
address | Documentation for 'address'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
Click to beautify!
{ "customerAddressPreferenceId": 1, "addressType": "sample string 2", "enforceFullAddress": true, "companyName": "sample string 3", "line1": "sample string 4", "line2": "sample string 5", "city": "sample string 6", "postalZip": "sample string 7", "country": "sample string 8", "state": "sample string 9", "countryId": 1, "stateId": 1 }
application/xml, text/xml
Sample:
Click to beautify!
<Address xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Dto.Post"> <City>sample string 6</City> <CompanyName>sample string 3</CompanyName> <Country>sample string 8</Country> <CountryId>1</CountryId> <Line1>sample string 4</Line1> <Line2>sample string 5</Line2> <PostalZip>sample string 7</PostalZip> <State>sample string 9</State> <StateId>1</StateId> <AddressType>sample string 2</AddressType> <CustomerAddressPreferenceId>1</CustomerAddressPreferenceId> <EnforceFullAddress>true</EnforceFullAddress> </Address>
application/x-www-form-urlencoded
Sample:
Click to beautify!
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
Click to beautify!
{ "customerAddressPreferenceId": 1, "companyName": "sample string 2", "line1": "sample string 3", "line2": "sample string 4", "countryId": 1, "country": "sample string 5", "stateId": 1, "state": "sample string 6", "city": "sample string 7", "postalZip": "sample string 8", "addressType": "sample string 9", "valid": true, "id": 11, "uri": "sample string 12" }
application/xml, text/xml
Sample:
Click to beautify!
<Address xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Dto.Get"> <Id>11</Id> <Uri>sample string 12</Uri> <AddressType>sample string 9</AddressType> <City>sample string 7</City> <CompanyName>sample string 2</CompanyName> <Country>sample string 5</Country> <CountryId>1</CountryId> <CustomerAddressPreferenceId>1</CustomerAddressPreferenceId> <Line1>sample string 3</Line1> <Line2>sample string 4</Line2> <PostalZip>sample string 8</PostalZip> <State>sample string 6</State> <StateId>1</StateId> <Valid>true</Valid> </Address>