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.
Name
Example
amount
sort=amountsort=-amount
createdAt
sort=createdAtsort=-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
{"data": [ {"amount":"10.00000000","assetCode":"usd","code":"internal","createdAt":"2019-07-20T14:30:37.483Z","customData": {},"description":"A withdrawal transaction so `destinationWalletId` is `null`","destinationAddress":null,"destinationWalletId":null,"externalId":null,"externalReference":null,"id":"02731cf6-7452-424b-905e-f11d05715585","metadata": {},"originAddress":null,"originWalletId":"2c9cf763-4103-4b5e-9e44-d350af41117a","status":"pending","type":"withdrawal","updatedAt":"2019-07-20T14:30:37.483Z" }, {"amount":"1234.5678","assetCode":"biz","code":"internal","createdAt":"2019-07-20T14:30:37.483Z","customData": {},"description":"A deposit transaction so `originWalletId` field is `null`","destinationAddress":null,"destinationWalletId":"2a5489f2-73a5-4cba-a6b2-0b77b1ad94ce","externalId":null,"externalReference":null,"id":"6042126c-9f63-4e47-b336-55ee56493826","metadata": { "foo":"bar" },"originAddress":null,"originWalletId":null,"status":"rejected","type":"deposit","updatedAt":"2019-07-20T14:30:37.483Z" } ],"total": 1}
GET /transactions/:id
GET https://api.slyk.io/transactions/:id
Retrieves the transactions of the given id.
{"data": {"amount":"10.00","assetCode":"usd","code":"internal","createdAt":"2019-07-20T14:30:37.483Z","customData": {},"description":"A deposit transaction so `originWalletId` field is `null`","destinationAddress":null,"destinationWalletId":"2a5489f2-73a5-4cba-a6b2-0b77b1ad94ce","externalId":null,"externalReference":null,"id":"35589275-5db3-4b99-88cc-0bbdaa94ae8f","metadata": {},"originAddress":null,"originWalletId":null,"status":"rejected","type":"deposit","updatedAt":"2019-07-20T14:30:37.483Z" }}
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.
{"data": {"amount":"9800.00000000","assetCode":"eur","code":"bank:wire","createdAt":"2019-07-20T14:30:37.483Z","customData": {"month":"03","year":"2020" }"description": "Salary","destinationAddress":null,"destinationWalletId":null,"externalId":null,"externalReference":null,"id":"35589275-5db3-4b99-88cc-0bbdaa94ae8f","metadata": {"transactionData": {"bankAddress":"Tussen Meer 375C, 1069 DR Amsterdam","bankName":"IGN","country":"Netherlands","iban":"NL64INGB8219153XXX","swiftCode":"INGBNL2AXXX" } },"originAddress":null,"originWalletId":"167d4b2b-5607-47d1-b54a-fb9036bf40dd","status":"processing","type":"withdrawal","updatedAt":"2019-07-20T14:30:37.483Z" } }}
POST /transactions/:id/confirm
POST https://api.slyk.io/transactions/:id/confirm
Confirms the transaction of the given id.
{"data": {"amount":"9800.00000000","assetCode":"eur","code":"bank:wire","createdAt":"2019-07-20T14:30:37.483Z","customData": {"month":"03","year":"2020" }"description": "Salary","destinationAddress":null,"destinationWalletId":null,"externalId":null,"externalReference":null,"id":"35589275-5db3-4b99-88cc-0bbdaa94ae8f","metadata": {"transactionData": {"bankAddress":"Tussen Meer 375C, 1069 DR Amsterdam","bankName":"IGN","country":"Netherlands","iban":"NL64INGB8219153XXX","swiftCode":"INGBNL2AXXX" } },"originAddress":null,"originWalletId":"167d4b2b-5607-47d1-b54a-fb9036bf40dd","status":"completed","type":"withdrawal","updatedAt":"2019-07-20T14:30:37.483Z" }}
POST /transactions/:id/fail
POST https://api.slyk.io/transactions/:id/fail
Fails the transaction of the given id.
Field
Type
Required
Description
reason
string
false
Fail reason.
{"reason": "Invalid IBAN."}
{"data": {"amount":"9800.00000000","assetCode":"eur","code":"bank:wire","createdAt":"2019-07-20T14:30:37.483Z","customData": {"month":"03","year":"2020" }"description": "Salary","destinationAddress":null,"destinationWalletId":null,"externalId":null,"externalReference":null,"id":"35589275-5db3-4b99-88cc-0bbdaa94ae8f","metadata": {"failReason":"Invalid IBAN.","transactionData": {"bankAddress":"Tussen Meer 375C, 1069 DR Amsterdam","bankName":"IGN","country":"Netherlands","iban":"NL64INGB8219153XXX","swiftCode":"INGBNL2AXXX" } },"originAddress":null,"originWalletId":"167d4b2b-5607-47d1-b54a-fb9036bf40dd","status":"processing","type":"withdrawal","updatedAt":"2019-07-20T14:30:37.483Z" } }}
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.
Field
Type
Required
Description
reason
string
false
Reject reason.
{"reason": "Wrong amount."}
{"data": {"amount":"9800.00000000","assetCode":"eur","code":"bank:wire","createdAt":"2019-07-20T14:30:37.483Z","customData": {"month":"03","year":"2020" }"description": "Salary","destinationAddress":null,"destinationWalletId":null,"externalId":null,"externalReference":null,"id":"35589275-5db3-4b99-88cc-0bbdaa94ae8f","metadata": {"rejectedReason":"Wrong amount.","transactionData": {"bankAddress":"Tussen Meer 375C, 1069 DR Amsterdam","bankName":"IGN","country":"Netherlands","iban":"NL64INGB8219153XXX","swiftCode":"INGBNL2AXXX" } },"originAddress":null,"originWalletId":"167d4b2b-5607-47d1-b54a-fb9036bf40dd","status":"rejected","type":"withdrawal","updatedAt":"2019-07-20T14:30:37.483Z" }}
POST /transactions/deposit
POST https://api.slyk.io/transactions/deposit
Creates a new deposit transaction.
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 codemethod.
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.