POST api/Acounting/Customer/PostCustomer

Request Information

URI Parameters

None.

Body Parameters

m_AddCustomerAccounting
NameDescriptionTypeAdditional information
Name

string

Required

TaxId

string

Required

Country_Code

string

Required

String length: inclusive between 0 and 2

Country

string

Required

Province

string

Required

District

string

Required

Sub_District

string

Required

Address

string

Required

Zip

string

Required

Contact_Name

string

None.

tels

Collection of m_AddCustomerAccounting_Phone

None.

fax

Collection of m_AddCustomerAccounting_fax

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "TaxId": "sample string 2",
  "Country_Code": "sample string 3",
  "Country": "sample string 4",
  "Province": "sample string 5",
  "District": "sample string 6",
  "Sub_District": "sample string 7",
  "Address": "sample string 8",
  "Zip": "sample string 9",
  "Contact_Name": "sample string 10",
  "tels": [
    {
      "country_code": "sample string 1",
      "phone_number": "sample string 2"
    },
    {
      "country_code": "sample string 1",
      "phone_number": "sample string 2"
    }
  ],
  "fax": [
    {
      "country_code": "sample string 1",
      "fax": "sample string 2"
    },
    {
      "country_code": "sample string 1",
      "fax": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<m_AddCustomerAccounting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Accounting">
  <Address>sample string 8</Address>
  <Contact_Name>sample string 10</Contact_Name>
  <Country>sample string 4</Country>
  <Country_Code>sample string 3</Country_Code>
  <District>sample string 6</District>
  <Name>sample string 1</Name>
  <Province>sample string 5</Province>
  <Sub_District>sample string 7</Sub_District>
  <TaxId>sample string 2</TaxId>
  <Zip>sample string 9</Zip>
  <fax>
    <m_AddCustomerAccounting_fax>
      <country_code>sample string 1</country_code>
      <fax>sample string 2</fax>
    </m_AddCustomerAccounting_fax>
    <m_AddCustomerAccounting_fax>
      <country_code>sample string 1</country_code>
      <fax>sample string 2</fax>
    </m_AddCustomerAccounting_fax>
  </fax>
  <tels>
    <m_AddCustomerAccounting_Phone>
      <country_code>sample string 1</country_code>
      <phone_number>sample string 2</phone_number>
    </m_AddCustomerAccounting_Phone>
    <m_AddCustomerAccounting_Phone>
      <country_code>sample string 1</country_code>
      <phone_number>sample string 2</phone_number>
    </m_AddCustomerAccounting_Phone>
  </tels>
</m_AddCustomerAccounting>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'm_AddCustomerAccounting'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.