POST api/Transactions

Creates a transaction.

Request Information

URI Parameters

None.

Body Parameters

The transaction model to create with.

TransactionDto
NameDescriptionTypeAdditional 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": "3cd35987-66d8-4a93-89ac-49e187fd68c5",
  "UserId": "77e486ea-f2e8-4701-9934-e1df17dbbfcb",
  "OrderId": "3273d4d5-316a-4de2-acf4-c484c2ac22ac",
  "TransactionAmount": 3.0,
  "TransactionDescription": "sample string 4",
  "TransactionDateUtc": "2025-12-06T02:25:04.427507+00:00",
  "TransactionType": 0,
  "BudgetId": "25eeeff1-d3e9-4f6e-b80b-d3097a5d564b",
  "CreditId": "dbef69cf-1baf-419c-bcd8-b222705c4d52",
  "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>25eeeff1-d3e9-4f6e-b80b-d3097a5d564b</BudgetId>
  <CreditId>dbef69cf-1baf-419c-bcd8-b222705c4d52</CreditId>
  <Id>3cd35987-66d8-4a93-89ac-49e187fd68c5</Id>
  <OrderId>3273d4d5-316a-4de2-acf4-c484c2ac22ac</OrderId>
  <PaymentResponseId>1</PaymentResponseId>
  <TransactionAmount>3</TransactionAmount>
  <TransactionDateUtc>2025-12-06T02:25:04.427507+00:00</TransactionDateUtc>
  <TransactionDescription>sample string 4</TransactionDescription>
  <TransactionType>Budget</TransactionType>
  <UserId>77e486ea-f2e8-4701-9934-e1df17dbbfcb</UserId>
</TransactionDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.