Add a delivery address
Adds a delivery address to the authenticated user's profile. The phone number, if present, is ignored.
URL: | https://api.trademe.co.nz/v1/mytrademe/DeliveryAddresses.{file_format} |
---|---|
HTTP Method: | POST |
Requires Authentication? | Yes |
Permission Required: | MyTradeMeWrite: Maintain your watchlist, answer questions and post comments. |
Supported Formats: | XML, JSON |
Rate Limited? | Yes |
URL parameters
file_format | Enumeration (required) | The format of the response. | ||||
---|---|---|---|---|---|---|
|
POST Data
<DeliveryAddress>
Name | String (required) | Name |
---|---|---|
Address1 | String (required) | Address1 |
Address2 | String (optional) | Address2 |
Suburb | String (optional) | Suburb |
City | String (required) | City |
Postcode | String (optional) | Postcode |
Country | String (optional) | Country |
PhoneNumber | String (optional) | PhoneNumber |
IsMembershipAddress | Boolean (optional) | IsMembershipAddress |
Id | Integer (optional) | Id |
Returns
<DeliveryAddressResponse>
Details on whether the operation was successful.
Success | Boolean | Success |
---|---|---|
Description | String or null | Description |
DeliveryAddressId | Integer | DeliveryAddressId |
Examples
<DeliveryAddress xmlns="http://api.trademe.co.nz/v1">
<Name>John Doe</Name>
<Address1>Parliament Buildings</Address1>
<Address2>Molesworth Street</Address2>
<Suburb>Wellington Central</Suburb>
<City>Wellington</City>
<Postcode>6160</Postcode>
<Country>New Zealand</Country>
</DeliveryAddress>