POST api/ShippingAddresses
Documentation for 'Post'.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| addressPost | Documentation for 'addressPost'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"shipToId": "sample string 1",
"customerId": "sample string 2",
"name": "sample string 3",
"address1": "sample string 4",
"address2": "sample string 5",
"city": "sample string 6",
"state": "sample string 7",
"country": "sample string 8",
"zip": "sample string 9",
"contact": "sample string 10",
"contactEmail": "sample string 11"
}
text/html
Sample:
{"shipToId":"sample string 1","customerId":"sample string 2","name":"sample string 3","address1":"sample string 4","address2":"sample string 5","city":"sample string 6","state":"sample string 7","country":"sample string 8","zip":"sample string 9","contact":"sample string 10","contactEmail":"sample string 11"}
application/xml, text/xml
Sample:
<AddressPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Amity.Api.Models"> <address1>sample string 4</address1> <address2>sample string 5</address2> <city>sample string 6</city> <contact>sample string 10</contact> <contactEmail>sample string 11</contactEmail> <country>sample string 8</country> <customerId>sample string 2</customerId> <name>sample string 3</name> <shipToId>sample string 1</shipToId> <state>sample string 7</state> <zip>sample string 9</zip> </AddressPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json, text/html
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>