POST api/MKTH/Customer/CreateCustomerMKTH
Request Information
URI Parameters
None.
Body Parameters
m_customer_address_MKTH| Name | Description | Type | Additional information |
|---|---|---|---|
| cust_type_id | integer |
Required |
|
| cust_type_name | string |
None. |
|
| name | string |
Required String length: inclusive between 0 and 1000 |
|
| tax_id | string |
String length: inclusive between 0 and 50 |
|
| contact_name | string |
None. |
|
| 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 |
String length: inclusive between 0 and 2 |
|
| zip | string |
Required String length: inclusive between 0 and 10 |
|
| tels | Collection of m_tel |
None. |
|
| faxes | Collection of m_fax |
None. |
|
| branch | integer |
None. |
|
| address_consignee | boolean |
None. |
|
| address_notify_party | boolean |
None. |
|
| address_tax | boolean |
None. |
|
| address_check | boolean |
None. |
|
| address_contact | boolean |
None. |
|
| address_consignee_mkth | md_customer_address_mkth |
None. |
|
| address_tax_mkth | md_customer_address_mkth |
None. |
|
| address_notify_party_mkth | md_customer_address_mkth |
None. |
Request Formats
application/json, text/json
Sample:
{
"cust_type_id": 1,
"cust_type_name": "sample string 2",
"name": "sample string 3",
"tax_id": "sample string 4",
"contact_name": "sample string 5",
"address": "sample string 6",
"district": "sample string 7",
"sub_district": "sample string 8",
"province": "sample string 9",
"country": "sample string 10",
"iso_code": "sample string 11",
"zip": "sample string 12",
"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"
}
],
"faxes": [
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"fax": "sample string 3"
},
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"fax": "sample string 3"
}
],
"branch": 1,
"address_consignee": true,
"address_notify_party": true,
"address_tax": true,
"address_check": true,
"address_contact": true,
"address_consignee_mkth": {
"cust_type_id": 1,
"cust_type_name": "sample string 2",
"name": "sample string 3",
"tax_id": "sample string 4",
"contact_name": "sample string 5",
"address": "sample string 6",
"district": "sample string 7",
"sub_district": "sample string 8",
"province": "sample string 9",
"country": "sample string 10",
"iso_code": "sample string 11",
"zip": "sample string 12",
"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"
}
],
"faxes": [
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"fax": "sample string 3"
},
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"fax": "sample string 3"
}
],
"branch": 1
},
"address_tax_mkth": {
"cust_type_id": 1,
"cust_type_name": "sample string 2",
"name": "sample string 3",
"tax_id": "sample string 4",
"contact_name": "sample string 5",
"address": "sample string 6",
"district": "sample string 7",
"sub_district": "sample string 8",
"province": "sample string 9",
"country": "sample string 10",
"iso_code": "sample string 11",
"zip": "sample string 12",
"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"
}
],
"faxes": [
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"fax": "sample string 3"
},
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"fax": "sample string 3"
}
],
"branch": 1
},
"address_notify_party_mkth": {
"cust_type_id": 1,
"cust_type_name": "sample string 2",
"name": "sample string 3",
"tax_id": "sample string 4",
"contact_name": "sample string 5",
"address": "sample string 6",
"district": "sample string 7",
"sub_district": "sample string 8",
"province": "sample string 9",
"country": "sample string 10",
"iso_code": "sample string 11",
"zip": "sample string 12",
"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"
}
],
"faxes": [
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"fax": "sample string 3"
},
{
"iso_code": "sample string 1",
"country_code": "sample string 2",
"fax": "sample string 3"
}
],
"branch": 1
}
}
application/xml, text/xml
Sample:
<m_customer_address_MKTH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.MKTH">
<address>sample string 6</address>
<address_check>true</address_check>
<address_consignee>true</address_consignee>
<address_consignee_mkth>
<address>sample string 6</address>
<branch>1</branch>
<contact_name>sample string 5</contact_name>
<country>sample string 10</country>
<cust_type_id>1</cust_type_id>
<cust_type_name>sample string 2</cust_type_name>
<district>sample string 7</district>
<faxes>
<m_fax>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax>
<m_fax>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax>
</faxes>
<iso_code>sample string 11</iso_code>
<name>sample string 3</name>
<province>sample string 9</province>
<sub_district>sample string 8</sub_district>
<tax_id>sample string 4</tax_id>
<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>
<zip>sample string 12</zip>
</address_consignee_mkth>
<address_contact>true</address_contact>
<address_notify_party>true</address_notify_party>
<address_notify_party_mkth>
<address>sample string 6</address>
<branch>1</branch>
<contact_name>sample string 5</contact_name>
<country>sample string 10</country>
<cust_type_id>1</cust_type_id>
<cust_type_name>sample string 2</cust_type_name>
<district>sample string 7</district>
<faxes>
<m_fax>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax>
<m_fax>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax>
</faxes>
<iso_code>sample string 11</iso_code>
<name>sample string 3</name>
<province>sample string 9</province>
<sub_district>sample string 8</sub_district>
<tax_id>sample string 4</tax_id>
<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>
<zip>sample string 12</zip>
</address_notify_party_mkth>
<address_tax>true</address_tax>
<address_tax_mkth>
<address>sample string 6</address>
<branch>1</branch>
<contact_name>sample string 5</contact_name>
<country>sample string 10</country>
<cust_type_id>1</cust_type_id>
<cust_type_name>sample string 2</cust_type_name>
<district>sample string 7</district>
<faxes>
<m_fax>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax>
<m_fax>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax>
</faxes>
<iso_code>sample string 11</iso_code>
<name>sample string 3</name>
<province>sample string 9</province>
<sub_district>sample string 8</sub_district>
<tax_id>sample string 4</tax_id>
<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>
<zip>sample string 12</zip>
</address_tax_mkth>
<branch>1</branch>
<contact_name>sample string 5</contact_name>
<country>sample string 10</country>
<cust_type_id>1</cust_type_id>
<cust_type_name>sample string 2</cust_type_name>
<district>sample string 7</district>
<faxes>
<m_fax>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax>
<m_fax>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax>
</faxes>
<iso_code>sample string 11</iso_code>
<name>sample string 3</name>
<province>sample string 9</province>
<sub_district>sample string 8</sub_district>
<tax_id>sample string 4</tax_id>
<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>
<zip>sample string 12</zip>
</m_customer_address_MKTH>
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.