POST api/Purchase/InsertPurchaseOrder?isOpen={isOpen}&userId={userId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
isOpen | boolean |
Default value is False |
|
userId | integer |
Default value is 0 |
Body Parameters
PurchaseOrderModelName | Description | Type | Additional information |
---|---|---|---|
PurOrderID | integer |
None. |
|
OrderDate | date |
None. |
|
OfficeID | integer |
None. |
|
VendorID | string |
None. |
|
BillNo | string |
None. |
|
BillDate | date |
None. |
|
IsUploaded | boolean |
None. |
|
PaidAmount | decimal number |
None. |
|
Narration | string |
None. |
|
SpecialDiscount | decimal number |
None. |
|
CustomerId | string |
None. |
|
GSTax | decimal number |
None. |
|
SalesmanID | string |
None. |
|
PreBalance | decimal number |
None. |
|
DemandID | integer |
None. |
|
DueDate | date |
None. |
|
IDOffice | integer |
None. |
|
PartyName | string |
None. |
|
ListBody | Collection of PurchaseOrderBody |
None. |
Request Formats
application/json, text/json
Sample:
{ "PurOrderID": 1, "OrderDate": "2025-07-04T18:21:52.0360736+05:00", "OfficeID": 3, "VendorID": "sample string 4", "BillNo": "sample string 5", "BillDate": "2025-07-04T18:21:52.0360736+05:00", "IsUploaded": true, "PaidAmount": 8.0, "Narration": "sample string 9", "SpecialDiscount": 10.0, "CustomerId": "sample string 11", "GSTax": 12.0, "SalesmanID": "sample string 13", "PreBalance": 14.0, "DemandID": 15, "DueDate": "2025-07-04T18:21:52.0360736+05:00", "IDOffice": 17, "PartyName": "sample string 18", "ListBody": [ { "PurOrderId": 1, "ProductId": "sample string 2", "PackingId": 3, "Multiplier": 4.0, "QtyPack": 5, "QtyLose": 6, "BnsLose": 7, "PricePack": 8.0, "DiscRatio": 9.0, "DiscValPack": 10.0, "DiscValLose": 11.0, "OfferDiscount": 12.0, "STaxRatio": 13.0, "STaxValPack": 14.0, "IsValueB4Ratio": true, "IsSTaxOnBns": true, "IsFTaxExempted": true, "TTLValue": 18.0, "TTLSTax": 19.0, "TTLFTax": 20.0, "ExtraSTaxBns": 21.0, "ExtraFTaxBns": 22.0, "PerUnitCostLose": 23.0, "IsFreeProduct": true, "IsDeleted": true, "CustomerId": "sample string 26", "DemandQtyP": 27, "DemandQtyL": 28, "SizeID": 29, "ColorID": 30, "ITaxPer": 31.0, "TTLITax": 32.0, "ProductName": "sample string 33", "ShadeCode": "sample string 34", "MinStockLevel": 35.0, "MaxStockLevel": 36.0, "vTTLSTax": 37.0, "Qty": 38 }, { "PurOrderId": 1, "ProductId": "sample string 2", "PackingId": 3, "Multiplier": 4.0, "QtyPack": 5, "QtyLose": 6, "BnsLose": 7, "PricePack": 8.0, "DiscRatio": 9.0, "DiscValPack": 10.0, "DiscValLose": 11.0, "OfferDiscount": 12.0, "STaxRatio": 13.0, "STaxValPack": 14.0, "IsValueB4Ratio": true, "IsSTaxOnBns": true, "IsFTaxExempted": true, "TTLValue": 18.0, "TTLSTax": 19.0, "TTLFTax": 20.0, "ExtraSTaxBns": 21.0, "ExtraFTaxBns": 22.0, "PerUnitCostLose": 23.0, "IsFreeProduct": true, "IsDeleted": true, "CustomerId": "sample string 26", "DemandQtyP": 27, "DemandQtyL": 28, "SizeID": 29, "ColorID": 30, "ITaxPer": 31.0, "TTLITax": 32.0, "ProductName": "sample string 33", "ShadeCode": "sample string 34", "MinStockLevel": 35.0, "MaxStockLevel": 36.0, "vTTLSTax": 37.0, "Qty": 38 } ] }
application/xml, text/xml
Sample:
<PurchaseOrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models"> <BillDate>2025-07-04T18:21:52.0360736+05:00</BillDate> <BillNo>sample string 5</BillNo> <CustomerId>sample string 11</CustomerId> <DemandID>15</DemandID> <DueDate>2025-07-04T18:21:52.0360736+05:00</DueDate> <GSTax>12</GSTax> <IDOffice>17</IDOffice> <IsUploaded>true</IsUploaded> <ListBody> <PurchaseOrderBody> <BnsLose>7</BnsLose> <ColorID>30</ColorID> <CustomerId>sample string 26</CustomerId> <DemandQtyL>28</DemandQtyL> <DemandQtyP>27</DemandQtyP> <DiscRatio>9</DiscRatio> <DiscValLose>11</DiscValLose> <DiscValPack>10</DiscValPack> <ExtraFTaxBns>22</ExtraFTaxBns> <ExtraSTaxBns>21</ExtraSTaxBns> <ITaxPer>31</ITaxPer> <IsDeleted>true</IsDeleted> <IsFTaxExempted>true</IsFTaxExempted> <IsFreeProduct>true</IsFreeProduct> <IsSTaxOnBns>true</IsSTaxOnBns> <IsValueB4Ratio>true</IsValueB4Ratio> <MaxStockLevel>36</MaxStockLevel> <MinStockLevel>35</MinStockLevel> <Multiplier>4</Multiplier> <OfferDiscount>12</OfferDiscount> <PackingId>3</PackingId> <PerUnitCostLose>23</PerUnitCostLose> <PricePack>8</PricePack> <ProductId>sample string 2</ProductId> <ProductName>sample string 33</ProductName> <PurOrderId>1</PurOrderId> <Qty>38</Qty> <QtyLose>6</QtyLose> <QtyPack>5</QtyPack> <STaxRatio>13</STaxRatio> <STaxValPack>14</STaxValPack> <ShadeCode>sample string 34</ShadeCode> <SizeID>29</SizeID> <TTLFTax>20</TTLFTax> <TTLITax>32</TTLITax> <TTLSTax>19</TTLSTax> <TTLValue>18</TTLValue> <vTTLSTax>37</vTTLSTax> </PurchaseOrderBody> <PurchaseOrderBody> <BnsLose>7</BnsLose> <ColorID>30</ColorID> <CustomerId>sample string 26</CustomerId> <DemandQtyL>28</DemandQtyL> <DemandQtyP>27</DemandQtyP> <DiscRatio>9</DiscRatio> <DiscValLose>11</DiscValLose> <DiscValPack>10</DiscValPack> <ExtraFTaxBns>22</ExtraFTaxBns> <ExtraSTaxBns>21</ExtraSTaxBns> <ITaxPer>31</ITaxPer> <IsDeleted>true</IsDeleted> <IsFTaxExempted>true</IsFTaxExempted> <IsFreeProduct>true</IsFreeProduct> <IsSTaxOnBns>true</IsSTaxOnBns> <IsValueB4Ratio>true</IsValueB4Ratio> <MaxStockLevel>36</MaxStockLevel> <MinStockLevel>35</MinStockLevel> <Multiplier>4</Multiplier> <OfferDiscount>12</OfferDiscount> <PackingId>3</PackingId> <PerUnitCostLose>23</PerUnitCostLose> <PricePack>8</PricePack> <ProductId>sample string 2</ProductId> <ProductName>sample string 33</ProductName> <PurOrderId>1</PurOrderId> <Qty>38</Qty> <QtyLose>6</QtyLose> <QtyPack>5</QtyPack> <STaxRatio>13</STaxRatio> <STaxValPack>14</STaxValPack> <ShadeCode>sample string 34</ShadeCode> <SizeID>29</SizeID> <TTLFTax>20</TTLFTax> <TTLITax>32</TTLITax> <TTLSTax>19</TTLSTax> <TTLValue>18</TTLValue> <vTTLSTax>37</vTTLSTax> </PurchaseOrderBody> </ListBody> <Narration>sample string 9</Narration> <OfficeID>3</OfficeID> <OrderDate>2025-07-04T18:21:52.0360736+05:00</OrderDate> <PaidAmount>8</PaidAmount> <PartyName>sample string 18</PartyName> <PreBalance>14</PreBalance> <PurOrderID>1</PurOrderID> <SalesmanID>sample string 13</SalesmanID> <SpecialDiscount>10</SpecialDiscount> <VendorID>sample string 4</VendorID> </PurchaseOrderModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |