POST api/Sale/InsertSaleOrder?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
SaleOrderModelName | Description | Type | Additional information |
---|---|---|---|
OrderId | integer |
None. |
|
OrderDate | date |
None. |
|
BillNo | integer |
None. |
|
CustomerId | string |
None. |
|
SectorID | integer |
None. |
|
SalesmanId | string |
None. |
|
IsStockist | boolean |
None. |
|
OldIsStockist | boolean |
None. |
|
Narration | string |
None. |
|
Disc2Ratio | decimal number |
None. |
|
FTaxRatio | decimal number |
None. |
|
SpecialDiscount | decimal number |
None. |
|
InvOfferDiscount | decimal number |
None. |
|
InvOfferSTax | decimal number |
None. |
|
InvOfferFTax | decimal number |
None. |
|
ReceivedAmount | decimal number |
None. |
|
PreviousCredit | decimal number |
None. |
|
InvoiceNotes | string |
None. |
|
IsPosted | boolean |
None. |
|
UserNo | integer |
None. |
|
BiltyNo | string |
None. |
|
TransportName | string |
None. |
|
OfferID | integer |
None. |
|
BookerID | string |
None. |
|
DeliveryDate | date |
None. |
|
OfficeID | integer |
None. |
|
NetValue | decimal number |
None. |
|
IsRP | boolean |
None. |
|
DueDays | integer |
None. |
|
DueDate | date |
None. |
|
IDOffice | integer |
None. |
|
IsMRP | boolean |
None. |
|
InvType | string |
None. |
|
SupervisorName | string |
None. |
|
IsSupervised | boolean |
None. |
|
IsCancel | boolean |
None. |
|
IsOffered | boolean |
None. |
|
TownID | integer |
None. |
|
CustomerName | string |
None. |
|
SalesmanName | string |
None. |
|
TownName | string |
None. |
|
SectorName | string |
None. |
|
OfficeName | string |
None. |
|
DebitLimit | decimal number |
None. |
|
PricePolicyID | integer |
None. |
|
PPriceType | string |
None. |
|
BalTypPre | string |
None. |
|
VehicleNo | string |
None. |
|
DriverName | string |
None. |
|
ListBody | Collection of SaleOrderBodyModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "OrderId": 1, "OrderDate": "2025-07-04T19:29:18.9240609+05:00", "BillNo": 3, "CustomerId": "sample string 4", "SectorID": 5, "SalesmanId": "sample string 6", "IsStockist": true, "OldIsStockist": true, "Narration": "sample string 9", "Disc2Ratio": 10.0, "FTaxRatio": 11.0, "SpecialDiscount": 12.0, "InvOfferDiscount": 13.0, "InvOfferSTax": 14.0, "InvOfferFTax": 15.0, "ReceivedAmount": 16.0, "PreviousCredit": 17.0, "InvoiceNotes": "sample string 18", "IsPosted": true, "UserNo": 20, "BiltyNo": "sample string 21", "TransportName": "sample string 22", "OfferID": 23, "BookerID": "sample string 24", "DeliveryDate": "2025-07-04T19:29:18.9240609+05:00", "OfficeID": 26, "NetValue": 27.0, "IsRP": true, "DueDays": 29, "DueDate": "2025-07-04T19:29:18.9240609+05:00", "IDOffice": 31, "IsMRP": true, "InvType": "sample string 33", "SupervisorName": "sample string 34", "IsSupervised": true, "IsCancel": true, "IsOffered": true, "TownID": 38, "CustomerName": "sample string 39", "SalesmanName": "sample string 40", "TownName": "sample string 41", "SectorName": "sample string 42", "OfficeName": "sample string 43", "DebitLimit": 44.0, "PricePolicyID": 45, "PPriceType": "sample string 46", "BalTypPre": "sample string 47", "VehicleNo": "sample string 48", "DriverName": "sample string 49", "ListBody": [ { "OrderId": 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, "STaxRatio": 12.0, "STaxValPack": 13.0, "IsValueB4Ratio": true, "IsSTaxOnBns": true, "IsFTaxExempted": true, "TTLValue": 17.0, "TTLSTax": 18.0, "TTLFTax": 19.0, "ExtraSTaxBns": 20.0, "ExtraFTaxBns": 21.0, "PerUnitCostLose": 22.0, "IsFreeProduct": true, "PriceHistoryId": 24, "OfferDiscount": 25.0, "IsDeleted": true, "OfferID": 27, "IsOffered": true, "ProductName": "sample string 29", "DiscRatio2": 30.0, "DiscRatio3": 31.0, "DiscRatio4": 32.0, "WeightPerUnit": 33.0, "WeightPerLtr": 34.0, "WHTRatio": 35.0, "TTLWHTax": 36.0, "TTLDiscs": 37.0, "TTLLabour": 38.0, "ListStore": [ { "SerialNo": 1, "StoreID": 2, "OrderID": 3, "ProductID": "sample string 4", "PackingID": 5, "QtyP": 6, "QtyL": 7, "IsDeleted": true, "StoreName": "sample string 9" }, { "SerialNo": 1, "StoreID": 2, "OrderID": 3, "ProductID": "sample string 4", "PackingID": 5, "QtyP": 6, "QtyL": 7, "IsDeleted": true, "StoreName": "sample string 9" } ] }, { "OrderId": 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, "STaxRatio": 12.0, "STaxValPack": 13.0, "IsValueB4Ratio": true, "IsSTaxOnBns": true, "IsFTaxExempted": true, "TTLValue": 17.0, "TTLSTax": 18.0, "TTLFTax": 19.0, "ExtraSTaxBns": 20.0, "ExtraFTaxBns": 21.0, "PerUnitCostLose": 22.0, "IsFreeProduct": true, "PriceHistoryId": 24, "OfferDiscount": 25.0, "IsDeleted": true, "OfferID": 27, "IsOffered": true, "ProductName": "sample string 29", "DiscRatio2": 30.0, "DiscRatio3": 31.0, "DiscRatio4": 32.0, "WeightPerUnit": 33.0, "WeightPerLtr": 34.0, "WHTRatio": 35.0, "TTLWHTax": 36.0, "TTLDiscs": 37.0, "TTLLabour": 38.0, "ListStore": [ { "SerialNo": 1, "StoreID": 2, "OrderID": 3, "ProductID": "sample string 4", "PackingID": 5, "QtyP": 6, "QtyL": 7, "IsDeleted": true, "StoreName": "sample string 9" }, { "SerialNo": 1, "StoreID": 2, "OrderID": 3, "ProductID": "sample string 4", "PackingID": 5, "QtyP": 6, "QtyL": 7, "IsDeleted": true, "StoreName": "sample string 9" } ] } ] }
application/xml, text/xml
Sample:
<SaleOrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models"> <BalTypPre>sample string 47</BalTypPre> <BillNo>3</BillNo> <BiltyNo>sample string 21</BiltyNo> <BookerID>sample string 24</BookerID> <CustomerId>sample string 4</CustomerId> <CustomerName>sample string 39</CustomerName> <DebitLimit>44</DebitLimit> <DeliveryDate>2025-07-04T19:29:18.9240609+05:00</DeliveryDate> <Disc2Ratio>10</Disc2Ratio> <DriverName>sample string 49</DriverName> <DueDate>2025-07-04T19:29:18.9240609+05:00</DueDate> <DueDays>29</DueDays> <FTaxRatio>11</FTaxRatio> <IDOffice>31</IDOffice> <InvOfferDiscount>13</InvOfferDiscount> <InvOfferFTax>15</InvOfferFTax> <InvOfferSTax>14</InvOfferSTax> <InvType>sample string 33</InvType> <InvoiceNotes>sample string 18</InvoiceNotes> <IsCancel>true</IsCancel> <IsMRP>true</IsMRP> <IsOffered>true</IsOffered> <IsPosted>true</IsPosted> <IsRP>true</IsRP> <IsStockist>true</IsStockist> <IsSupervised>true</IsSupervised> <ListBody> <SaleOrderBodyModel> <BnsLose>7</BnsLose> <DiscRatio>9</DiscRatio> <DiscRatio2>30</DiscRatio2> <DiscRatio3>31</DiscRatio3> <DiscRatio4>32</DiscRatio4> <DiscValLose>11</DiscValLose> <DiscValPack>10</DiscValPack> <ExtraFTaxBns>21</ExtraFTaxBns> <ExtraSTaxBns>20</ExtraSTaxBns> <IsDeleted>true</IsDeleted> <IsFTaxExempted>true</IsFTaxExempted> <IsFreeProduct>true</IsFreeProduct> <IsOffered>true</IsOffered> <IsSTaxOnBns>true</IsSTaxOnBns> <IsValueB4Ratio>true</IsValueB4Ratio> <ListStore> <SaleOrderStoresModel> <IsDeleted>true</IsDeleted> <OrderID>3</OrderID> <PackingID>5</PackingID> <ProductID>sample string 4</ProductID> <QtyL>7</QtyL> <QtyP>6</QtyP> <SerialNo>1</SerialNo> <StoreID>2</StoreID> <StoreName>sample string 9</StoreName> </SaleOrderStoresModel> <SaleOrderStoresModel> <IsDeleted>true</IsDeleted> <OrderID>3</OrderID> <PackingID>5</PackingID> <ProductID>sample string 4</ProductID> <QtyL>7</QtyL> <QtyP>6</QtyP> <SerialNo>1</SerialNo> <StoreID>2</StoreID> <StoreName>sample string 9</StoreName> </SaleOrderStoresModel> </ListStore> <Multiplier>4</Multiplier> <OfferDiscount>25</OfferDiscount> <OfferID>27</OfferID> <OrderId>1</OrderId> <PackingId>3</PackingId> <PerUnitCostLose>22</PerUnitCostLose> <PriceHistoryId>24</PriceHistoryId> <PricePack>8</PricePack> <ProductId>sample string 2</ProductId> <ProductName>sample string 29</ProductName> <QtyLose>6</QtyLose> <QtyPack>5</QtyPack> <STaxRatio>12</STaxRatio> <STaxValPack>13</STaxValPack> <TTLDiscs>37</TTLDiscs> <TTLFTax>19</TTLFTax> <TTLLabour>38</TTLLabour> <TTLSTax>18</TTLSTax> <TTLValue>17</TTLValue> <TTLWHTax>36</TTLWHTax> <WHTRatio>35</WHTRatio> <WeightPerLtr>34</WeightPerLtr> <WeightPerUnit>33</WeightPerUnit> </SaleOrderBodyModel> <SaleOrderBodyModel> <BnsLose>7</BnsLose> <DiscRatio>9</DiscRatio> <DiscRatio2>30</DiscRatio2> <DiscRatio3>31</DiscRatio3> <DiscRatio4>32</DiscRatio4> <DiscValLose>11</DiscValLose> <DiscValPack>10</DiscValPack> <ExtraFTaxBns>21</ExtraFTaxBns> <ExtraSTaxBns>20</ExtraSTaxBns> <IsDeleted>true</IsDeleted> <IsFTaxExempted>true</IsFTaxExempted> <IsFreeProduct>true</IsFreeProduct> <IsOffered>true</IsOffered> <IsSTaxOnBns>true</IsSTaxOnBns> <IsValueB4Ratio>true</IsValueB4Ratio> <ListStore> <SaleOrderStoresModel> <IsDeleted>true</IsDeleted> <OrderID>3</OrderID> <PackingID>5</PackingID> <ProductID>sample string 4</ProductID> <QtyL>7</QtyL> <QtyP>6</QtyP> <SerialNo>1</SerialNo> <StoreID>2</StoreID> <StoreName>sample string 9</StoreName> </SaleOrderStoresModel> <SaleOrderStoresModel> <IsDeleted>true</IsDeleted> <OrderID>3</OrderID> <PackingID>5</PackingID> <ProductID>sample string 4</ProductID> <QtyL>7</QtyL> <QtyP>6</QtyP> <SerialNo>1</SerialNo> <StoreID>2</StoreID> <StoreName>sample string 9</StoreName> </SaleOrderStoresModel> </ListStore> <Multiplier>4</Multiplier> <OfferDiscount>25</OfferDiscount> <OfferID>27</OfferID> <OrderId>1</OrderId> <PackingId>3</PackingId> <PerUnitCostLose>22</PerUnitCostLose> <PriceHistoryId>24</PriceHistoryId> <PricePack>8</PricePack> <ProductId>sample string 2</ProductId> <ProductName>sample string 29</ProductName> <QtyLose>6</QtyLose> <QtyPack>5</QtyPack> <STaxRatio>12</STaxRatio> <STaxValPack>13</STaxValPack> <TTLDiscs>37</TTLDiscs> <TTLFTax>19</TTLFTax> <TTLLabour>38</TTLLabour> <TTLSTax>18</TTLSTax> <TTLValue>17</TTLValue> <TTLWHTax>36</TTLWHTax> <WHTRatio>35</WHTRatio> <WeightPerLtr>34</WeightPerLtr> <WeightPerUnit>33</WeightPerUnit> </SaleOrderBodyModel> </ListBody> <Narration>sample string 9</Narration> <NetValue>27</NetValue> <OfferID>23</OfferID> <OfficeID>26</OfficeID> <OfficeName>sample string 43</OfficeName> <OldIsStockist>true</OldIsStockist> <OrderDate>2025-07-04T19:29:18.9240609+05:00</OrderDate> <OrderId>1</OrderId> <PPriceType>sample string 46</PPriceType> <PreviousCredit>17</PreviousCredit> <PricePolicyID>45</PricePolicyID> <ReceivedAmount>16</ReceivedAmount> <SalesmanId>sample string 6</SalesmanId> <SalesmanName>sample string 40</SalesmanName> <SectorID>5</SectorID> <SectorName>sample string 42</SectorName> <SpecialDiscount>12</SpecialDiscount> <SupervisorName>sample string 34</SupervisorName> <TownID>38</TownID> <TownName>sample string 41</TownName> <TransportName>sample string 22</TransportName> <UserNo>20</UserNo> <VehicleNo>sample string 48</VehicleNo> </SaleOrderModel>
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. |