POST api/Supplier/CreateOrUpdate
Request Information
URI Parameters
None.
Body Parameters
CreateSupplierRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Code | string |
None. |
|
| Name | string |
None. |
|
| Phone | string |
None. |
|
| TinhThanhCode | string |
None. |
|
| QuanHuyenCode | string |
None. |
|
| PhuongXaCode | string |
None. |
|
| Address | string |
None. |
|
| BranchId | integer |
None. |
|
| string |
None. |
||
| Company | string |
None. |
|
| MaSoThue | string |
None. |
|
| Note | string |
None. |
|
| IsActive | boolean |
None. |
|
| Debt | decimal number |
None. |
|
| PurchaseOrderId | globally unique identifier |
None. |
|
| PayAmount | decimal number |
None. |
|
| SupplierType | SupplierTypeEnum |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Phone": "sample string 4",
"TinhThanhCode": "sample string 5",
"QuanHuyenCode": "sample string 6",
"PhuongXaCode": "sample string 7",
"Address": "sample string 8",
"BranchId": 9,
"Email": "sample string 10",
"Company": "sample string 11",
"MaSoThue": "sample string 12",
"Note": "sample string 13",
"IsActive": true,
"Debt": 15.0,
"PurchaseOrderId": "ae2f754e-875e-4719-aca1-68bcb0c523f0",
"PayAmount": 1.0,
"SupplierType": 0
}
application/xml, text/xml
Sample:
<CreateSupplierRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Supplier"> <Address>sample string 8</Address> <BranchId>9</BranchId> <Code>sample string 2</Code> <Company>sample string 11</Company> <Debt>15</Debt> <Email>sample string 10</Email> <Id>1</Id> <IsActive>true</IsActive> <MaSoThue>sample string 12</MaSoThue> <Name>sample string 3</Name> <Note>sample string 13</Note> <PayAmount>1</PayAmount> <Phone>sample string 4</Phone> <PhuongXaCode>sample string 7</PhuongXaCode> <PurchaseOrderId>ae2f754e-875e-4719-aca1-68bcb0c523f0</PurchaseOrderId> <QuanHuyenCode>sample string 6</QuanHuyenCode> <SupplierType>NHA_CUNG_CAP</SupplierType> <TinhThanhCode>sample string 5</TinhThanhCode> </CreateSupplierRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>