v1

latestOpenAPI 3.0.02026-07-17339.2 KB
ledger

Create Transactions

Create Transactions

Creates a Transaction.

post/transactions

Headers

Content-Typestring

Request body

fromstring required

The id of payer of the transaction. It can be any id you choose, if never used before, it will be created.

tostring required

The id of payee of the transaction. It can be any id you choose, if never used before, it will be created.

metadatastring[]

A list of metadata you can add to the transaction.

amountinteger required
currencystring required

Example request

{
  "from": "acc_0o5Fs0EELR0fUjHjbCnEtdUwQe3",
  "to": "acc_1ujtsdegvSTl8PAuAdqWYSMnLOv"
}

Response

The Transaction object created.

idstring uuid required

The id of the transaction.

fromstring required

The id of payer of the transaction. It can be any id you choose, if never used before, it will be created.

tostring required

The id of payee of the transaction. It can be any id you choose, if never used before, it will be created.

datestring date-time required

The date the transaction was created.

metadatastring[]

A list of metadata you can add to the transaction.

amountinteger required
currencystring required

Example response

{
  "from": "acc_0o5Fs0EELR0fUjHjbCnEtdUwQe3",
  "to": "acc_1ujtsdegvSTl8PAuAdqWYSMnLOv"
}