Transactions
post https://api.cryptomus.com/v2/user-api/transaction/list Copy
Request
Query parameters
| Name | Parameter type | Definition |
|---|---|---|
| date_from | string | Filtering by creation date, from (format: "YYYY-MM-DD H:mm:ss") |
| date_to | string | Filtering by creation date, to (format: "YYYY-MM-DD H:mm:ss") |
| type | string | Transaction type |
Parameter type
stringDefinition
Filtering by creation date, from (format: "YYYY-MM-DD H:mm:ss")Parameter type
stringDefinition
Filtering by creation date, to (format: "YYYY-MM-DD H:mm:ss")Parameter type
stringDefinition
Transaction type
Request example
curl https://api.cryptomus.com/v2/user-api/transaction/list \
-X POST \
-H 'userId: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json' \
-d '{
"date_from": "2023-05-16 00:00:00",
"date_to": "2023-05-16 23:59:59",
"type": "payment"
}'CopyTypes
Request types
| Name | Definition |
|---|---|
| payment | Payment transactions |
| payout | Payout transactions |
| transfer | Transfer from/to Business wallet transactions |
Definition
Payment transactionsDefinition
Payout transactionsDefinition
Transfer from/to Business wallet transactions
Response
Response parameters
Items response parameters
| Name | Parameter type | Definition |
|---|---|---|
| uuid | string | Transaction UUID |
| type | string | Transaction type |
| status | string|null | Structure |
| created_at | string | Transaction time |
| amount | string | Amount |
| amount_equivalent | string|null | Amount in equivalent |
| currency_equivalent | string|null | Currency equivalent amount (Currency set in your personal account) |
| currency | string | Currency code |
| network | string|null | Blockchain network code |
| txid | string|null | Transaction Hash |
| address | string|null | Wallet address for payment |
| comment | string|null | Commentary |
Parameter type
stringDefinition
Transaction UUIDParameter type
stringDefinition
Transaction typeParameter type
string|nullDefinition
StructureParameter type
stringDefinition
Transaction timeParameter type
stringDefinition
AmountParameter type
string|nullDefinition
Amount in equivalentParameter type
string|nullDefinition
Currency equivalent amount (Currency set in your personal account)Parameter type
stringDefinition
Currency codeParameter type
string|nullDefinition
Blockchain network codeParameter type
string|nullDefinition
Transaction HashParameter type
string|nullDefinition
Wallet address for paymentParameter type
string|nullDefinition
Commentary
Paginate response parameters
| Name | Parameter type | Definition |
|---|---|---|
| count | integer | Number of items on the current page |
| hasPages | boolean | Whether there are enough elements to split into multiple pages (true / false) |
| nextCursor | string|null | Cursor to next page |
| previousCursor | string|null | Cursor to previous page |
| perPage | integer | Maximum number of elements per page |
Parameter type
integerDefinition
Number of items on the current pageParameter type
booleanDefinition
Whether there are enough elements to split into multiple pages (true / false)Parameter type
string|nullDefinition
Cursor to next pageParameter type
string|nullDefinition
Cursor to previous pageParameter type
integerDefinition
Maximum number of elements per page
Status response parameters
| Name | Definition |
|---|---|
| check | Waiting for the transaction to appear on the blockchain |
| paid | The transaction was successful |
| fail | Transaction error |
| cancel | Transaction cancelled |
| locked | Funds are locked due to the AML program |
Definition
Waiting for the transaction to appear on the blockchainDefinition
The transaction was successfulDefinition
Transaction errorDefinition
Transaction cancelledDefinition
Funds are locked due to the AML program
To get the records of the next/previous page, specify the next/previous cursor hash in the query parameters (?cursor=<nextCursorHash>)
Example:
curl https://api.cryptomus.com/v2/user-api/transaction/list?cursor=eyJpZCI6MjEyLCJ fcG9pbnRzVzVG9OZhXh0SXRlbXMiOnRydWV9 \
-X POST \
-H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: f80fa426a89eb62bd53997326865d850' \
-H 'Content-Type: application/json' \
-d '{}'CopyResponse example
1{
2 "state": 0,
3 "result": {
4 "items": [
5 {
6 "uuid": "3a3efbe5-4835-48f3-95c0-7b63e2c8a0b6",
7 "type": "transfer",
8 "status": "paid",
9 "created_at": "2022-07-22T15:11:46.000000Z",
10 "amount": "10.00",
11 "amount_equivalent": "10.1679",
12 "currency_equivalent": "USD",
13 "currency": "USDT",
14 "network": null,
15 "txid": null,
16 "address": null,
17 "comment": null
18 },
19 {
20 "uuid": "d4953ea1-6f55-46f1-b1c9-f72c04badc45",
21 "type": "payout",
22 "status": "paid",
23 "created_at": "2022-09-01T14:46:44.000000Z",
24 "amount": "10.00",
25 "amount_equivalent": "10.1679",
26 "currency_equivalent": "USD",
27 "currency": "USDT",
28 "network": "tron",
29 "txid": null,
30 "address": "TSV1JBNzp71tucPrEsRPG5iLD1DkftzWzF",
31 "comment": null
32 },
33 {
34 "uuid": "690f745a-6b0c-42e1-a6ee-0de34485cab7",
35 "type": "payment",
36 "status": "fail",
37 "created_at": "2022-09-02T08:32:03.000000Z",
38 "amount": "2.00",
39 "amount_equivalent": "10.63359",
40 "currency_equivalent": "USD",
41 "currency": "USDT",
42 "network": "tron",
43 "txid": null,
44 "address": "TSV1JBNzp71tucPrEsRPG5iLD1DkftzWzF",
45 "comment": null
46 }
47 ],
48 "paginate": {
49 "count": 3,
50 "hasPages": true,
51 "nextCursor": "eyJpdiI6IlFIZnd5Lzd0VUN3TGtUNUF6ckV5TEE9PSIsInZhbHVlIjoiUHcvZm1rWmRqdDVKL25NMW5EVEQ1OW9JS0NiSjhJcHd1byt5SGhmVG95UjhGaUlCa3djT1ZSOU5Lc29Id3B3bC80T0VBSnhhZEZBWk1yZUN5RTByN2pKK0dNVUZ0QnFlcThwMU93d0NSR2pXMHJOQWZIa3N6cStmT0YxOG9VVDJyT1Q2NmVhbU9JU1N6cTJsM3JLTitRPT0iLCJtYWMiOiI2M2E4OWVmZTk3MDNjYzUwNjY0ZWY4ZjcxMjUyOGUzMmI4NzNkNWU4YzNlYmUxNmNmMThhM2JhN2RjNTkyYjgxIiwidGFnIjoiIn0=",
52 "previousCursor": null,
53 "perPage": 15
54 }
55 }
56}
57 Copy