Cryptix API (v2.0)
The Cryptix API is organized around REST.
Status Code | Description |
---|---|
200 OK | The request is successful. |
202 Accepted | The server accepted the request and will execute it later. |
401 Unauthorized | Indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource. |
403 Forbidden | Indicates that the server understands the request but refuses to authorize it. |
404 Not Found | Indicates that the server cannot find the requested resource. |
405 Method Not Allowed | Indicates that the server knows the request method, but the target resource doesn't support this method. |
422 Unprocessable Content | Returned when the validation of the resource fails on POST or PUT requests. Response contains errors field with a list of errors. |
429 Too Many Requests | Indicates the user has sent too many requests in a given amount of time ("rate limiting"). |
500 Internal Server Error | Server error. |
List charges
Returns all charges
Authorizations:
query Parameters
order | string Enum: "asc" "desc" Example: order=asc Sort order |
offset | integer >= 0 Default: 0 The number of items to skip before starting to collect the result set. |
limit | integer [ 1 .. 100 ] Default: 25 Example: limit=25 A limit on the number of objects to be returned, between 1 and 100. |
project_id | string <uuid> Example: project_id=2b238efa-5894-4f72-9031-55f9ba500c51 |
external_id | string^[0-9a-zA-Z:._-]{1,255}$ Example: external_id=ABC-123 External ID |
created_at_from | string <date-time> Example: created_at_from=2023-07-28T14:41:09Z CreatedAt from value (inclusive) |
created_at_to | string <date-time> Example: created_at_to=2023-09-01T14:00:00Z CreatedAt to value (exclusive) |
status | string Enum: "new" "pending" "completed" "expired" "unresolved" "resolving" "resolved" "canceled" Example: status=completed |
Responses
Response samples
- 200
- 401
- 422
- 500
{- "success": true,
- "data": {
- "pagination": {
- "order": "asc",
- "total": 100,
- "limit": 25,
- "offset": 0
}, - "data": [
- {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "d23ccf2c-c3f0-414e-a05e-149f0b6902e1",
- "name": "Charge name",
- "description": "More detailed description",
- "pricing_type": "fixed_price",
- "is_resolve_underpaid": true,
- "is_resolve_overpaid": true,
- "external_id": "UW71JD5",
- "status": "new",
- "context": null,
- "created_at": "2023-07-12T14:10:47Z",
- "completes_at": "2023-07-12T14:25:47Z",
- "expires_at": "2023-07-12T17:10:47Z",
- "checkout_id": "20a1e5fe-700e-4cfe-ac43-c8de9c2043aa",
- "invoice_id": "4d395ce9-625b-4c22-8434-0af31ee9abc7",
- "timeline": [
- {
- "time": "2023-07-12T14:10:47Z",
- "status": "new",
- "context": null
}
], - "init_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "merchant_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "pricing": {
- "tron.TRX": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "16",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "rate": "0.077675",
- "amount_rest": "16",
- "amount_paid": "0"
}
}, - "payments": [
- {
- "id": "a5637613-8868-4529-a703-b3850c519881",
- "charge_id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
], - "enabled_crypto": [
- {
- "network": "tron",
- "symbol": "TRX"
}
], - "hosted": {
- "theme": "dark"
}, - "logo": {
- "versions": { }
}, - "image": {
- "versions": { }
}
}
]
}
}
Create a charge
To get paid in cryptocurrency, you need to create a charge object and provide the user with a cryptocurrency address to which they must send cryptocurrency. Once a charge is created a customer must broadcast a payment to the blockchain before the charge expires.
Authorizations:
Request Body schema: application/jsonrequired
project_id required | string <uuid> ID of project |
name | string The charge's name, meant to be displayable to the customer |
description | string The charge's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes |
pricing_type required | string Enum: "fixed_price" "no_price" What type of prices do you want to offer? |
object | |
object Required for pricing_type: fixed_price | |
external_id | string^[0-9a-zA-Z:._-]{1,255}$ A unique string to reference the Charge. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the Charge with your internal systems |
return_url | string <url> If provided, the success page will include a button that redirects your customer to the provided URL |
theme | string Enum: "light" "dark" Payment page theme |
Responses
Callbacks
Request samples
- Payload
{- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "name": "Charge name",
- "description": "More detailed description",
- "pricing_type": "fixed_price",
- "crypto": {
- "network": "tron",
- "symbol": "TRX"
}, - "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "external_id": "UW71JD5",
- "theme": "dark"
}
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "success": true,
- "data": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "d23ccf2c-c3f0-414e-a05e-149f0b6902e1",
- "name": "Charge name",
- "description": "More detailed description",
- "pricing_type": "fixed_price",
- "is_resolve_underpaid": true,
- "is_resolve_overpaid": true,
- "external_id": "UW71JD5",
- "status": "new",
- "context": null,
- "created_at": "2023-07-12T14:10:47Z",
- "completes_at": "2023-07-12T14:25:47Z",
- "expires_at": "2023-07-12T17:10:47Z",
- "checkout_id": "20a1e5fe-700e-4cfe-ac43-c8de9c2043aa",
- "invoice_id": "4d395ce9-625b-4c22-8434-0af31ee9abc7",
- "timeline": [
- {
- "time": "2023-07-12T14:10:47Z",
- "status": "new",
- "context": null
}
], - "init_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "merchant_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "pricing": {
- "tron.TRX": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "16",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "rate": "0.077675",
- "amount_rest": "16",
- "amount_paid": "0"
}
}, - "payments": [
- {
- "id": "a5637613-8868-4529-a703-b3850c519881",
- "charge_id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
], - "enabled_crypto": [
- {
- "network": "tron",
- "symbol": "TRX"
}
], - "hosted": {
- "theme": "dark"
}, - "logo": {
- "versions": { }
}, - "image": {
- "versions": { }
}
}
}
Callback payload samples
{- "id": "b58850d3-fb4a-468c-a16f-be94962d48ae",
- "type": "charge:pending",
- "data": {
- "id": "83ce184b-2f92-4d60-8d56-7016bc121263",
- "name": "Charge name",
- "description": "More detailed description",
- "project_id": "d23ccf2c-c3f0-414e-a05e-149f0b6902e1",
- "pricing_type": "fixed_price",
- "is_resolve_underpaid": true,
- "is_resolve_overpaid": true,
- "external_id": "abc-def",
- "status": "pending",
- "context": "overpaid",
- "created_at": "2023-08-08T10:17:14.804+03:00",
- "completes_at": "2023-08-08T10:25:14.804+03:00",
- "expires_at": "2023-08-08T13:25:14.804+03:00",
- "checkout_id": "20a1e5fe-700e-4cfe-ac43-c8de9c2043aa",
- "invoice_id": "4d395ce9-625b-4c22-8434-0af31ee9abc7",
- "timeline": [
- {
- "time": "2023-07-12T14:10:47Z",
- "status": "new",
- "context": null
}
], - "pricing": {
- "tron.TRX": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "16",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "rate": "0.077675",
- "amount_rest": "16",
- "amount_paid": "0"
}
}, - "payments": [
- {
- "id": "a5637613-8868-4529-a703-b3850c519881",
- "charge_id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
], - "enabled_crypto": [
- {
- "network": "tron",
- "symbol": "TRX"
}
], - "init_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "merchant_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "hosted": {
- "theme": "dark"
}
}, - "created_at": "2023-08-08T10:17:14.815487+03:00"
}
Show a charge
Retrieves the details of a charge that has been previously created.
path Parameters
id required | string <uuid> ID of charge |
Responses
Response samples
- 200
- 422
- 500
{- "success": true,
- "data": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "d23ccf2c-c3f0-414e-a05e-149f0b6902e1",
- "name": "Charge name",
- "description": "More detailed description",
- "pricing_type": "fixed_price",
- "is_resolve_underpaid": true,
- "is_resolve_overpaid": true,
- "external_id": "UW71JD5",
- "status": "new",
- "context": null,
- "created_at": "2023-07-12T14:10:47Z",
- "completes_at": "2023-07-12T14:25:47Z",
- "expires_at": "2023-07-12T17:10:47Z",
- "checkout_id": "20a1e5fe-700e-4cfe-ac43-c8de9c2043aa",
- "invoice_id": "4d395ce9-625b-4c22-8434-0af31ee9abc7",
- "timeline": [
- {
- "time": "2023-07-12T14:10:47Z",
- "status": "new",
- "context": null
}
], - "init_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "merchant_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "pricing": {
- "tron.TRX": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "16",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "rate": "0.077675",
- "amount_rest": "16",
- "amount_paid": "0"
}
}, - "payments": [
- {
- "id": "a5637613-8868-4529-a703-b3850c519881",
- "charge_id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
], - "enabled_crypto": [
- {
- "network": "tron",
- "symbol": "TRX"
}
], - "hosted": {
- "theme": "dark"
}, - "logo": {
- "versions": { }
}, - "image": {
- "versions": { }
}
}
}
List deposits
Lists all deposita
Authorizations:
query Parameters
order | string Enum: "asc" "desc" Example: order=asc Sort order |
offset | integer >= 0 Default: 0 The number of items to skip before starting to collect the result set. |
limit | integer [ 1 .. 100 ] Default: 25 Example: limit=25 A limit on the number of objects to be returned, between 1 and 100. |
project_id | string <uuid> |
network | string (NetworkCrypto) Enum: "ethereum" "bitcoin" "litecoin" "bsc" "tron" "polygon" Example: network=tron |
symbol | string (SymbolCrypto) Enum: "BTC" "ETH" "TRX" "LTC" "BNB" "USDT" "USDC" "DAI" "POL" "TON" Example: symbol=TRX |
Responses
Response samples
- 200
- 400
- 401
- 500
{- "success": true,
- "data": {
- "pagination": {
- "order": "asc",
- "total": 100,
- "limit": 25,
- "offset": 0
}, - "data": [
- {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "is_active": true,
- "created_at": "2023-07-14T10:18:26.752593667Z",
- "exchange_to": {
- "network": "tron",
- "symbol": "USDT"
}
}
]
}
}
Create a deposit
Create a new deposit
Authorizations:
Request Body schema: application/jsonrequired
project_id required | string <uuid> ID of project |
network required | string (NetworkCrypto) Enum: "ethereum" "bitcoin" "litecoin" "bsc" "tron" "polygon" |
symbol required | string (SymbolCrypto) Enum: "BTC" "ETH" "TRX" "LTC" "BNB" "USDT" "USDC" "DAI" "POL" "TON" |
Responses
Callbacks
Request samples
- Payload
{- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "network": "tron",
- "symbol": "TRX"
}
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "success": true,
- "data": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "is_active": true,
- "created_at": "2023-07-14T10:18:26.752593667Z",
- "exchange_to": {
- "network": "tron",
- "symbol": "USDT"
}
}
}
Callback payload samples
{- "id": "b58850d3-fb4a-468c-a16f-be94962d48ae",
- "type": "payment:pending",
- "data": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "deposit_id": "b58850d3-fb4a-468c-a16f-be94962d48ae",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}, - "created_at": "2023-07-14T10:18:26.752593667Z"
}
Show a deposit
Show a single deposit
Authorizations:
path Parameters
id required | string <uuid> ID of deposit |
Responses
Response samples
- 200
- 401
- 422
- 500
{- "success": true,
- "data": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "is_active": true,
- "created_at": "2023-07-14T10:18:26.752593667Z",
- "exchange_to": {
- "network": "tron",
- "symbol": "USDT"
}
}
}
List deposits payments
Lists all deposits payments
Authorizations:
query Parameters
order | string Enum: "asc" "desc" Example: order=asc Sort order |
offset | integer >= 0 Default: 0 The number of items to skip before starting to collect the result set. |
limit | integer [ 1 .. 100 ] Default: 25 Example: limit=25 A limit on the number of objects to be returned, between 1 and 100. |
id | string <uuid> |
deposit_id | string <uuid> |
tx_id | string |
network | string (NetworkCrypto) Enum: "ethereum" "bitcoin" "litecoin" "bsc" "tron" "polygon" Example: network=tron |
symbol | string (SymbolCrypto) Enum: "BTC" "ETH" "TRX" "LTC" "BNB" "USDT" "USDC" "DAI" "POL" "TON" Example: symbol=TRX |
status | string Enum: "pending" "confirmed" "failed" |
aml_level | string Enum: "low" "medium" "high" |
Responses
Response samples
- 200
- 400
- 401
- 500
{- "success": true,
- "data": {
- "pagination": {
- "order": "asc",
- "total": 100,
- "limit": 25,
- "offset": 0
}, - "data": [
- {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "deposit_id": "b58850d3-fb4a-468c-a16f-be94962d48ae",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
]
}
}
List checkouts
Lists all checkouts
Authorizations:
query Parameters
order | string Enum: "asc" "desc" Example: order=asc Sort order |
offset | integer >= 0 Default: 0 The number of items to skip before starting to collect the result set. |
limit | integer [ 1 .. 100 ] Default: 25 Example: limit=25 A limit on the number of objects to be returned, between 1 and 100. |
id | string <uuid> |
project_id | string <uuid> |
pricing_type | string Enum: "fixed_price" "no_price" |
Responses
Response samples
- 200
- 400
- 401
- 500
{- "success": true,
- "data": {
- "pagination": {
- "order": "asc",
- "total": 100,
- "limit": 25,
- "offset": 0
}, - "data": [
- {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "pricing_type": "fixed_price",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "name": "Checkout name",
- "description": "More detailed description",
- "hosted": {
- "theme": "dark"
}
}
]
}
}
Create a checkout
Create a new checkout
Authorizations:
Request Body schema: application/jsonrequired
project_id required | string <uuid> ID of project |
pricing_type required | string Enum: "fixed_price" "no_price" What type of prices do you want to offer? |
object Required for pricing_type: fixed_price | |
name required | string The product’s name, meant to be displayable to the customer |
description required | string The product’s description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes |
return_url | string or null <url> If provided, the success page will include a button that redirects your customer to the provided URL |
theme | string or null Enum: "light" "dark" Payment page theme |
Responses
Request samples
- Payload
{- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "pricing_type": "fixed_price",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "name": "Checkout name",
- "description": "More detailed description",
- "theme": "dark"
}
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "success": true,
- "data": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "pricing_type": "fixed_price",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "name": "Checkout name",
- "description": "More detailed description",
- "hosted": {
- "theme": "dark"
}
}
}
Show a checkout
Show a single checkout
path Parameters
id required | string <uuid> ID of checkout |
Responses
Response samples
- 200
- 401
- 422
- 500
{- "success": true,
- "data": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "pricing_type": "fixed_price",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "name": "Checkout name",
- "description": "More detailed description",
- "hosted": {
- "theme": "dark"
}
}
}
Update a checkout
Update a checkout
Authorizations:
path Parameters
id required | string <uuid> ID of checkout |
Request Body schema: application/jsonrequired
object Required for pricing_type: fixed_price | |
name required | string The product’s name, meant to be displayable to the customer |
description required | string The product’s description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes |
return_url required | string or null <url> The success page will include a button that redirects your customer to the provided URL |
theme required | string or null Enum: "light" "dark" Payment page theme |
Responses
Request samples
- Payload
{- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "name": "Checkout name",
- "description": "More detailed description",
- "theme": "dark"
}
Response samples
- 200
- 400
- 401
- 422
- 500
{- "success": true,
- "data": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "pricing_type": "fixed_price",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "name": "Checkout name",
- "description": "More detailed description",
- "hosted": {
- "theme": "dark"
}
}
}
List invoices
Lists all invoices
Authorizations:
query Parameters
order | string Enum: "asc" "desc" Example: order=asc Sort order |
offset | integer >= 0 Default: 0 The number of items to skip before starting to collect the result set. |
limit | integer [ 1 .. 100 ] Default: 25 Example: limit=25 A limit on the number of objects to be returned, between 1 and 100. |
project_id | string |
status | string Enum: "open" "viewed" "paid" "void" "unresolved" |
id | string |
Responses
Response samples
- 200
- 400
- 401
- 500
{- "success": true,
- "data": {
- "pagination": {
- "order": "asc",
- "total": 100,
- "limit": 25,
- "offset": 0
}, - "data": [
- {
- "id": "4265ff28-bf0f-42d2-a596-94551797d0c8",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "customer_name": "Test Customer",
- "customer_email": "customer@test.com",
- "memo": "Accounting and tax consultation services",
- "status": "viewed",
- "created_at": "2023-07-14T10:18:26.752593667Z",
- "updated_at": "2023-07-14T10:18:26.752593667Z",
- "void_at": "2023-07-14T11:18:26.752593667Z",
- "charge": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "d23ccf2c-c3f0-414e-a05e-149f0b6902e1",
- "name": "Charge name",
- "description": "More detailed description",
- "pricing_type": "fixed_price",
- "is_resolve_underpaid": true,
- "is_resolve_overpaid": true,
- "external_id": "UW71JD5",
- "status": "new",
- "context": null,
- "created_at": "2023-07-12T14:10:47Z",
- "completes_at": "2023-07-12T14:25:47Z",
- "expires_at": "2023-07-12T17:10:47Z",
- "checkout_id": "20a1e5fe-700e-4cfe-ac43-c8de9c2043aa",
- "invoice_id": "4d395ce9-625b-4c22-8434-0af31ee9abc7",
- "timeline": [
- {
- "time": "2023-07-12T14:10:47Z",
- "status": "new",
- "context": null
}
], - "init_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "merchant_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "pricing": {
- "tron.TRX": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "16",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "rate": "0.077675",
- "amount_rest": "16",
- "amount_paid": "0"
}
}, - "payments": [
- {
- "id": "a5637613-8868-4529-a703-b3850c519881",
- "charge_id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
], - "enabled_crypto": [
- {
- "network": "tron",
- "symbol": "TRX"
}
], - "hosted": {
- "theme": "dark"
}, - "logo": {
- "versions": { }
}, - "image": {
- "versions": { }
}
}
}
]
}
}
Create an invoice
To send an invoice in cryptocurrency, you need to create an invoice object and provide the user with the hosted url where they will be able to pay. Once an invoice is viewed at the hosted url, a charge will be generated on the invoice.
Authorizations:
Request Body schema: application/jsonrequired
project_id required | string <uuid> ID of project |
required | object |
customer_name | string The customer’s full name or business name |
customer_email required | string <email> Customer’s email address |
memo | string |
void_after_seconds | integer or null |
Responses
Request samples
- Payload
{- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "customer_name": "Test Customer",
- "customer_email": "customer@test.com",
- "memo": "Accounting and tax consultation services",
- "void_after_seconds": 3600
}
Response samples
- 200
- 400
- 401
- 422
- 500
{- "success": true,
- "data": {
- "id": "4265ff28-bf0f-42d2-a596-94551797d0c8",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "customer_name": "Test Customer",
- "customer_email": "customer@test.com",
- "memo": "Accounting and tax consultation services",
- "status": "viewed",
- "created_at": "2023-07-14T10:18:26.752593667Z",
- "updated_at": "2023-07-14T10:18:26.752593667Z",
- "void_at": "2023-07-14T11:18:26.752593667Z",
- "charge": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "d23ccf2c-c3f0-414e-a05e-149f0b6902e1",
- "name": "Charge name",
- "description": "More detailed description",
- "pricing_type": "fixed_price",
- "is_resolve_underpaid": true,
- "is_resolve_overpaid": true,
- "external_id": "UW71JD5",
- "status": "new",
- "context": null,
- "created_at": "2023-07-12T14:10:47Z",
- "completes_at": "2023-07-12T14:25:47Z",
- "expires_at": "2023-07-12T17:10:47Z",
- "checkout_id": "20a1e5fe-700e-4cfe-ac43-c8de9c2043aa",
- "invoice_id": "4d395ce9-625b-4c22-8434-0af31ee9abc7",
- "timeline": [
- {
- "time": "2023-07-12T14:10:47Z",
- "status": "new",
- "context": null
}
], - "init_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "merchant_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "pricing": {
- "tron.TRX": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "16",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "rate": "0.077675",
- "amount_rest": "16",
- "amount_paid": "0"
}
}, - "payments": [
- {
- "id": "a5637613-8868-4529-a703-b3850c519881",
- "charge_id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
], - "enabled_crypto": [
- {
- "network": "tron",
- "symbol": "TRX"
}
], - "hosted": {
- "theme": "dark"
}, - "logo": {
- "versions": { }
}, - "image": {
- "versions": { }
}
}
}
}
Show an invoice
Retrieves the details of an invoice that has been previously created.
path Parameters
id required | string <uuid> ID of invoice |
Responses
Response samples
- 200
- 401
- 422
- 500
{- "success": true,
- "data": {
- "id": "4265ff28-bf0f-42d2-a596-94551797d0c8",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "customer_name": "Test Customer",
- "customer_email": "customer@test.com",
- "memo": "Accounting and tax consultation services",
- "status": "viewed",
- "created_at": "2023-07-14T10:18:26.752593667Z",
- "updated_at": "2023-07-14T10:18:26.752593667Z",
- "void_at": "2023-07-14T11:18:26.752593667Z",
- "charge": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "d23ccf2c-c3f0-414e-a05e-149f0b6902e1",
- "name": "Charge name",
- "description": "More detailed description",
- "pricing_type": "fixed_price",
- "is_resolve_underpaid": true,
- "is_resolve_overpaid": true,
- "external_id": "UW71JD5",
- "status": "new",
- "context": null,
- "created_at": "2023-07-12T14:10:47Z",
- "completes_at": "2023-07-12T14:25:47Z",
- "expires_at": "2023-07-12T17:10:47Z",
- "checkout_id": "20a1e5fe-700e-4cfe-ac43-c8de9c2043aa",
- "invoice_id": "4d395ce9-625b-4c22-8434-0af31ee9abc7",
- "timeline": [
- {
- "time": "2023-07-12T14:10:47Z",
- "status": "new",
- "context": null
}
], - "init_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "merchant_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "pricing": {
- "tron.TRX": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "16",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "rate": "0.077675",
- "amount_rest": "16",
- "amount_paid": "0"
}
}, - "payments": [
- {
- "id": "a5637613-8868-4529-a703-b3850c519881",
- "charge_id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
], - "enabled_crypto": [
- {
- "network": "tron",
- "symbol": "TRX"
}
], - "hosted": {
- "theme": "dark"
}, - "logo": {
- "versions": { }
}, - "image": {
- "versions": { }
}
}
}
}
Void an invoice
Voids an invoice that has been previously created. Supply the unique invoice ID that was returned when the invoice was created.
Authorizations:
path Parameters
id required | string <uuid> ID of invoice |
Responses
Response samples
- 200
- 400
- 401
- 422
- 500
{- "success": true,
- "data": {
- "id": "4265ff28-bf0f-42d2-a596-94551797d0c8",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "customer_name": "Test Customer",
- "customer_email": "customer@test.com",
- "memo": "Accounting and tax consultation services",
- "status": "viewed",
- "created_at": "2023-07-14T10:18:26.752593667Z",
- "updated_at": "2023-07-14T10:18:26.752593667Z",
- "void_at": "2023-07-14T11:18:26.752593667Z",
- "charge": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "d23ccf2c-c3f0-414e-a05e-149f0b6902e1",
- "name": "Charge name",
- "description": "More detailed description",
- "pricing_type": "fixed_price",
- "is_resolve_underpaid": true,
- "is_resolve_overpaid": true,
- "external_id": "UW71JD5",
- "status": "new",
- "context": null,
- "created_at": "2023-07-12T14:10:47Z",
- "completes_at": "2023-07-12T14:25:47Z",
- "expires_at": "2023-07-12T17:10:47Z",
- "checkout_id": "20a1e5fe-700e-4cfe-ac43-c8de9c2043aa",
- "invoice_id": "4d395ce9-625b-4c22-8434-0af31ee9abc7",
- "timeline": [
- {
- "time": "2023-07-12T14:10:47Z",
- "status": "new",
- "context": null
}
], - "init_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "merchant_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "pricing": {
- "tron.TRX": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "16",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "rate": "0.077675",
- "amount_rest": "16",
- "amount_paid": "0"
}
}, - "payments": [
- {
- "id": "a5637613-8868-4529-a703-b3850c519881",
- "charge_id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
], - "enabled_crypto": [
- {
- "network": "tron",
- "symbol": "TRX"
}
], - "hosted": {
- "theme": "dark"
}, - "logo": {
- "versions": { }
}, - "image": {
- "versions": { }
}
}
}
}
Resolve an invoice
Resolve an invoice that has been previously marked as unresolved. Supply the unique invoice ID that was returned when the invoice was created.
Authorizations:
path Parameters
id required | string <uuid> ID of invoice |
Responses
Response samples
- 200
- 400
- 401
- 422
- 500
{- "success": true,
- "data": {
- "id": "4265ff28-bf0f-42d2-a596-94551797d0c8",
- "project_id": "75b777f0-7a18-4bc9-b828-70ed1574c6b4",
- "fiat_price": {
- "amount": "99.00",
- "symbol": "USD"
}, - "customer_name": "Test Customer",
- "customer_email": "customer@test.com",
- "memo": "Accounting and tax consultation services",
- "status": "viewed",
- "created_at": "2023-07-14T10:18:26.752593667Z",
- "updated_at": "2023-07-14T10:18:26.752593667Z",
- "void_at": "2023-07-14T11:18:26.752593667Z",
- "charge": {
- "id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "project_id": "d23ccf2c-c3f0-414e-a05e-149f0b6902e1",
- "name": "Charge name",
- "description": "More detailed description",
- "pricing_type": "fixed_price",
- "is_resolve_underpaid": true,
- "is_resolve_overpaid": true,
- "external_id": "UW71JD5",
- "status": "new",
- "context": null,
- "created_at": "2023-07-12T14:10:47Z",
- "completes_at": "2023-07-12T14:25:47Z",
- "expires_at": "2023-07-12T17:10:47Z",
- "checkout_id": "20a1e5fe-700e-4cfe-ac43-c8de9c2043aa",
- "invoice_id": "4d395ce9-625b-4c22-8434-0af31ee9abc7",
- "timeline": [
- {
- "time": "2023-07-12T14:10:47Z",
- "status": "new",
- "context": null
}
], - "init_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "merchant_price": {
- "network": "fiat",
- "symbol": "USD",
- "amount": "1.23",
- "amount_rest": "1.23",
- "amount_paid": "0"
}, - "pricing": {
- "tron.TRX": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "16",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "rate": "0.077675",
- "amount_rest": "16",
- "amount_paid": "0"
}
}, - "payments": [
- {
- "id": "a5637613-8868-4529-a703-b3850c519881",
- "charge_id": "ba70bb6f-9103-4bc7-be72-df7ef0b97324",
- "tx_id": "c0db2c461960782a85b784a86ecb85e791d2ab16370d71271aa416f5e3583243",
- "network": "tron",
- "symbol": "TRX",
- "address": "TTDUnASbBcRHj13fkNea3VUzmTD17naYcG",
- "amount": "20",
- "status": "confirmed",
- "aml_level": "low",
- "detected_at": "2023-01-04T09:24:56Z",
- "exchange": {
- "network": "tron",
- "symbol": "TRX",
- "amount": "1.10756",
- "rate": "0.055378",
- "status": "success"
}, - "refund_id": "41932cc3-8488-4e1a-87c7-3e6fe99ca3ee"
}
], - "enabled_crypto": [
- {
- "network": "tron",
- "symbol": "TRX"
}
], - "hosted": {
- "theme": "dark"
}, - "logo": {
- "versions": { }
}, - "image": {
- "versions": { }
}
}
}
}
List of mass payouts
List of mass payouts
Authorizations:
query Parameters
external_id | string^[0-9a-zA-Z:._-]{1,255}$ Example: external_id=ABC-123 External ID |
created_at_from | string <date-time> Example: created_at_from=2023-07-28T14:41:09Z CreatedAt from value (inclusive) |
created_at_to | string <date-time> Example: created_at_to=2023-09-01T14:00:00Z CreatedAt to value (exclusive) |
order | string Enum: "asc" "desc" Example: order=asc Sort order |
offset | integer >= 0 Default: 0 The number of items to skip before starting to collect the result set. |
limit | integer [ 1 .. 100 ] Default: 25 Example: limit=25 A limit on the number of objects to be returned, between 1 and 100. |
Responses
Response samples
- 200
- 400
- 401
- 422
- 500
{- "success": true,
- "data": {
- "pagination": {
- "order": "asc",
- "total": 100,
- "limit": 25,
- "offset": 0
}, - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "new",
- "external_id": "string",
- "fee_payer": "merchant",
- "stats": {
- "total": 100,
- "sent": 63,
- "failed": 2
}, - "created_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z"
}
]
}
}
Create a mass payout
Create a mass payout
Authorizations:
Request Body schema: required
id required | string <uuid> Unique ID of mass payout (UUID format) |
external_id | string^[0-9a-zA-Z:._-]{1,255}$ Merchant's external ID for mass payout. |
callback_url | string <url> Merchant's callback URL. |
fee_payer | string Enum: "merchant" "customer" Fee payer. |
required | Array of objects List of payout objects. |
otp | string OTP code (if enabled) |
with_confirmation |
Responses
Callbacks
Request samples
- Payload
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "external_id": "string",
- "fee_payer": "customer",
- "payouts": [
- {
- "network": "tron",
- "symbol": "TRX",
- "address": "0x6EC1868a71F73784c35AD177c6DBA70D22908164",
- "amount": "3.12",
- "external_id": "ABC-DEF-001"
}
], - "otp": "123456",
- "with_confirmation": true
}
Response samples
- 200
- 400
- 401
- 422
- 500
{- "success": true,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "new",
- "fee_payer": "merchant",
- "external_id": "string",
- "payouts": [
- {
- "id": "145DF542-0399-45B1-83E4-55EBAB26725A",
- "status": "completed",
- "ext_tx_id": "0xbf371d90a538cc9fdc1b64f29d15f19a0d238c8f33617468a29c4bfafa405a12",
- "network": "tron",
- "symbol": "TRX",
- "address": "0x6EC1868a71F73784c35AD177c6DBA70D22908164",
- "amount": "3.12",
- "external_id": "582F6CFE-32ED-47E2-B1A5-8AD0AE6CD508",
- "fees": {
- "total_fee": "0.001",
- "percent": {
- "value": "0.5",
- "amount": "0.0005"
}, - "fix": {
- "value": "0.0005",
- "amount": "0.0005"
}
}
}
], - "created_at": "2023-07-12T14:10:47Z",
- "expires_at": "2023-07-12T14:20:47Z",
- "summary": [
- {
- "network": "tron",
- "symbol": "TRX",
- "totals": {
- "amount": "0.1",
- "fees": {
- "merchant": "0.1",
- "customer": "0.1"
}
}
}
]
}
}
Callback payload samples
{- "id": "b58850d3-fb4a-468c-a16f-be94962d48ae",
- "type": "payout:pending",
- "data": {
- "id": "83ce184b-2f92-4d60-8d56-7016bc121263",
- "network": "tron",
- "symbol": "TRX",
- "address": "0xA0723dAFAd27aBC0c50719aEf55017f5EC7c3A69",
- "amount": 0.333,
- "status": "pending",
- "ext_tx_id": "string",
- "external_id": "abc-def",
- "mass_payout_id": "12c5c0df-c4c0-4ab9-8945-2d2f3a5ea462",
- "fee_payer": "merchant",
- "fees": {
- "total_fee": "0.001",
- "percent": {
- "value": "0.5",
- "amount": "0.0005"
}, - "fix": {
- "value": "0.0005",
- "amount": "0.0005"
}
}, - "error": {
- "code": 1002,
- "message": "insufficient balance"
}, - "created_at": "2023-08-08T10:17:14.804+03:00",
- "updated_at": "2023-08-08T10:17:14.804+03:00"
}, - "created_at": "2023-08-08T10:17:14.815487+03:00"
}
List of payouts from a mass payout
List of payouts from a mass payout
Authorizations:
path Parameters
id required | string <uuid> |
query Parameters
external_id | string^[0-9a-zA-Z:._-]{1,255}$ Example: external_id=ABC-123 External ID |
created_at_from | string <date-time> Example: created_at_from=2023-07-28T14:41:09Z CreatedAt from value (inclusive) |
created_at_to | string <date-time> Example: created_at_to=2023-09-01T14:00:00Z CreatedAt to value (exclusive) |
status | string Enum: "new" "pending" "completed" "failed" Example: status=completed Filter by payout status |
order | string Enum: "asc" "desc" Example: order=asc Sort order |
offset | integer >= 0 Default: 0 The number of items to skip before starting to collect the result set. |
limit | integer [ 1 .. 100 ] Default: 25 Example: limit=25 A limit on the number of objects to be returned, between 1 and 100. |
Responses
Response samples
- 200
- 400
- 401
- 422
- 500
{- "success": true,
- "data": {
- "pagination": {
- "order": "asc",
- "total": 100,
- "limit": 25,
- "offset": 0
}, - "summary": [
- {
- "network": "tron",
- "symbol": "TRX",
- "totals": {
- "amount": "0.1",
- "fees": {
- "merchant": "0.1",
- "customer": "0.1"
}
}
}
], - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "new",
- "external_id": "string",
- "error": {
- "code": 1002,
- "message": "insufficient balance"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "ext_tx_id": "0xbf371d90a538cc9fdc1b64f29d15f19a0d238c8f33617468a29c4bfafa405a12",
- "network": "tron",
- "symbol": "TRX",
- "address": "0x6EC1868a71F73784c35AD177c6DBA70D22908164",
- "amount": "3.12",
- "fee_payer": "merchant",
- "fees": {
- "total_fee": "0.001",
- "percent": {
- "value": "0.5",
- "amount": "0.0005"
}, - "fix": {
- "value": "0.0005",
- "amount": "0.0005"
}
}
}, - "mass_payout_id": "58ab0b38-cb4b-4dd1-97e5-36eb728c77b8"
}
]
}
}
Confirm sending of mass payout.
Confirm sending of mass payout.
Authorizations:
path Parameters
id required | string <uuid> |
Request Body schema: application/jsonrequired
otp required | string OTP code |
Responses
Request samples
- Payload
{- "otp": "123456"
}
Response samples
- 200
- 400
- 401
- 422
- 500
{- "success": true,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "new",
- "fee_payer": "merchant",
- "external_id": "string",
- "payouts": [
- {
- "id": "145DF542-0399-45B1-83E4-55EBAB26725A",
- "status": "completed",
- "ext_tx_id": "0xbf371d90a538cc9fdc1b64f29d15f19a0d238c8f33617468a29c4bfafa405a12",
- "network": "tron",
- "symbol": "TRX",
- "address": "0x6EC1868a71F73784c35AD177c6DBA70D22908164",
- "amount": "3.12",
- "external_id": "582F6CFE-32ED-47E2-B1A5-8AD0AE6CD508",
- "fees": {
- "total_fee": "0.001",
- "percent": {
- "value": "0.5",
- "amount": "0.0005"
}, - "fix": {
- "value": "0.0005",
- "amount": "0.0005"
}
}
}
], - "created_at": "2023-07-12T14:10:47Z",
- "expires_at": "2023-07-12T14:20:47Z",
- "summary": [
- {
- "network": "tron",
- "symbol": "TRX",
- "totals": {
- "amount": "0.1",
- "fees": {
- "merchant": "0.1",
- "customer": "0.1"
}
}
}
]
}
}
Get Merchant's balances
Returns balances for merchant accounts.
❗ There are three different balances returned:
Posted balance: the money that has fully settled in an Account.
Pending balance: the money that's expected to settle in or out of an Account plus the money that's already settled.
Available balance: the money that's available to send out of an Account. This balance subtracts money that’s expected to leave an Account, but does not include money that's expected to settle in an Account.
Diff balance: the difference between Pending balance and Available balance
Authorizations:
query Parameters
symbol | string Filter by symbol |
network | string Filter by network |
Responses
Response samples
- 200
- 401
- 422
- 500
{- "success": true,
- "data": [
- {
- "symbol": "USDT",
- "network": "tron",
- "balances": {
- "pending": "20",
- "posted": "15.77",
- "available": "15.77",
- "diff": "4.23"
}, - "payouts_available": {
- "withdrawal": "0",
- "mass": "0"
}
}, - {
- "symbol": "BTC",
- "network": "bitcoin",
- "balances": {
- "pending": "0",
- "posted": "0",
- "available": "0",
- "diff": "0"
}, - "payouts_available": {
- "withdrawal": "0",
- "mass": "0"
}
}
]
}
List converts pairs
Returns all converts pairs
Authorizations:
Responses
Response samples
- 200
- 400
- 500
{- "success": true,
- "data": [
- {
- "from": {
- "network": "tron",
- "symbol": "TRX"
}, - "to": {
- "network": "tron",
- "symbol": "TRX"
}
}
]
}
List converts
Lists all converts
Authorizations:
query Parameters
order | string Enum: "asc" "desc" Sort order |
limit | integer Limit |
offset | integer Offset |
status | string Enum: "pending" "success" "failed" |
id | string |
Responses
Response samples
- 200
- 400
- 500
{- "success": true,
- "data": {
- "pagination": {
- "order": "asc",
- "total": 100,
- "limit": 25,
- "offset": 0
}, - "data": [
- {
- "id": "9e60c5ab-1c52-45c0-b9bb-69a5eaa2e471",
- "status": "pending",
- "created_at": "2023-08-03T14:45:59Z",
- "network_from": "tron",
- "symbol_from": "TRX",
- "amount_from": "100",
- "network_to": "tron",
- "symbol_to": "TRX",
- "amount_to": "7.08",
- "rate": "0.07082899"
}
]
}
}
Schedule to convert
Schedule to convert
Authorizations:
Request Body schema: application/jsonrequired
token | string |
Responses
Request samples
- Payload
{- "token": "463907924292f880ec027d10cbebeeea8826a..."
}
Response samples
- 200
- 400
- 422
- 500
{- "success": true,
- "data": {
- "id": "9e60c5ab-1c52-45c0-b9bb-69a5eaa2e471",
- "status": "pending",
- "created_at": "2023-08-03T14:45:59Z",
- "network_from": "tron",
- "symbol_from": "TRX",
- "amount_from": "100",
- "network_to": "tron",
- "symbol_to": "TRX",
- "amount_to": "7.08",
- "rate": "0.07082899"
}
}
Show a convert
Show a convert
Authorizations:
path Parameters
id required | string <uuid> ID of convert |
Responses
Response samples
- 200
- 404
- 500
{- "success": true,
- "data": {
- "id": "9e60c5ab-1c52-45c0-b9bb-69a5eaa2e471",
- "status": "pending",
- "created_at": "2023-08-03T14:45:59Z",
- "network_from": "tron",
- "symbol_from": "TRX",
- "amount_from": "100",
- "network_to": "tron",
- "symbol_to": "TRX",
- "amount_to": "7.08",
- "rate": "0.07082899"
}
}
Get convert token with amount and rate
Get convert token with amount and rate
Authorizations:
query Parameters
network_from required | string (NetworkAll) Enum: "fiat" "ethereum" "bitcoin" "litecoin" "bsc" "tron" "polygon" "ton" Example: network_from=tron Network to convert from |
symbol_from required | string (SymbolAll) Enum: "EUR" "USD" "BTC" "ETH" "TRX" "LTC" "BNB" "USDT" "USDC" "DAI" "POL" "TON" Example: symbol_from=TRX Symbol to convert from |
network_to required | string (NetworkAll) Enum: "fiat" "ethereum" "bitcoin" "litecoin" "bsc" "tron" "polygon" "ton" Example: network_to=tron Network to convert to |
symbol_to required | string (SymbolAll) Enum: "EUR" "USD" "BTC" "ETH" "TRX" "LTC" "BNB" "USDT" "USDC" "DAI" "POL" "TON" Example: symbol_to=TRX Symbol to convert to |
amount required | string Amount to be converted |
Responses
Response samples
- 200
- 401
- 422
- 500
{- "success": true,
- "data": {
- "token": "463907924292f880ec027d10cbebeeea8826a...",
- "expires_at": "2023-08-18T11:06:25Z",
- "rate": "0.06",
- "amount": "0.42"
}
}