PUT api/MKTH/Customer/SaveCustomerTransport/{cust_id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| cust_id | integer |
Required |
Body Parameters
m_customer_transport| Name | Description | Type | Additional information |
|---|---|---|---|
| mk_type_id | integer |
None. |
|
| mk_type_name | string |
None. |
|
| transport_name | string |
Required String length: inclusive between 0 and 1000 |
|
| address | string |
Required String length: inclusive between 0 and 1000 |
|
| district | string |
Required String length: inclusive between 0 and 500 |
|
| sub_district | string |
Required String length: inclusive between 0 and 500 |
|
| province | string |
Required String length: inclusive between 0 and 500 |
|
| country | string |
Required String length: inclusive between 0 and 500 |
|
| iso_code | string |
Required String length: inclusive between 0 and 2 |
|
| zip | string |
Required String length: inclusive between 0 and 10 |
|
| tels | Collection of m_tel |
None. |
Request Formats
application/json, text/json
Sample:
{
"mk_type_id": 1,
"mk_type_name": "sample string 1",
"transport_name": "sample string 2",
"address": "sample string 3",
"district": "sample string 4",
"sub_district": "sample string 5",
"province": "sample string 6",
"country": "sample string 7",
"iso_code": "sample string 8",
"zip": "sample string 9",
"tels": [
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"phone_number": "sample string 3"
},
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"phone_number": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<m_customer_transport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.MKTH">
<address>sample string 3</address>
<country>sample string 7</country>
<district>sample string 4</district>
<iso_code>sample string 8</iso_code>
<mk_type_id>1</mk_type_id>
<mk_type_name>sample string 1</mk_type_name>
<province>sample string 6</province>
<sub_district>sample string 5</sub_district>
<tels>
<m_tel>
<country_code>sample string 2</country_code>
<iso_code>sample string 1</iso_code>
<phone_number>sample string 3</phone_number>
</m_tel>
<m_tel>
<country_code>sample string 2</country_code>
<iso_code>sample string 1</iso_code>
<phone_number>sample string 3</phone_number>
</m_tel>
</tels>
<transport_name>sample string 2</transport_name>
<zip>sample string 9</zip>
</m_customer_transport>
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.