DELETE api/Purchase/DeletePurchaseReturn?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 PurchaseReturnBody
NameDescriptionTypeAdditional information
PurReturnId

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.

ExtraSTaxBns

decimal number

None.

ExtraFTaxBns

decimal number

None.

PerUnitCostLose

decimal number

None.

IsFreeProduct

boolean

None.

IsFinalized

boolean

None.

ThanQty

integer

None.

Meters

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "PurReturnId": 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,
    "IsFinalized": true,
    "ThanQty": 25,
    "Meters": 26.0
  },
  {
    "PurReturnId": 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,
    "IsFinalized": true,
    "ThanQty": 25,
    "Meters": 26.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfPurchaseReturnBody xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models">
  <PurchaseReturnBody>
    <BnsLose>7</BnsLose>
    <DiscRatio>9</DiscRatio>
    <DiscValLose>11</DiscValLose>
    <DiscValPack>10</DiscValPack>
    <ExtraFTaxBns>22</ExtraFTaxBns>
    <ExtraSTaxBns>21</ExtraSTaxBns>
    <IsFTaxExempted>true</IsFTaxExempted>
    <IsFinalized>true</IsFinalized>
    <IsFreeProduct>true</IsFreeProduct>
    <IsSTaxOnBns>true</IsSTaxOnBns>
    <IsValueB4Ratio>true</IsValueB4Ratio>
    <Meters>26</Meters>
    <Multiplier>4</Multiplier>
    <OfferDiscount>12</OfferDiscount>
    <PackingId>3</PackingId>
    <PerUnitCostLose>23</PerUnitCostLose>
    <PricePack>8</PricePack>
    <ProductId>sample string 2</ProductId>
    <PurReturnId>1</PurReturnId>
    <QtyLose>6</QtyLose>
    <QtyPack>5</QtyPack>
    <STaxRatio>13</STaxRatio>
    <STaxValPack>14</STaxValPack>
    <TTLFTax>20</TTLFTax>
    <TTLSTax>19</TTLSTax>
    <TTLValue>18</TTLValue>
    <ThanQty>25</ThanQty>
  </PurchaseReturnBody>
  <PurchaseReturnBody>
    <BnsLose>7</BnsLose>
    <DiscRatio>9</DiscRatio>
    <DiscValLose>11</DiscValLose>
    <DiscValPack>10</DiscValPack>
    <ExtraFTaxBns>22</ExtraFTaxBns>
    <ExtraSTaxBns>21</ExtraSTaxBns>
    <IsFTaxExempted>true</IsFTaxExempted>
    <IsFinalized>true</IsFinalized>
    <IsFreeProduct>true</IsFreeProduct>
    <IsSTaxOnBns>true</IsSTaxOnBns>
    <IsValueB4Ratio>true</IsValueB4Ratio>
    <Meters>26</Meters>
    <Multiplier>4</Multiplier>
    <OfferDiscount>12</OfferDiscount>
    <PackingId>3</PackingId>
    <PerUnitCostLose>23</PerUnitCostLose>
    <PricePack>8</PricePack>
    <ProductId>sample string 2</ProductId>
    <PurReturnId>1</PurReturnId>
    <QtyLose>6</QtyLose>
    <QtyPack>5</QtyPack>
    <STaxRatio>13</STaxRatio>
    <STaxValPack>14</STaxValPack>
    <TTLFTax>20</TTLFTax>
    <TTLSTax>19</TTLSTax>
    <TTLValue>18</TTLValue>
    <ThanQty>25</ThanQty>
  </PurchaseReturnBody>
</ArrayOfPurchaseReturnBody>

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.