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": "97f1849e-5d33-4ee3-9797-ec46ced34e65",
"UserId": "dc104e36-a420-4a82-9982-5f3712b5c2b3",
"OrderId": "29a9b144-b99f-464b-a654-b3d9aaf88e52",
"TransactionAmount": 3.0,
"TransactionDescription": "sample string 4",
"TransactionDateUtc": "2026-07-04T14:02:31.2201079+00:00",
"TransactionType": 0,
"BudgetId": "6059fbd3-ed23-4cfb-a3f5-96c91643bddc",
"CreditId": "1f1afecf-7722-4fe9-9af8-f0802bac42ff",
"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>6059fbd3-ed23-4cfb-a3f5-96c91643bddc</BudgetId> <CreditId>1f1afecf-7722-4fe9-9af8-f0802bac42ff</CreditId> <Id>97f1849e-5d33-4ee3-9797-ec46ced34e65</Id> <OrderId>29a9b144-b99f-464b-a654-b3d9aaf88e52</OrderId> <PaymentResponseId>1</PaymentResponseId> <TransactionAmount>3</TransactionAmount> <TransactionDateUtc>2026-07-04T14:02:31.2201079+00:00</TransactionDateUtc> <TransactionDescription>sample string 4</TransactionDescription> <TransactionType>Budget</TransactionType> <UserId>dc104e36-a420-4a82-9982-5f3712b5c2b3</UserId> </TransactionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.