Transactions

post https://api.cryptomus.com/v2/user-api/transaction/list Copy

Request

Query parameters

NameParameter typeDefinition
date_fromstringFiltering by creation date, from (format: "YYYY-MM-DD H:mm:ss")
date_tostringFiltering by creation date, to (format: "YYYY-MM-DD H:mm:ss")
typestringTransaction type

Parameter type

string

Definition

Filtering by creation date, from (format: "YYYY-MM-DD H:mm:ss")

Parameter type

string

Definition

Filtering by creation date, to (format: "YYYY-MM-DD H:mm:ss")

Parameter type

string

Definition

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"
  }'
Copy

Types

Request types

NameDefinition
paymentPayment transactions
payoutPayout transactions
transferTransfer from/to Business wallet transactions

Definition

Payment transactions

Definition

Payout transactions

Definition

Transfer from/to Business wallet transactions

Response

Response parameters

NameParameter typeDefinition
itemsarray Structure
paginateobject Structure

Parameter type

array

Definition

Structure

Parameter type

object

Definition

Structure

Items response parameters

NameParameter typeDefinition
uuidstringTransaction UUID
typestringTransaction type
statusstring|null Structure
created_atstringTransaction time
amountstringAmount
amount_equivalentstring|nullAmount in equivalent
currency_equivalentstring|nullCurrency equivalent amount (Currency set in your personal account)
currencystringCurrency code
networkstring|nullBlockchain network code
txidstring|nullTransaction Hash
addressstring|nullWallet address for payment
commentstring|nullCommentary

Parameter type

string

Definition

Transaction UUID

Parameter type

string

Definition

Transaction type

Parameter type

string|null

Definition

Structure

Parameter type

string

Definition

Transaction time

Parameter type

string

Definition

Amount

Parameter type

string|null

Definition

Amount in equivalent

Parameter type

string|null

Definition

Currency equivalent amount (Currency set in your personal account)

Parameter type

string

Definition

Currency code

Parameter type

string|null

Definition

Blockchain network code

Parameter type

string|null

Definition

Transaction Hash

Parameter type

string|null

Definition

Wallet address for payment

Parameter type

string|null

Definition

Commentary

Paginate response parameters

NameParameter typeDefinition
countintegerNumber of items on the current page
hasPagesbooleanWhether there are enough elements to split into multiple pages (true / false)
nextCursorstring|nullCursor to next page
previousCursorstring|nullCursor to previous page
perPageintegerMaximum number of elements per page

Parameter type

integer

Definition

Number of items on the current page

Parameter type

boolean

Definition

Whether there are enough elements to split into multiple pages (true / false)

Parameter type

string|null

Definition

Cursor to next page

Parameter type

string|null

Definition

Cursor to previous page

Parameter type

integer

Definition

Maximum number of elements per page

Status response parameters

NameDefinition
checkWaiting for the transaction to appear on the blockchain
paidThe transaction was successful
failTransaction error
cancelTransaction cancelled
lockedFunds are locked due to the AML program

Definition

Waiting for the transaction to appear on the blockchain

Definition

The transaction was successful

Definition

Transaction error

Definition

Transaction cancelled

Definition

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 '{}'
Copy

Response 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