POST api/purchaseorder/save/{option}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| option | integer |
Required |
Body Parameters
PurchaseOrderSaveDto| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderNo | integer |
None. |
|
| PODate | date |
None. |
|
| DelDate | date |
None. |
|
| PaymentTermDays | integer |
None. |
|
| VendorCode | integer |
None. |
|
| SubTotal | decimal number |
None. |
|
| Charges | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| RoundOff | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| Notes | string |
None. |
|
| Items | Collection of PurchaseOrderItemDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrderNo": 1,
"PODate": "2026-08-11T19:45:29.5900107-07:00",
"DelDate": "2026-08-11T19:45:29.5900107-07:00",
"PaymentTermDays": 1,
"VendorCode": 2,
"SubTotal": 3.0,
"Charges": 4.0,
"Discount": 5.0,
"RoundOff": 6.0,
"TotalAmount": 7.0,
"Notes": "sample string 8",
"Items": [
{
"ProductId": 1,
"Qty": 2,
"Price": 3.0,
"DiscountAmount": 4.0,
"TaxPercentage": 5.0,
"TaxAmount": 6.0,
"Amount": 7.0,
"BatchNo": "sample string 8",
"WareHouseId": 1,
"LocationId": "sample string 9",
"ExpiryDate": "2026-08-11T19:45:29.5900107-07:00",
"MRP": 1.0
},
{
"ProductId": 1,
"Qty": 2,
"Price": 3.0,
"DiscountAmount": 4.0,
"TaxPercentage": 5.0,
"TaxAmount": 6.0,
"Amount": 7.0,
"BatchNo": "sample string 8",
"WareHouseId": 1,
"LocationId": "sample string 9",
"ExpiryDate": "2026-08-11T19:45:29.5900107-07:00",
"MRP": 1.0
}
]
}
application/xml, text/xml
Sample:
<PurchaseOrderSaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webapp2.Controllers">
<Charges>4</Charges>
<DelDate>2026-08-11T19:45:29.5900107-07:00</DelDate>
<Discount>5</Discount>
<Items>
<PurchaseOrderItemDto>
<Amount>7</Amount>
<BatchNo>sample string 8</BatchNo>
<DiscountAmount>4</DiscountAmount>
<ExpiryDate>2026-08-11T19:45:29.5900107-07:00</ExpiryDate>
<LocationId>sample string 9</LocationId>
<MRP>1</MRP>
<Price>3</Price>
<ProductId>1</ProductId>
<Qty>2</Qty>
<TaxAmount>6</TaxAmount>
<TaxPercentage>5</TaxPercentage>
<WareHouseId>1</WareHouseId>
</PurchaseOrderItemDto>
<PurchaseOrderItemDto>
<Amount>7</Amount>
<BatchNo>sample string 8</BatchNo>
<DiscountAmount>4</DiscountAmount>
<ExpiryDate>2026-08-11T19:45:29.5900107-07:00</ExpiryDate>
<LocationId>sample string 9</LocationId>
<MRP>1</MRP>
<Price>3</Price>
<ProductId>1</ProductId>
<Qty>2</Qty>
<TaxAmount>6</TaxAmount>
<TaxPercentage>5</TaxPercentage>
<WareHouseId>1</WareHouseId>
</PurchaseOrderItemDto>
</Items>
<Notes>sample string 8</Notes>
<OrderNo>1</OrderNo>
<PODate>2026-08-11T19:45:29.5900107-07:00</PODate>
<PaymentTermDays>1</PaymentTermDays>
<RoundOff>6</RoundOff>
<SubTotal>3</SubTotal>
<TotalAmount>7</TotalAmount>
<VendorCode>2</VendorCode>
</PurchaseOrderSaveDto>
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.