Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create static wallet

Creates a static wallet address – a single, unchangeable address used to receive payments.

The system supports creating static wallets in Blockchain mode — creates a wallet for a blockchain network. It supports all enabled currencies on that network.

POST https://app.thedex.cloud/api/v1/wallets/create

Headers

Name
Type
Description

X-EX-APIKEY*

String

Your API key

X-EX-PAYLOAD*

String

Body to base64

X-EX-SIGNATURE*

String

Encrypted body with the secret key

Request Body (Blockchain)

{
    "clientId": "String",
    "blockchain": "String",
    "merchantId": "String",
    "fiatCurrecy": "String", //optional
    "successUrl": "String", // optional
    "failureUrl": "String", // optional
    "callbackUrl": "String" // optional
}

Request JSON attributes

Name
Type
Description

blockchain*

String

Select a blockchain to create a wallet

merchantId*

String

You can find it on page 'Merchants' in your account

clientId*

String

An arbitrary identifier for the client

fiatCurrency

String

Default = USD

Reach out all available fiat currencies by endpoint: /api/v1/info/currencies

Primary Used for recalculation of paid_amount_fiat.

successUrl

String

Custom successUrl for an invoice, that can be differ from merchant settings

failureUrl

String

Custom failureUrl for an invoice, that can be differ from merchant settings

callbackUrl

String

Custom callback url for receiving events about created invoice on wallet

Response Body

General validation error: missing or malformed parameters.

Missing wallet identifier error: when neither 'monetary' nor 'blockchain' is specified.

Specific field validation error.

When merchantId in request not equal to API key merchant id

Blockchain or server side problem.

Response JSON attributes

"walletId"

String

Unique identifier of the created wallet

"blockchain"

String

Blockchain network of the created wallet. Returned only if the wallet was created in Blockchain-based mode

"clientId"

String

Arbitrary identifier of the client

"fiatCurrency"

String

Wallet currency used for paid_amount_fiat

"successUrl"

String

Success url to redirect customer after successful payment

"failureUrl"

String

Failure url to redirect customer after failed payment

"callbackUrl"

String

Callback url to receive webhook about created invoices after successful / failed deposit of wallet

"address"

String

Generated crypto address for accepting payments

"minAmount"

String

Minimum amount required to accept a payment

"isActive"

Boolean

Indicates whether the wallet is active.

"payUrl"

String

Pay url

"qrBase64"

String

A Base64-encoded PNG image of a QR code that encodes the wallet address for payment

Request curl

Example Curl

Last updated