DELETE api/purchasehistories/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
purchasehistory| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| PurchaseDate | date |
None. |
|
| merchantid | integer |
None. |
|
| ClientId | string |
None. |
|
| OperatorId | string |
None. |
|
| TotalAmount | decimal number |
None. |
|
| OperatorTip | decimal number |
None. |
|
| TotalAmountPaid | decimal number |
None. |
|
| TransactionRef | string |
None. |
|
| TransactionType | integer |
None. |
|
| TransactionId | integer |
None. |
|
| Success | boolean |
None. |
|
| Reason | string |
None. |
|
| DateCreated | date |
None. |
|
| TransactionSource | integer |
None. |
|
| TransactionFeesAmount | decimal number |
None. |
|
| VatAmount | decimal number |
None. |
|
| CompanyVatAmount | decimal number |
None. |
|
| MerchantAmount | decimal number |
None. |
|
| AccountType | integer |
None. |
|
| IPAddress | string |
None. |
|
| Status | string |
None. |
|
| Longitude | decimal number |
None. |
|
| Latitude | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"PurchaseDate": "2026-03-26T03:51:45.8534863+02:00",
"merchantid": 1,
"ClientId": "sample string 2",
"OperatorId": "sample string 3",
"TotalAmount": 1.0,
"OperatorTip": 1.0,
"TotalAmountPaid": 1.0,
"TransactionRef": "sample string 4",
"TransactionType": 1,
"TransactionId": 1,
"Success": true,
"Reason": "sample string 6",
"DateCreated": "2026-03-26T03:51:45.8534863+02:00",
"TransactionSource": 8,
"TransactionFeesAmount": 9.0,
"VatAmount": 10.0,
"CompanyVatAmount": 11.0,
"MerchantAmount": 12.0,
"AccountType": 1,
"IPAddress": "sample string 13",
"Status": "sample string 14",
"Longitude": 15.1,
"Latitude": 16.1
}
application/xml, text/xml
Sample:
<purchasehistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UCareAPI.Database"> <AccountType>1</AccountType> <ClientId>sample string 2</ClientId> <CompanyVatAmount>11</CompanyVatAmount> <DateCreated>2026-03-26T03:51:45.8534863+02:00</DateCreated> <IPAddress>sample string 13</IPAddress> <Latitude>16.1</Latitude> <Longitude>15.1</Longitude> <MerchantAmount>12</MerchantAmount> <OperatorId>sample string 3</OperatorId> <OperatorTip>1</OperatorTip> <PurchaseDate>2026-03-26T03:51:45.8534863+02:00</PurchaseDate> <Reason>sample string 6</Reason> <Status>sample string 14</Status> <Success>true</Success> <TotalAmount>1</TotalAmount> <TotalAmountPaid>1</TotalAmountPaid> <TransactionFeesAmount>9</TransactionFeesAmount> <TransactionId>1</TransactionId> <TransactionRef>sample string 4</TransactionRef> <TransactionSource>8</TransactionSource> <TransactionType>1</TransactionType> <VatAmount>10</VatAmount> <id>1</id> <merchantid>1</merchantid> </purchasehistory>