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": "f32eed0d-5e8b-45a7-9131-27294762458e",
"UserId": "59468380-2e64-4f20-8c1d-9d5e50b84640",
"OrderId": "aee4cece-2bb6-415d-adf4-98aa079e05d3",
"TransactionAmount": 3.0,
"TransactionDescription": "sample string 4",
"TransactionDateUtc": "2026-01-21T09:39:00.1949481+00:00",
"TransactionType": 0,
"BudgetId": "c6ebf205-a1ab-4a59-a37e-b92e2ba220e6",
"CreditId": "a8e512a4-3d2a-4098-9480-f300bf78ef6b",
"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>c6ebf205-a1ab-4a59-a37e-b92e2ba220e6</BudgetId> <CreditId>a8e512a4-3d2a-4098-9480-f300bf78ef6b</CreditId> <Id>f32eed0d-5e8b-45a7-9131-27294762458e</Id> <OrderId>aee4cece-2bb6-415d-adf4-98aa079e05d3</OrderId> <PaymentResponseId>1</PaymentResponseId> <TransactionAmount>3</TransactionAmount> <TransactionDateUtc>2026-01-21T09:39:00.1949481+00:00</TransactionDateUtc> <TransactionDescription>sample string 4</TransactionDescription> <TransactionType>Budget</TransactionType> <UserId>59468380-2e64-4f20-8c1d-9d5e50b84640</UserId> </TransactionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.