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
Response body
{
"invoiceId": "String",
"purse": "String",
"amount": "String",
"currency": "String",
"amountInPayCurrency": "String",
"payCurrency": "String",
"blockchainFee": "String"
}
Response JSON attributes
"invoiceId"
String
Invoice id
"purse"
String
Purse
"amount"
String
Amount of fiat currency
"amountInpayCurrency"
String
Amount of cryptocurrency after convertion
"blockchainFee"
String
Deposit blockchain fee
Curl request
curl --location --request POST 'https://app.thedex.cloud/api/v1/invoices/currency' \
--header 'X-EX-APIKEY: <string>' \
--header 'X-EX-PAYLOAD: <string>' \
--header 'X-EX-SIGNATURE: <string>' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{
"invoiceId": "<string>",
"payCurrency": "<string>"
}'
Example Curl
curl --location --request POST 'https://app.thedex.cloud/api/v1/invoices/currency' \
--header 'X-EX-APIKEY: test_api_key_123' \
--header 'X-EX-PAYLOAD: eyJpbnZvaWNlSWQiOiAiSU5WMTIzNDU2IiwgInBheUN1cnJlbmN5IjogIkJUSyJ9' \
--header 'X-EX-SIGNATURE: d4f7e3d2870f18c3c89a1d32aa98e8b5f1a8a9d47ac3b0b0d991b7b5d7d0c0ff' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{
"invoiceId": "INV123456",
"payCurrency": "BTK"
}'
Last updated