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": "569cbd30-9647-40b6-ace0-285fb3bb686f",
"UserId": "3e54597e-a9b4-41d8-8b87-3a4854f43b1d",
"OrderId": "92fb8ca9-ef12-49e9-b137-796b6fe6dc88",
"TransactionAmount": 3.0,
"TransactionDescription": "sample string 4",
"TransactionDateUtc": "2026-10-23T12:43:52.2916379+00:00",
"TransactionType": 0,
"BudgetId": "e7cc74c8-7ff0-4c39-b465-60dabd702466",
"CreditId": "43e727ea-e004-4aa6-b927-f4acffc6d6e4",
"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>e7cc74c8-7ff0-4c39-b465-60dabd702466</BudgetId> <CreditId>43e727ea-e004-4aa6-b927-f4acffc6d6e4</CreditId> <Id>569cbd30-9647-40b6-ace0-285fb3bb686f</Id> <OrderId>92fb8ca9-ef12-49e9-b137-796b6fe6dc88</OrderId> <PaymentResponseId>1</PaymentResponseId> <TransactionAmount>3</TransactionAmount> <TransactionDateUtc>2026-10-23T12:43:52.2916379+00:00</TransactionDateUtc> <TransactionDescription>sample string 4</TransactionDescription> <TransactionType>Budget</TransactionType> <UserId>3e54597e-a9b4-41d8-8b87-3a4854f43b1d</UserId> </TransactionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.