POST api/purchases/delete

Request Information

URI Parameters

None.

Body Parameters

PurchaseData
NameDescriptionTypeAdditional information
Type

PurchaseTypeEnum

None.

TransactionID

integer

None.

StockOperationID

integer

None.

Status

PurchaseStatusEnum

None.

Date

date

None.

Number

integer

None.

Reference

string

None.

ProviderID

integer

None.

SubTotal

decimal number

None.

GeneralDiscountAmount

decimal number

None.

IIBBPerceptionAmount

decimal number

None.

IVAPerceptionAmount

decimal number

None.

Total

decimal number

None.

CurrencyCode

CurrencyCodeEnum

None.

DollarPrice

decimal number

None.

Comment

string

None.

VoucherTypeID

integer

None.

VoucherPointOfSaleNumber

integer

None.

VoucherNumber

integer

None.

CreatedByDisplayName

string

None.

CreatedOn

date

None.

ModifiedByDisplayName

string

None.

ModifyOn

date

None.

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Type": 0,
  "TransactionID": 1,
  "StockOperationID": 1,
  "Status": 0,
  "Date": "2025-08-02T19:25:58.9410283+00:00",
  "Number": 1,
  "Reference": "sample string 1",
  "ProviderID": 1,
  "SubTotal": 1.0,
  "GeneralDiscountAmount": 1.0,
  "IIBBPerceptionAmount": 1.0,
  "IVAPerceptionAmount": 1.0,
  "Total": 1.0,
  "CurrencyCode": 0,
  "DollarPrice": 1.0,
  "Comment": "sample string 2",
  "VoucherTypeID": 1,
  "VoucherPointOfSaleNumber": 1,
  "VoucherNumber": 1,
  "CreatedByDisplayName": "sample string 3",
  "CreatedOn": "2025-08-02T19:25:58.9410283+00:00",
  "ModifiedByDisplayName": "sample string 4",
  "ModifyOn": "2025-08-02T19:25:58.9410283+00:00",
  "ID": 1
}

text/xml

Sample:
<PurchaseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data">
  <ID>1</ID>
  <Comment>sample string 2</Comment>
  <CreatedByDisplayName>sample string 3</CreatedByDisplayName>
  <CreatedOn>2025-08-02T19:25:58.9410283+00:00</CreatedOn>
  <CurrencyCode>ARS</CurrencyCode>
  <Date>2025-08-02T19:25:58.9410283+00:00</Date>
  <DollarPrice>1</DollarPrice>
  <GeneralDiscountAmount>1</GeneralDiscountAmount>
  <IIBBPerceptionAmount>1</IIBBPerceptionAmount>
  <IVAPerceptionAmount>1</IVAPerceptionAmount>
  <ModifiedByDisplayName>sample string 4</ModifiedByDisplayName>
  <ModifyOn>2025-08-02T19:25:58.9410283+00:00</ModifyOn>
  <Number>1</Number>
  <ProviderID>1</ProviderID>
  <Reference>sample string 1</Reference>
  <Status>OPEN</Status>
  <StockOperationID>1</StockOperationID>
  <SubTotal>1</SubTotal>
  <Total>1</Total>
  <TransactionID>1</TransactionID>
  <Type>PURCHASE</Type>
  <VoucherNumber>1</VoucherNumber>
  <VoucherPointOfSaleNumber>1</VoucherPointOfSaleNumber>
  <VoucherTypeID>1</VoucherTypeID>
</PurchaseData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.