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

Define full invoice crypto-currency

Defines cryptocurrency for the created full invoice

POST https://app.thedex.cloud/api/v1/invoices/currency

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

{
    "invoiceId": "String",
    "payCurrency": "String"
}

Request JSON attributes

Name
Type
Description

invoiceId*

String

ID of Invoice for defining

payCurrency*

String

required reach out all accessed values by link: /api/v1/info/currencies

Response body

{
   "invoiceId": "String",
   "purse": "String",
   "amount": "String",
   "currency": "String",
   "amountInPayCurrency": "String",
   "payCurrency": "String",
   "blockchainFee": "String"
}

General validation error: missing or malformed parameters.

{
    "error": "Bad Request",
    "status": 400,
    "timestamp": "2026-01-01 00:00:00",
    "message": "payCurrency: following value doesn't valid. "
}

Specific field validation error. (Minimal limits, etc)

{
    "error": "Unprocessable Entity",
    "status": 422,
    "timestamp": "2026-01-01 00:00:00",
    "message": "Minimal limit amount doesn't exceed"
}
{
    "error": "Unprocessable Entity",
    "status": 422,
    "timestamp": "2026-01-01 00:00:00",
    "message": "Requested payCurrency is not active"
}
{
    "error": "Unprocessable Entity",
    "status": 422,
    "timestamp": "2026-01-01 00:00:00",
    "message": "Currency has been applied already"
}

When try to define payCurrency for another merchant invoice.

Not found invoice, blockchain or server side problem.

Response JSON attributes

"invoiceId"

String

Invoice id

"purse"

String

Purse

"amount"

String

Amount of fiat currency

"currency"

String

reach out accessed values by link: /api/v1/info/currencies

"amountInpayCurrency"

String

Amount of cryptocurrency after convertion

"payCurrency"

String

reach out accessed values by link: /api/v1/info/currencies

"blockchainFee"

String

Deposit blockchain fee

Curl request

Example Curl

Last updated