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": "10af7867-05c3-4998-8afe-7091b6c31ff1",
"UserId": "b97bf8eb-3f62-4524-a0b7-b175ca5158e8",
"OrderId": "da764ea1-9fec-49cf-866d-ba50f6a39121",
"TransactionAmount": 3.0,
"TransactionDescription": "sample string 4",
"TransactionDateUtc": "2026-03-16T13:54:19.6875439+00:00",
"TransactionType": 0,
"BudgetId": "28e2123e-f997-4a8d-82c7-b215bcbd62cc",
"CreditId": "a2723cc7-3037-4a67-b873-55f79adacadc",
"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>28e2123e-f997-4a8d-82c7-b215bcbd62cc</BudgetId> <CreditId>a2723cc7-3037-4a67-b873-55f79adacadc</CreditId> <Id>10af7867-05c3-4998-8afe-7091b6c31ff1</Id> <OrderId>da764ea1-9fec-49cf-866d-ba50f6a39121</OrderId> <PaymentResponseId>1</PaymentResponseId> <TransactionAmount>3</TransactionAmount> <TransactionDateUtc>2026-03-16T13:54:19.6875439+00:00</TransactionDateUtc> <TransactionDescription>sample string 4</TransactionDescription> <TransactionType>Budget</TransactionType> <UserId>b97bf8eb-3f62-4524-a0b7-b175ca5158e8</UserId> </TransactionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.