POST api/Order/SaleOrder
Request Information
URI Parameters
None.
Body Parameters
SaleTransactionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SaleOrder | SaleOrder |
None. |
|
| SaleDetails | Collection of SaleDetail |
None. |
|
| SaleRefillExchange | Collection of SaleRefillExchange |
None. |
|
| SalePayment | Collection of SalePayment |
None. |
Request Formats
application/json, text/json
Sample:
{
"SaleOrder": {
"SQLLiteID": 1,
"TripID": "sample string 2",
"ProfitCenter": "sample string 3",
"UserID": "sample string 4",
"SaleID": "sample string 5",
"CustomerID": 6,
"Latitude": 7,
"Longitude": 8,
"TransAmount": 9,
"TransTime": "sample string 10"
},
"SaleDetails": [
{
"SQLLiteID": 1,
"ID": 2,
"SaleID": "sample string 3",
"MaterialCode": "sample string 4",
"Quantity": 5,
"SKUTransAmount": 6
},
{
"SQLLiteID": 1,
"ID": 2,
"SaleID": "sample string 3",
"MaterialCode": "sample string 4",
"Quantity": 5,
"SKUTransAmount": 6
}
],
"SaleRefillExchange": [
{
"ID": "sample string 1",
"SQLLiteID": 2,
"SaleID": "sample string 3",
"MaterialCode": "sample string 4",
"Quantity": 5
},
{
"ID": "sample string 1",
"SQLLiteID": 2,
"SaleID": "sample string 3",
"MaterialCode": "sample string 4",
"Quantity": 5
}
],
"SalePayment": [
{
"SQLLiteID": 1,
"ID": 2,
"SaleID": "sample string 3",
"PaymentMethod": "sample string 4",
"PhoneNumber": "sample string 5",
"TransID": "sample string 6",
"TransAmount": 7
},
{
"SQLLiteID": 1,
"ID": 2,
"SaleID": "sample string 3",
"PaymentMethod": "sample string 4",
"PhoneNumber": "sample string 5",
"TransID": "sample string 6",
"TransAmount": 7
}
]
}
application/xml, text/xml
Sample:
<SaleTransactionSql.SaleTransactionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProtoAPI.SQLHelpers">
<SaleDetails>
<SaleTransactionSql.SaleDetail>
<ID>2</ID>
<MaterialCode>sample string 4</MaterialCode>
<Quantity>5</Quantity>
<SKUTransAmount>6</SKUTransAmount>
<SQLLiteID>1</SQLLiteID>
<SaleID>sample string 3</SaleID>
</SaleTransactionSql.SaleDetail>
<SaleTransactionSql.SaleDetail>
<ID>2</ID>
<MaterialCode>sample string 4</MaterialCode>
<Quantity>5</Quantity>
<SKUTransAmount>6</SKUTransAmount>
<SQLLiteID>1</SQLLiteID>
<SaleID>sample string 3</SaleID>
</SaleTransactionSql.SaleDetail>
</SaleDetails>
<SaleOrder>
<CustomerID>6</CustomerID>
<Latitude>7</Latitude>
<Longitude>8</Longitude>
<ProfitCenter>sample string 3</ProfitCenter>
<SQLLiteID>1</SQLLiteID>
<SaleID>sample string 5</SaleID>
<TransAmount>9</TransAmount>
<TransTime>sample string 10</TransTime>
<TripID>sample string 2</TripID>
<UserID>sample string 4</UserID>
</SaleOrder>
<SalePayment>
<SaleTransactionSql.SalePayment>
<ID>2</ID>
<PaymentMethod>sample string 4</PaymentMethod>
<PhoneNumber>sample string 5</PhoneNumber>
<SQLLiteID>1</SQLLiteID>
<SaleID>sample string 3</SaleID>
<TransAmount>7</TransAmount>
<TransID>sample string 6</TransID>
</SaleTransactionSql.SalePayment>
<SaleTransactionSql.SalePayment>
<ID>2</ID>
<PaymentMethod>sample string 4</PaymentMethod>
<PhoneNumber>sample string 5</PhoneNumber>
<SQLLiteID>1</SQLLiteID>
<SaleID>sample string 3</SaleID>
<TransAmount>7</TransAmount>
<TransID>sample string 6</TransID>
</SaleTransactionSql.SalePayment>
</SalePayment>
<SaleRefillExchange>
<SaleTransactionSql.SaleRefillExchange>
<ID>sample string 1</ID>
<MaterialCode>sample string 4</MaterialCode>
<Quantity>5</Quantity>
<SQLLiteID>2</SQLLiteID>
<SaleID>sample string 3</SaleID>
</SaleTransactionSql.SaleRefillExchange>
<SaleTransactionSql.SaleRefillExchange>
<ID>sample string 1</ID>
<MaterialCode>sample string 4</MaterialCode>
<Quantity>5</Quantity>
<SQLLiteID>2</SQLLiteID>
<SaleID>sample string 3</SaleID>
</SaleTransactionSql.SaleRefillExchange>
</SaleRefillExchange>
</SaleTransactionSql.SaleTransactionModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.