PUT api/purchase/addresses/{address_id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| address_id | integer |
Required |
Body Parameters
m_delivery_location_update| Name | Description | Type | Additional information |
|---|---|---|---|
| company | string |
Required |
|
| address | string |
Required |
|
| district | string |
Required |
|
| sub_district | string |
Required |
|
| province | string |
Required |
|
| country | string |
Required |
|
| iso_code | string |
Required |
|
| zip | string |
Required Matching regular expression pattern: ^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$ |
|
| tels | Collection of m_purchase_tel_delivery |
Required |
|
| faxes | Collection of m_purchase_faxed_delivery |
None. |
Request Formats
application/json, text/json
Sample:
{
"company": "sample string 1",
"address": "sample string 2",
"district": "sample string 3",
"sub_district": "sample string 4",
"province": "sample string 5",
"country": "sample string 6",
"iso_code": "sample string 7",
"zip": "sample string 8",
"tels": [
{
"country_code": "sample string 1",
"phone_number": "sample string 2"
},
{
"country_code": "sample string 1",
"phone_number": "sample string 2"
}
],
"faxes": [
{
"country_code": "sample string 1",
"fax": "sample string 2"
},
{
"country_code": "sample string 1",
"fax": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<m_delivery_location_update xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Purchase">
<address>sample string 2</address>
<company>sample string 1</company>
<country>sample string 6</country>
<district>sample string 3</district>
<faxes>
<m_purchase_faxed_delivery>
<country_code>sample string 1</country_code>
<fax>sample string 2</fax>
</m_purchase_faxed_delivery>
<m_purchase_faxed_delivery>
<country_code>sample string 1</country_code>
<fax>sample string 2</fax>
</m_purchase_faxed_delivery>
</faxes>
<iso_code>sample string 7</iso_code>
<province>sample string 5</province>
<sub_district>sample string 4</sub_district>
<tels>
<m_purchase_tel_delivery>
<country_code>sample string 1</country_code>
<phone_number>sample string 2</phone_number>
</m_purchase_tel_delivery>
<m_purchase_tel_delivery>
<country_code>sample string 1</country_code>
<phone_number>sample string 2</phone_number>
</m_purchase_tel_delivery>
</tels>
<zip>sample string 8</zip>
</m_delivery_location_update>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.