POST api/ms/customers/addresses
Create Address
Request Information
URI Parameters
None.
Body Parameters
m_address| Name | Description | Type | Additional information |
|---|---|---|---|
| Legal_Status | string |
String length: inclusive between 0 and 3 |
|
| Branch_No | integer |
None. |
|
| Tax_Id | string |
String length: inclusive between 0 and 100 |
|
| ContactName | string |
Required String length: inclusive between 0 and 100 |
|
| AddressName | string |
String length: inclusive between 0 and 100 |
|
| Country | string |
Required String length: inclusive between 0 and 100 |
|
| Province | string |
Required String length: inclusive between 0 and 100 |
|
| District | string |
Required String length: inclusive between 0 and 100 |
|
| SubDistrict | string |
Required String length: inclusive between 0 and 50 |
|
| PostalCode | string |
Required String length: inclusive between 0 and 10 |
|
| CountryCode | string |
String length: inclusive between 0 and 10 |
|
| PhoneNumber | string |
String length: inclusive between 0 and 20 |
|
| FullPhoneNumber | string |
String length: inclusive between 0 and 30 |
Request Formats
application/json, text/json
Sample:
{
"Legal_Status": "sample string 1",
"Branch_No": 1,
"Tax_Id": "sample string 2",
"ContactName": "sample string 3",
"AddressName": "sample string 4",
"Country": "sample string 5",
"Province": "sample string 6",
"District": "sample string 7",
"SubDistrict": "sample string 8",
"PostalCode": "sample string 9",
"CountryCode": "sample string 10",
"PhoneNumber": "sample string 11",
"FullPhoneNumber": "sample string 12"
}
application/xml, text/xml
Sample:
<m_address xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Modules.Models.Mainsystem"> <AddressName>sample string 4</AddressName> <Branch_No>1</Branch_No> <ContactName>sample string 3</ContactName> <Country>sample string 5</Country> <CountryCode>sample string 10</CountryCode> <District>sample string 7</District> <FullPhoneNumber>sample string 12</FullPhoneNumber> <Legal_Status>sample string 1</Legal_Status> <PhoneNumber>sample string 11</PhoneNumber> <PostalCode>sample string 9</PostalCode> <Province>sample string 6</Province> <SubDistrict>sample string 8</SubDistrict> <Tax_Id>sample string 2</Tax_Id> </m_address>
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.