PUT api/PerformaInvoice/UpdateCustomer/{cust_id}
Update Customer
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| cust_id | integer |
Required |
Body Parameters
m_Customer| Name | Description | Type | Additional information |
|---|---|---|---|
| tax_id | string |
Max length: 50 |
|
| customer_type | string |
Required |
|
| credit_amount | string |
None. |
|
| price | decimal number |
Required |
|
| price_type | string |
Required |
|
| company_name | string |
Required Max length: 1000 |
|
| address | string |
Required Max length: 1000 |
|
| city | string |
Required Max length: 500 |
|
| country | string |
Required Max length: 500 |
|
| country_code | string |
None. |
|
| postcode | string |
Max length: 10 |
|
| tels | Collection of m_tel2 |
None. |
|
| faxes | Collection of m_fax2 |
None. |
|
| string |
None. |
||
| credit | md_credit |
None. |
|
| filed | Collection of m_another_filed |
None. |
|
| discount | decimal number |
None. |
|
| headQuarter | integer |
None. |
|
| term_id | integer |
None. |
|
| term_name | string |
None. |
|
| term_of_payment | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"tax_id": "sample string 1",
"customer_type": "sample string 2",
"credit_amount": "sample string 3",
"price": 4.0,
"price_type": "sample string 5",
"company_name": "sample string 6",
"address": "sample string 7",
"city": "sample string 8",
"country": "sample string 9",
"country_code": "sample string 10",
"postcode": "sample string 11",
"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"
}
],
"email": "sample string 12",
"credit": {
"set_default": true,
"credit_amount_default": 1.0,
"credit_amount_time": 2.0,
"start_date": "2026-04-07T18:04:11.776385+07:00",
"to_date": "2026-04-07T18:04:11.776385+07:00"
},
"filed": [
{
"name": "sample string 1",
"value": "sample string 2"
},
{
"name": "sample string 1",
"value": "sample string 2"
}
],
"discount": 1.0,
"headQuarter": 1,
"term_id": 1,
"term_name": "sample string 13",
"term_of_payment": "sample string 14"
}
application/xml, text/xml
Sample:
<m_Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.ProductionLine.Planning_Department.Proforma_Invoce">
<address>sample string 7</address>
<city>sample string 8</city>
<company_name>sample string 6</company_name>
<country>sample string 9</country>
<country_code>sample string 10</country_code>
<credit>
<credit_amount_default>1</credit_amount_default>
<credit_amount_time>2</credit_amount_time>
<set_default>true</set_default>
<start_date>2026-04-07T18:04:11.776385+07:00</start_date>
<to_date>2026-04-07T18:04:11.776385+07:00</to_date>
</credit>
<credit_amount>sample string 3</credit_amount>
<customer_type>sample string 2</customer_type>
<discount>1</discount>
<email>sample string 12</email>
<faxes>
<m_fax2>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax2>
<m_fax2>
<country_code>sample string 2</country_code>
<fax>sample string 3</fax>
<iso_code>sample string 1</iso_code>
</m_fax2>
</faxes>
<filed>
<m_another_filed>
<name>sample string 1</name>
<value>sample string 2</value>
</m_another_filed>
<m_another_filed>
<name>sample string 1</name>
<value>sample string 2</value>
</m_another_filed>
</filed>
<headQuarter>1</headQuarter>
<postcode>sample string 11</postcode>
<price>4</price>
<price_type>sample string 5</price_type>
<tax_id>sample string 1</tax_id>
<tels>
<m_tel2>
<country_code>sample string 2</country_code>
<iso_code>sample string 1</iso_code>
<phone_number>sample string 3</phone_number>
</m_tel2>
<m_tel2>
<country_code>sample string 2</country_code>
<iso_code>sample string 1</iso_code>
<phone_number>sample string 3</phone_number>
</m_tel2>
</tels>
<term_id>1</term_id>
<term_name>sample string 13</term_name>
<term_of_payment>sample string 14</term_of_payment>
</m_Customer>
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.