POST AddPurchaseHistory
Request Information
URI Parameters
None.
Body Parameters
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. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"PurchaseDate": "2026-02-17T16:10:15.468498+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-02-17T16:10:15.468498+02:00",
"TransactionSource": 8,
"TransactionFeesAmount": 9.0,
"VatAmount": 10.0,
"CompanyVatAmount": 11.0,
"MerchantAmount": 12.0
}
application/xml, text/xml
Sample:
<purchasehistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZakaPayAPI.Database"> <ClientId>sample string 2</ClientId> <CompanyVatAmount>11</CompanyVatAmount> <DateCreated>2026-02-17T16:10:15.468498+02:00</DateCreated> <MerchantAmount>12</MerchantAmount> <OperatorId>sample string 3</OperatorId> <OperatorTip>1</OperatorTip> <PurchaseDate>2026-02-17T16:10:15.468498+02:00</PurchaseDate> <Reason>sample string 6</Reason> <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>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"PurchaseDate": "2026-02-17T16:10:15.4754785+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-02-17T16:10:15.4754785+02:00",
"TransactionSource": 8,
"TransactionFeesAmount": 9.0,
"VatAmount": 10.0,
"CompanyVatAmount": 11.0,
"MerchantAmount": 12.0
}
application/xml, text/xml
Sample:
<purchasehistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZakaPayAPI.Database"> <ClientId>sample string 2</ClientId> <CompanyVatAmount>11</CompanyVatAmount> <DateCreated>2026-02-17T16:10:15.4754785+02:00</DateCreated> <MerchantAmount>12</MerchantAmount> <OperatorId>sample string 3</OperatorId> <OperatorTip>1</OperatorTip> <PurchaseDate>2026-02-17T16:10:15.4754785+02:00</PurchaseDate> <Reason>sample string 6</Reason> <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>