DELETE api/Purchase/DeletePurchaseInvoice?invoiceId={invoiceId}&userId={userId}&isPGP={isPGP}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
invoiceId

integer

Required

userId

integer

Required

isPGP

boolean

Default value is False

Body Parameters

Collection of PurchasesBody
NameDescriptionTypeAdditional information
PurchaseId

integer

None.

ProductId

string

None.

PackingId

integer

None.

Multiplier

decimal number

None.

QtyPack

integer

None.

QtyLose

integer

None.

BnsLose

integer

None.

PricePack

decimal number

None.

DiscRatio

decimal number

None.

DiscValPack

decimal number

None.

DiscValLose

decimal number

None.

OfferDiscount

decimal number

None.

STaxRatio

decimal number

None.

STaxValPack

decimal number

None.

IsValueB4Ratio

boolean

None.

IsSTaxOnBns

boolean

None.

IsFTaxExempted

boolean

None.

TTLValue

decimal number

None.

TTLSTax

decimal number

None.

TTLFTax

decimal number

None.

TTITax

decimal number

None.

ExtraSTaxBns

decimal number

None.

ExtraFTaxBns

decimal number

None.

PerUnitCostLose

decimal number

None.

IsFreeProduct

boolean

None.

IsDeleted

boolean

None.

CustomerId

string

None.

OfferID

integer

None.

IsOffered

boolean

None.

Damage

integer

None.

BarCode

string

None.

ITaxPer

decimal number

None.

ThanQty

integer

None.

Meters

decimal number

None.

SizeID

integer

None.

IsOpenProduct

boolean

None.

ColorID

decimal number

None.

NetVal

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "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:
<ArrayOfPurchasesBody xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models">
  <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>
</ArrayOfPurchasesBody>

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.