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": "a3b2a309-2d0f-46c0-871f-5dfd33d0d363",
"UserId": "36f721c6-67c4-49bc-b57d-a6fa1d5f7cf9",
"OrderId": "8782c610-3e8b-4feb-b5a5-aa2460015778",
"TransactionAmount": 3.0,
"TransactionDescription": "sample string 4",
"TransactionDateUtc": "2026-07-04T13:54:56.6353087+00:00",
"TransactionType": 0,
"BudgetId": "13a0af19-8f51-4ba2-802b-1df261334ae7",
"CreditId": "140d41c4-7332-4efd-9fcd-f8b7a271bc96",
"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>13a0af19-8f51-4ba2-802b-1df261334ae7</BudgetId> <CreditId>140d41c4-7332-4efd-9fcd-f8b7a271bc96</CreditId> <Id>a3b2a309-2d0f-46c0-871f-5dfd33d0d363</Id> <OrderId>8782c610-3e8b-4feb-b5a5-aa2460015778</OrderId> <PaymentResponseId>1</PaymentResponseId> <TransactionAmount>3</TransactionAmount> <TransactionDateUtc>2026-07-04T13:54:56.6353087+00:00</TransactionDateUtc> <TransactionDescription>sample string 4</TransactionDescription> <TransactionType>Budget</TransactionType> <UserId>36f721c6-67c4-49bc-b57d-a6fa1d5f7cf9</UserId> </TransactionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.