POST api/Purchase/InsertPurchaseInvoice?isOpen={isOpen}&userId={userId}&isPGP={isPGP}&isRateChange={isRateChange}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isOpen

boolean

Default value is False

userId

integer

Default value is 0

isPGP

boolean

Default value is False

isRateChange

boolean

Default value is False

Body Parameters

PurchaseModel
NameDescriptionTypeAdditional information
PurchaseID

integer

None.

PurchaseDate

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.

PurOrderID

integer

None.

InvOfferFTax

decimal number

None.

OfferID

integer

None.

Freight2

decimal number

None.

Unloading2

decimal number

None.

ITax2

decimal number

None.

BiltyNo

string

None.

PreviousBal

decimal number

None.

FinalBalance

decimal number

None.

TradeDiscount

decimal number

None.

FTaxPer

decimal number

None.

FTaxValue

decimal number

None.

SaleTaxPer

decimal number

None.

SaleTaxVal

decimal number

None.

ExtraSaleTaxPer

decimal number

None.

ExtraSaleTaxVal

decimal number

None.

IncomeTaxPer

decimal number

None.

IncomeTaxVal

decimal number

None.

NetValue

decimal number

None.

FrmExp

decimal number

None.

IsPosted

boolean

None.

UserID

integer

None.

AccountNo

string

None.

IsFinalized

boolean

None.

DueDate

date

None.

WHTaxPer

decimal number

None.

IsMultiInvoice

boolean

None.

IsPosted2

boolean

None.

IsPosted3

boolean

None.

IsPosted4

boolean

None.

IDOffice

integer

None.

VehicleNo

string

None.

VehicleType

string

None.

Transporter

string

None.

DriverName

string

None.

DueDays

integer

None.

TFreight

decimal number

None.

TPartyID

string

None.

ListBody

Collection of PurchasesBody

None.

Request Formats

application/json, text/json

Sample:
{
  "PurchaseID": 1,
  "PurchaseDate": "2025-07-04T18:46:06.6057311+05:00",
  "OfficeID": 3,
  "VendorID": "sample string 4",
  "BillNo": "sample string 5",
  "BillDate": "2025-07-04T18:46:06.6057311+05:00",
  "IsUploaded": true,
  "PaidAmount": 8.0,
  "Narration": "sample string 9",
  "SpecialDiscount": 10.0,
  "CustomerId": "sample string 11",
  "GSTax": 12.0,
  "PurOrderID": 13,
  "InvOfferFTax": 14.0,
  "OfferID": 15,
  "Freight2": 16.0,
  "Unloading2": 17.0,
  "ITax2": 18.0,
  "BiltyNo": "sample string 19",
  "PreviousBal": 20.0,
  "FinalBalance": 21.0,
  "TradeDiscount": 22.0,
  "FTaxPer": 23.0,
  "FTaxValue": 24.0,
  "SaleTaxPer": 25.0,
  "SaleTaxVal": 26.0,
  "ExtraSaleTaxPer": 27.0,
  "ExtraSaleTaxVal": 28.0,
  "IncomeTaxPer": 29.0,
  "IncomeTaxVal": 30.0,
  "NetValue": 31.0,
  "FrmExp": 32.0,
  "IsPosted": true,
  "UserID": 34,
  "AccountNo": "sample string 35",
  "IsFinalized": true,
  "DueDate": "2025-07-04T18:46:06.6057311+05:00",
  "WHTaxPer": 37.0,
  "IsMultiInvoice": true,
  "IsPosted2": true,
  "IsPosted3": true,
  "IsPosted4": true,
  "IDOffice": 42,
  "VehicleNo": "sample string 43",
  "VehicleType": "sample string 44",
  "Transporter": "sample string 45",
  "DriverName": "sample string 46",
  "DueDays": 47,
  "TFreight": 48.0,
  "TPartyID": "sample string 49",
  "ListBody": [
    {
      "PurchaseId": 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,
      "TTITax": 21.0,
      "ExtraSTaxBns": 22.0,
      "ExtraFTaxBns": 23.0,
      "PerUnitCostLose": 24.0,
      "IsFreeProduct": true,
      "IsDeleted": true,
      "CustomerId": "sample string 27",
      "OfferID": 28,
      "IsOffered": true,
      "Damage": 30,
      "BarCode": "sample string 31",
      "ITaxPer": 32.0,
      "ThanQty": 33,
      "Meters": 34.0,
      "SizeID": 35,
      "IsOpenProduct": true,
      "ColorID": 37.0,
      "NetVal": 38.0
    },
    {
      "PurchaseId": 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,
      "TTITax": 21.0,
      "ExtraSTaxBns": 22.0,
      "ExtraFTaxBns": 23.0,
      "PerUnitCostLose": 24.0,
      "IsFreeProduct": true,
      "IsDeleted": true,
      "CustomerId": "sample string 27",
      "OfferID": 28,
      "IsOffered": true,
      "Damage": 30,
      "BarCode": "sample string 31",
      "ITaxPer": 32.0,
      "ThanQty": 33,
      "Meters": 34.0,
      "SizeID": 35,
      "IsOpenProduct": true,
      "ColorID": 37.0,
      "NetVal": 38.0
    }
  ]
}

application/xml, text/xml

Sample:
<PurchaseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models">
  <AccountNo>sample string 35</AccountNo>
  <BillDate>2025-07-04T18:46:06.6057311+05:00</BillDate>
  <BillNo>sample string 5</BillNo>
  <BiltyNo>sample string 19</BiltyNo>
  <CustomerId>sample string 11</CustomerId>
  <DriverName>sample string 46</DriverName>
  <DueDate>2025-07-04T18:46:06.6057311+05:00</DueDate>
  <DueDays>47</DueDays>
  <ExtraSaleTaxPer>27</ExtraSaleTaxPer>
  <ExtraSaleTaxVal>28</ExtraSaleTaxVal>
  <FTaxPer>23</FTaxPer>
  <FTaxValue>24</FTaxValue>
  <FinalBalance>21</FinalBalance>
  <Freight2>16</Freight2>
  <FrmExp>32</FrmExp>
  <GSTax>12</GSTax>
  <IDOffice>42</IDOffice>
  <ITax2>18</ITax2>
  <IncomeTaxPer>29</IncomeTaxPer>
  <IncomeTaxVal>30</IncomeTaxVal>
  <InvOfferFTax>14</InvOfferFTax>
  <IsFinalized>true</IsFinalized>
  <IsMultiInvoice>true</IsMultiInvoice>
  <IsPosted>true</IsPosted>
  <IsPosted2>true</IsPosted2>
  <IsPosted3>true</IsPosted3>
  <IsPosted4>true</IsPosted4>
  <IsUploaded>true</IsUploaded>
  <ListBody>
    <PurchasesBody>
      <BarCode>sample string 31</BarCode>
      <BnsLose>7</BnsLose>
      <ColorID>37</ColorID>
      <CustomerId>sample string 27</CustomerId>
      <Damage>30</Damage>
      <DiscRatio>9</DiscRatio>
      <DiscValLose>11</DiscValLose>
      <DiscValPack>10</DiscValPack>
      <ExtraFTaxBns>23</ExtraFTaxBns>
      <ExtraSTaxBns>22</ExtraSTaxBns>
      <ITaxPer>32</ITaxPer>
      <IsDeleted>true</IsDeleted>
      <IsFTaxExempted>true</IsFTaxExempted>
      <IsFreeProduct>true</IsFreeProduct>
      <IsOffered>true</IsOffered>
      <IsOpenProduct>true</IsOpenProduct>
      <IsSTaxOnBns>true</IsSTaxOnBns>
      <IsValueB4Ratio>true</IsValueB4Ratio>
      <Meters>34</Meters>
      <Multiplier>4</Multiplier>
      <NetVal>38</NetVal>
      <OfferDiscount>12</OfferDiscount>
      <OfferID>28</OfferID>
      <PackingId>3</PackingId>
      <PerUnitCostLose>24</PerUnitCostLose>
      <PricePack>8</PricePack>
      <ProductId>sample string 2</ProductId>
      <PurchaseId>1</PurchaseId>
      <QtyLose>6</QtyLose>
      <QtyPack>5</QtyPack>
      <STaxRatio>13</STaxRatio>
      <STaxValPack>14</STaxValPack>
      <SizeID>35</SizeID>
      <TTITax>21</TTITax>
      <TTLFTax>20</TTLFTax>
      <TTLSTax>19</TTLSTax>
      <TTLValue>18</TTLValue>
      <ThanQty>33</ThanQty>
    </PurchasesBody>
    <PurchasesBody>
      <BarCode>sample string 31</BarCode>
      <BnsLose>7</BnsLose>
      <ColorID>37</ColorID>
      <CustomerId>sample string 27</CustomerId>
      <Damage>30</Damage>
      <DiscRatio>9</DiscRatio>
      <DiscValLose>11</DiscValLose>
      <DiscValPack>10</DiscValPack>
      <ExtraFTaxBns>23</ExtraFTaxBns>
      <ExtraSTaxBns>22</ExtraSTaxBns>
      <ITaxPer>32</ITaxPer>
      <IsDeleted>true</IsDeleted>
      <IsFTaxExempted>true</IsFTaxExempted>
      <IsFreeProduct>true</IsFreeProduct>
      <IsOffered>true</IsOffered>
      <IsOpenProduct>true</IsOpenProduct>
      <IsSTaxOnBns>true</IsSTaxOnBns>
      <IsValueB4Ratio>true</IsValueB4Ratio>
      <Meters>34</Meters>
      <Multiplier>4</Multiplier>
      <NetVal>38</NetVal>
      <OfferDiscount>12</OfferDiscount>
      <OfferID>28</OfferID>
      <PackingId>3</PackingId>
      <PerUnitCostLose>24</PerUnitCostLose>
      <PricePack>8</PricePack>
      <ProductId>sample string 2</ProductId>
      <PurchaseId>1</PurchaseId>
      <QtyLose>6</QtyLose>
      <QtyPack>5</QtyPack>
      <STaxRatio>13</STaxRatio>
      <STaxValPack>14</STaxValPack>
      <SizeID>35</SizeID>
      <TTITax>21</TTITax>
      <TTLFTax>20</TTLFTax>
      <TTLSTax>19</TTLSTax>
      <TTLValue>18</TTLValue>
      <ThanQty>33</ThanQty>
    </PurchasesBody>
  </ListBody>
  <Narration>sample string 9</Narration>
  <NetValue>31</NetValue>
  <OfferID>15</OfferID>
  <OfficeID>3</OfficeID>
  <PaidAmount>8</PaidAmount>
  <PreviousBal>20</PreviousBal>
  <PurOrderID>13</PurOrderID>
  <PurchaseDate>2025-07-04T18:46:06.6057311+05:00</PurchaseDate>
  <PurchaseID>1</PurchaseID>
  <SaleTaxPer>25</SaleTaxPer>
  <SaleTaxVal>26</SaleTaxVal>
  <SpecialDiscount>10</SpecialDiscount>
  <TFreight>48</TFreight>
  <TPartyID>sample string 49</TPartyID>
  <TradeDiscount>22</TradeDiscount>
  <Transporter>sample string 45</Transporter>
  <Unloading2>17</Unloading2>
  <UserID>34</UserID>
  <VehicleNo>sample string 43</VehicleNo>
  <VehicleType>sample string 44</VehicleType>
  <VendorID>sample string 4</VendorID>
  <WHTaxPer>37</WHTaxPer>
</PurchaseModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.