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": "1de06bf0-c7bd-4bd5-b0c9-37e2efe6b357",
"UserId": "651f1f6b-4c3a-4082-96a4-a6a030d82eff",
"OrderId": "77211cf2-e91d-4d71-8845-b734a34fc51e",
"TransactionAmount": 3.0,
"TransactionDescription": "sample string 4",
"TransactionDateUtc": "2026-03-16T13:47:46.7035417+00:00",
"TransactionType": 0,
"BudgetId": "a6dba724-beb9-475e-8f3b-4055f436a76b",
"CreditId": "290d676d-6d9a-46b6-9019-87b9f7357e1a",
"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>a6dba724-beb9-475e-8f3b-4055f436a76b</BudgetId> <CreditId>290d676d-6d9a-46b6-9019-87b9f7357e1a</CreditId> <Id>1de06bf0-c7bd-4bd5-b0c9-37e2efe6b357</Id> <OrderId>77211cf2-e91d-4d71-8845-b734a34fc51e</OrderId> <PaymentResponseId>1</PaymentResponseId> <TransactionAmount>3</TransactionAmount> <TransactionDateUtc>2026-03-16T13:47:46.7035417+00:00</TransactionDateUtc> <TransactionDescription>sample string 4</TransactionDescription> <TransactionType>Budget</TransactionType> <UserId>651f1f6b-4c3a-4082-96a4-a6a030d82eff</UserId> </TransactionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.