Transaction
Last updated
Last updated
GET /transactions
GET
https://api.slyk.io/transactions
Retrieves a paginated list of transactions
.
The description
filter performs a SQL
query using the like
operator.
The walletId
filter will return any transaction where its set as destinationWalletId
or originWalletId
.
GET /transactions/:id
GET
https://api.slyk.io/transactions/:id
Retrieves the transactions
of the given id
.
POST /transactions/:id/approve
POST
https://api.slyk.io/transactions/:id/approve
Approves the transaction
of the given id
.
Its only possible to approve transactions that are pending
.
POST /transactions/:id/confirm
POST
https://api.slyk.io/transactions/:id/confirm
Confirms the transaction
of the given id
.
POST /transactions/:id/fail
POST
https://api.slyk.io/transactions/:id/fail
Fails the transaction
of the given id
.
POST /transactions/:id/reject
POST
https://api.slyk.io/transactions/:id/reject
Rejects the transaction
of the given id
.
Its only possible to reject transactions that are pending
.
POST /transactions/deposit
POST
https://api.slyk.io/transactions/deposit
Creates a new deposit
transaction.
POST /transactions/pay
POST
https://api.slyk.io/transactions/pay
Creates a new transfer
transaction with the code set to pay
and set the defaultWalletId
as the destinationWalletId
.
POST /transactions/transfer
POST
https://api.slyk.io/transactions/transfer
Creates a new transfer
transaction.
POST /transactions/withdrawal
POST
https://api.slyk.io/transactions/withdrawal
Creates a new withdrawal
transaction.
Name
Type
Example
assetCode
=
in
nin
filter[assetCode]=in:USD,EUR,BTC
code
=
in
nin
filter[code]=in:internal,bank:wire
createdAt
=
gte
lte
filter[createdAt]=lte:2019-07-21
description
like
filter[description]=some description excerpt
destinationWalletId
=
in
nin
filter[destinationWalletId]=705af61e-1387-49b0-90f8-45c39fe56686
externalId
=
in
nin
filter[externalId]=in:3feaac72-7330-4b32-9801-28b6f69aaf25,705af61e-1387-49b0-90f8-45c39fe56686
externalReference
=
filter[externalReference]=thud
id
=
in
nin
filter[id]=nin:802a5163-7ad3-4047-b600-088c1f746733,9d3bed88-34b6-4a06-aa79-ed4b32ba0d44
originWalletId
=
in
nin
filter[originWalletId]=705af61e-1387-49b0-90f8-45c39fe56686
reference
=
filter[originWalletId]=waldo
status
=
in
nin
filter[status]=nin:pending,failed,rejected
type
=
in
nin
filter[type]=in:deposit
walletId
=
in
nin
filter[walletId]=802a5163-7ad3-4047-b600-088c1f746733
Name
Example
amount
sort=amount
sort=-amount
createdAt
sort=createdAt
sort=-createdAt
Name
Description
Example
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
Field
Type
Required
Description
reason
string
false
Fail reason.
Field
Type
Required
Description
reason
string
false
Reject reason.
Field
Type
Required
Description
amount
string
true
Transacted amount.
assetCode
string
true
Code of the asset being transacted.
code
string
true
Defines through which feature
and method
the assets will be deposited (more information below).
commit
boolean
false
Transaction is created already as processing
. Only available for crypto
, bank
and internal
code features. Default: false
.
customData
object
false
Stores any additional information the user may provide.
data
object
true
May contain necessary data for the payment gateway. The information required in this field depends on the provided code
method
.
description
string
false
A free text field.
destinationAddress
string
false
Destination address.
destinationWalletId
string
true
ID of the wallet where the assets are being deposited. Format: uuid
.
externalReference
string
false
External reference.
Feature
Methods
Example
apm
paypal
apm:paypal
bank
wire
bank:wire
card
stripe
card:stripe
crypto
coinbase
, ethereum
crypto:bitcoin
internal
-
internal
Name
Type
Required
Description
amount
string
true
Transacted amount.
assetCode
string
true
Code of the asset being transacted.
customData
object
false
Stores any additional information the user may provide.
description
string
false
A free text field.
originWalletId
string
true
ID of the wallet from where the assets are coming. Format: uuid
.
Field
Type
Required
Description
amount
string
true
Transacted amount.
assetCode
string
true
Code of the asset being transacted.
code
string
true
Defines through which feature
and method
the assets will be transfered.
commit
boolean
false
Confirms the transaction on creation. Default: false
.
customData
object
false
Stores any additional information the user may provide.
description
string
false
A free text field.
destinationAddress
string
false
Destination address.
destinationWalletId
string
true
ID of the wallet where the assets are being deposited. Format: uuid
.
externalReference
string
false
External Reference.
originAddress
string
false
Origin address.
originWalletId
string
true
ID of the wallet from where the assets are coming. Format: uuid
.
Feature
Methods
Example
internal
-
internal
Field
Type
Required
Description
amount
string
true
Transacted amount.
assetCode
string
true
Code of the asset being transacted.
code
enum<string>
true
Defines through which feature
and method
the assets will be withdrawn (there are more informations about it following this table).
commit
boolean
false
Transaction is created already as processing
. Only available for crypto
, bank
and internal
code features. Default: false
.
customData
object
false
Stores any additional information the user may provide.
description
string
false
A free text field.
externalReference
string
false
External Reference.
originAddress
string
false
Origin address.
originWalletId
string
true
ID of the wallet from where the assets are coming. Format: uuid
.
Feature
Methods
Example
bank
wire
bank:wire
internal
-
internal