POST api/Cargo/AddCustomerOrder
Request Information
URI Parameters
None.
Body Parameters
CustomerOrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderID | integer |
None. |
|
| OrderNo | integer |
None. |
|
| OrderDaftarID | integer |
None. |
|
| OrderNoSymbol | string |
None. |
|
| OrderDate | string |
None. |
|
| CustomerID | integer |
None. |
|
| CompanyID | integer |
None. |
|
| OrderTotalAmount | decimal number |
None. |
|
| OrderCurrencyID | integer |
None. |
|
| PayerID | integer |
None. |
|
| OrderStatusID | integer |
None. |
|
| ChequeNo | string |
None. |
|
| OrderDetails | string |
None. |
|
| OrderNotes | string |
None. |
|
| PayStatusID | integer |
None. |
|
| QNT | integer |
None. |
|
| UnitPrice | decimal number |
None. |
|
| CustomerVisitID | integer |
None. |
|
| With_Invoice | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrderID": 1,
"OrderNo": 2,
"OrderDaftarID": 3,
"OrderNoSymbol": "sample string 4",
"OrderDate": "sample string 5",
"CustomerID": 6,
"CompanyID": 7,
"OrderTotalAmount": 8.1,
"OrderCurrencyID": 9,
"PayerID": 10,
"OrderStatusID": 11,
"ChequeNo": "sample string 12",
"OrderDetails": "sample string 13",
"OrderNotes": "sample string 14",
"PayStatusID": 15,
"QNT": 16,
"UnitPrice": 17.1,
"CustomerVisitID": 18,
"With_Invoice": true
}
application/xml, text/xml
Sample:
<CustomerOrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models"> <ChequeNo>sample string 12</ChequeNo> <CompanyID>7</CompanyID> <CustomerID>6</CustomerID> <CustomerVisitID>18</CustomerVisitID> <OrderCurrencyID>9</OrderCurrencyID> <OrderDaftarID>3</OrderDaftarID> <OrderDate>sample string 5</OrderDate> <OrderDetails>sample string 13</OrderDetails> <OrderID>1</OrderID> <OrderNo>2</OrderNo> <OrderNoSymbol>sample string 4</OrderNoSymbol> <OrderNotes>sample string 14</OrderNotes> <OrderStatusID>11</OrderStatusID> <OrderTotalAmount>8.1</OrderTotalAmount> <PayStatusID>15</PayStatusID> <PayerID>10</PayerID> <QNT>16</QNT> <UnitPrice>17.1</UnitPrice> <With_Invoice>true</With_Invoice> </CustomerOrderModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | string |
None. |
|
| ErrorText | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": "sample string 1",
"ErrorText": "sample string 2",
"Data": {}
}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models"> <Data /> <ErrorText>sample string 2</ErrorText> <Success>sample string 1</Success> </ResultModel>