PUT api/PurchaseItemsHistories/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PurchaseItemsHistory
NameDescriptionTypeAdditional information
id

integer

None.

DateCreated

date

None.

LastModified

date

None.

TransactionId

integer

None.

TransactionRef

string

None.

SellingPrice

decimal number

None.

Vat

decimal number

None.

VendorId

integer

None.

Refunded

boolean

None.

DateRefunded

date

None.

RefundedBy

string

None.

RefundReason

string

None.

Qty

decimal number

None.

VatAmount

decimal number

None.

TransactionFeesAmount

decimal number

None.

BonaMarketVatAmount

decimal number

None.

UnitPrice

decimal number

None.

MarkupValue

decimal number

None.

MarkupPercentage

decimal number

None.

ExpiryDate

date

None.

ProductId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "DateCreated": "2025-12-11T12:06:22.7292111+02:00",
  "LastModified": "2025-12-11T12:06:22.7292111+02:00",
  "TransactionId": 1,
  "TransactionRef": "sample string 2",
  "SellingPrice": 3.1,
  "Vat": 4.1,
  "VendorId": 1,
  "Refunded": true,
  "DateRefunded": "2025-12-11T12:06:22.7292111+02:00",
  "RefundedBy": "sample string 6",
  "RefundReason": "sample string 7",
  "Qty": 8.1,
  "VatAmount": 9.1,
  "TransactionFeesAmount": 10.1,
  "BonaMarketVatAmount": 11.1,
  "UnitPrice": 12.1,
  "MarkupValue": 13.1,
  "MarkupPercentage": 14.1,
  "ExpiryDate": "2025-12-11T12:06:22.7292111+02:00",
  "ProductId": 1
}

application/xml, text/xml

Sample:
<PurchaseItemsHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BonaMarketAPI.Database">
  <BonaMarketVatAmount>11.1</BonaMarketVatAmount>
  <DateCreated>2025-12-11T12:06:22.7292111+02:00</DateCreated>
  <DateRefunded>2025-12-11T12:06:22.7292111+02:00</DateRefunded>
  <ExpiryDate>2025-12-11T12:06:22.7292111+02:00</ExpiryDate>
  <LastModified>2025-12-11T12:06:22.7292111+02:00</LastModified>
  <MarkupPercentage>14.1</MarkupPercentage>
  <MarkupValue>13.1</MarkupValue>
  <ProductId>1</ProductId>
  <Qty>8.1</Qty>
  <RefundReason>sample string 7</RefundReason>
  <Refunded>true</Refunded>
  <RefundedBy>sample string 6</RefundedBy>
  <SellingPrice>3.1</SellingPrice>
  <TransactionFeesAmount>10.1</TransactionFeesAmount>
  <TransactionId>1</TransactionId>
  <TransactionRef>sample string 2</TransactionRef>
  <UnitPrice>12.1</UnitPrice>
  <Vat>4.1</Vat>
  <VatAmount>9.1</VatAmount>
  <VendorId>1</VendorId>
  <id>1</id>
</PurchaseItemsHistory>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.