Transactions
The following endpoints are use to create and retrieve transactions from the system.
The transaction
object
transaction
objectThe transaction
object represents an operation (deposit or withdrawal) executed by it's identity owner.
Transaction entity model
amount
String
Transaction amount.
Not Null
appId
String
Application ID. Format: uuid
.
code
String
Transaction code.
Enum:[deposit:stablecoin:usdc
, deposit:wire:usd
]
createdAt
DateTime
Transaction created at date.
Not Null
currency
String
Transaction currency.
Enum:[USD
]
deletedAt
DateTime
Transaction deleted at date.
destinationAddress
String
Transaction destination address.
addressId
String
Transaction address id.
externalReference
String
Transaction external reference.
id
String
Transaction identifier. Format: uuid
.
Not Null
identityId
String
Transaction identity owner. Format: uuid
metadata
Object
Transaction metadata.
originAddress
String
Transaction origin address.
status
String
Transaction status.
Enum:[pending
, approved
, confirmed
, failed
, canceled
, review
]
transactionHash
String
Transaction hash.
type
String
Transaction type.
Enum:[deposit
, transfer
, withdrawal
]
updatedAt
DateTime
Transaction updated at date.
Not Null
Get the list of all transactions
GET /transactions
Get transactions list.
Available filters
addressId
default
filter[addressId]=foobar
code
default,in,nin
filter[code]=in:foobar
currency
default,in,nin
filter[currency]=nin:foobar
destinationAddress
default,in,nin
filter[destinationAddress]=foobar
earnDistributionId
default
filter[earnDistributionId]=foobar
id
default,in,nin
filter[id]=foobar
identityId
default,in,nin
filter[identityId]=foobar
originAddress
default,in,nin
filter[originAddress]=foobar
originTransactionId
default
filter[originTransactionId]=foobar
status
default,in,nin
filter[status]=in:foobar
transactionHash
default,in,nin
filter[transactionHash]=in:foobar
type
default,in,nin
filter[type]=in:foobar
Available sorts
createdAt
sort=createdAt
sort=-createdAt
updatedAt
sort=updatedAt
sort=-updatedAt
Available includes
address
include=address
Paginate options
size
Defines the number of results per page. Default = 30.
page[size]=2
number
Defines the number of the page to retrieve. Default = 1
page[number]=2
all
Return all identities without pagination
all=true
Response Options
200 OK
Request example:
Response example:
Get one specific transaction
GET /transactions/:id
Get transaction by id.
Available includes
address
include=address
Response Options
400 Bad Request
validation_failed
If id is invalid.
404 Not Found
transaction_not_found
200 OK
Request example:
Response example:
Create a new transaction
POST /transactions
Creates a transaction.
Request Parameters
Body parameters
amount
String
Transaction amount.
Not null
true
chain
String
Transaction chain.
[ALGO
,AVAX
,ETH
,SOL
,TRX
,XLM
]. Only for stablecoin transactions
code
String
Transaction code.
[deposit:stablecoin:usdc
,deposit:wire:usd
]
true
currency
String
Transaction currency
[USD
]
true
destinationAddress
String
Transaction destination address.
true
identityId
String
Transaction identity owner. Format: uuid
true
originAddress
String
Transaction origin address.
paymentMethod
String
Transaction payment method.
[wire
,internationalWire
]. Only for Wire transactions
Response Options
400 Bad Request
validation_failed
If the required parameters are not provided.
If additional parameters are provided.
If some of the parameters type is invalid.
If some of the parameters constraints is not respected.
422 Unprocessable Entity
chain_is_not_available
If the request chain is not active.
200 OK
Request example:
Response example:
Request example:
Response example:
Last updated