POST api/Transactions
Creates a transaction.
Request Information
URI Parameters
None.
Body Parameters
The transaction model to create with.
TransactionDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| UserId | globally unique identifier |
None. |
|
| OrderId | globally unique identifier |
None. |
|
| TransactionAmount | decimal number |
None. |
|
| TransactionDescription | string |
None. |
|
| TransactionDateUtc | date |
None. |
|
| TransactionType | TransactionTypeDto |
None. |
|
| BudgetId | globally unique identifier |
None. |
|
| CreditId | globally unique identifier |
None. |
|
| PaymentResponseId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "8d83ef6d-2797-4b35-96f6-cbfe4a946a75",
"UserId": "13b6e118-6a9e-410c-b631-e0bacd016afd",
"OrderId": "10dda57e-3c51-460e-99e2-c58ab12c33be",
"TransactionAmount": 3.0,
"TransactionDescription": "sample string 4",
"TransactionDateUtc": "2026-08-28T13:46:21.9387727+00:00",
"TransactionType": 0,
"BudgetId": "127d9f20-9f40-4621-b78e-d08489b8c996",
"CreditId": "e42b3e2e-3d3b-4db0-8b38-ddac35baca11",
"PaymentResponseId": 1
}
application/xml, text/xml
Sample:
<TransactionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Pay.Models"> <BudgetId>127d9f20-9f40-4621-b78e-d08489b8c996</BudgetId> <CreditId>e42b3e2e-3d3b-4db0-8b38-ddac35baca11</CreditId> <Id>8d83ef6d-2797-4b35-96f6-cbfe4a946a75</Id> <OrderId>10dda57e-3c51-460e-99e2-c58ab12c33be</OrderId> <PaymentResponseId>1</PaymentResponseId> <TransactionAmount>3</TransactionAmount> <TransactionDateUtc>2026-08-28T13:46:21.9387727+00:00</TransactionDateUtc> <TransactionDescription>sample string 4</TransactionDescription> <TransactionType>Budget</TransactionType> <UserId>13b6e118-6a9e-410c-b631-e0bacd016afd</UserId> </TransactionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.