Get Invoice
Get the invoice by "invoiceId" or "orderId" attribute.
Returns the invoice by "invoiceId" or "orderId" attribute.
POST
https://app.thedex.cloud/api/v1/invoices/one
Headers
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
Optional if "orderId"
is filled
orderId
String
Optional if "invoiceId"
is filled. Order id that merchant can sent on creation invoice. Merchant could define order id by their wish. (f.e. If you have own id in database).
Request curl:
Response JSON attributes:
"invoiceId"
String
Invoice id.
"merchantId"
String
Merchant id.
"orderId"
String
Order id.
"clientId"
String
Client id.
"status"
Integer
"statusName"
String
"createDate"
String
Creation date.
"modifiedDate"
String
Modification date.
"expirationDate"
String
Expiration date.
"expirationDateInMilliseconds"
Long
Left expiration time in milliseconds.
"purse"
String
Crypto-address is used by client to send cryptocurrency.
"currency"
String
"payCurrency"
String
"amount"
String
Amount in fiat currency.
"amountInPayCurrency"
String
Converted amount in cryptocurrency.
"paidAmount"
String
Represents paid amount in crypto-currency.
"paidAmountFiat"
String
Represents paid amount in fiat currency.
"payUrl"
String
Url is used to deposit.
"callbackUrl"
String
Callback URL. To reach out more about statuses that trigger callback read the section about
"creationWay"
String
For this usage “API“.
"merchantCommission"
String
Merchant commission.
"merchantBalance"
String
Merchant balance.
"title"
String
Title.
"description"
String
Description.
"uniqueUserId"
String
User UUID.
"depositBlockchainFee"
String
Deposit blockchain fee.
"rate"
String
Rate.
"rateWithCommission"
String
Rate with commission.
"txId"
String[]
Transactions list
"failureUrl"
String
Used for redirect to this reference on failure invoice status. You could set this URL individually to merchant.
"successUrl"
String
Used for redirect to this reference on success invoice status. You could set this URL individually to merchant.
"merchantSiteUrl"
String
Used for redirect to this reference if successUrl
or failureUrl
are not defined.
Last updated