Deluxiam
Developers

Deluxiam API Documentation

Create an API key from your dashboard, then call these endpoints with your client secret.

Accept a payment

Send the price. You get a payment link. Your buyer picks a coin and pays. The money lands in your Deluxiam wallet.

POSThttps://deluxiam.com/api/create-payment
client_secretYour secret from the API keys page
amountThe price, like 25
currencyUSD (default) or a coin: BTC, LTC, DOGE, BNB, USDT, SHIB, ETH, TRX, TON, SOL, XMR
receive_currencyOptional. The coin you want in your wallet (auto-converted). Empty = the coin the buyer paid
pay_currencyOptional. Set it to get the address, amount and QR code right away (show them on your own page)
order_id, descriptionOptional. Shown to the buyer and sent back to you
callback_urlOptional. We tell this link every time the status changes
success_url, cancel_urlOptional. Where the buyer goes back to

Fee 0.5%. The buyer has 1 hour to pay. Minimum 1 USD.

curl -X POST "https://deluxiam.com/api/create-payment" -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"client_secret\": \"your_client_secret_here\", \"amount\": \"25\", \"currency\": \"USD\", \"receive_currency\": \"USDT\", \"order_id\": \"1001\", \"callback_url\": \"https://yourshop.com/ipn\", \"success_url\": \"https://yourshop.com/thanks\"}"

Check a payment

Ask for the latest status of a payment at any time.

POSThttps://deluxiam.com/api/payment-status
newMade, the buyer has not picked a coin yet
waitingCoin picked, waiting for the money (1 hour)
confirmingMoney seen, waiting for the network to confirm
paidDone. The money is in your wallet
underpaidOnly part arrived. That part is in your wallet
expiredTime ran out, nothing arrived
curl -X POST "https://deluxiam.com/api/payment-status" -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"client_secret\": \"your_client_secret_here\", \"id\": \"8f2c1a9b3d4e5f60\"}"

Get notified (IPN)

When the status changes we POST the same payment JSON to your callback_url. Check the X-Deluxiam-Signature header (HMAC-SHA256 of the body with your client secret). Answer with HTTP 200. If you do not, we try again 6 more times.

<?php
$body = file_get_contents("php://input");
$sign = hash_hmac("sha256", $body, "your_client_secret_here");
if (!hash_equals($sign, $_SERVER["HTTP_X_DELUXIAM_SIGNATURE"] ?? "")) { http_response_code(403); exit; }

$payment = json_decode($body, true);
if ($payment["status"] === "paid") {
    // mark order $payment["order_id"] as paid
}
http_response_code(200);
?>

Check Email or ID

Check that an email or a member ID belongs to an active member.

POSThttps://deluxiam.com/api/p2p-check
client_secretYour client secret
receiverAn email, or a member ID of 9 digits
uidIn the answer: the member ID
429Too many IDs that match no member. Wait a few minutes. Emails never wait
curl -X POST "https://deluxiam.com/api/p2p-check" -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"client_secret\": \"your_client_secret_here\", \"receiver\": \"[email protected]\"}"

Send Money

This API sends money to a member by email or member ID.

POSThttps://deluxiam.com/api/send-p2p
client_secretYour client secret
emailEmail of the member. Or send uid
uidMember ID of 9 digits. With email too, both must be the same member or nothing is sent
currency_codeA coin code, like TRX
amountLike 1.00
noteOptional
request_idOptional. Your own id for this payment. Send it again with the same request_id and it is never paid twice
422The email and uid are not the same member. Nothing was sent
429Too many IDs that match no member. Wait a few minutes
curl -X POST "https://deluxiam.com/api/send-p2p" -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"client_secret\": \"your_client_secret_here\", \"email\": \"[email protected]\", \"currency_code\": \"TRX\", \"amount\": \"1.00\", \"note\": \"Payment for services rendered\"}"

Before you start

These calls move money in your own account with your API key.

AuthorizationSend the header Authorization: Bearer YOUR_KEY. Never put the key in the address.
Withdraw, Convert, SwapTurn each one on for your key on the API Keys page, with the code we email you.
request_idOptional. Your own id, 1 to 64 letters, digits or . _ : -. Send a call again with the same request_id and it is never done twice.
Answer{"ok": true, "data": ...} or {"ok": false, "error": {"code": ..., "text": ...}}

Your balances

Every coin in your account and how much you have.

GEThttps://deluxiam.com/api/v1/balances
curl "https://deluxiam.com/api/v1/balances" -H "Authorization: Bearer YOUR_KEY"

Coins you can withdraw

The coins you can withdraw now, with the smallest amount and the fee of each.

GEThttps://deluxiam.com/api/v1/coins
curl "https://deluxiam.com/api/v1/coins" -H "Authorization: Bearer YOUR_KEY"

Withdraw coins

Send coins from your account to an address.

POSThttps://deluxiam.com/api/v1/withdraw
coinA coin from Coins you can withdraw, like LTC
amountWhat leaves your account, like 0.05
addressWhere the coins go
memoTON only. Optional
request_idOptional. Your own id for this withdrawal
curl -X POST "https://deluxiam.com/api/v1/withdraw" -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" -d "{\"coin\": \"LTC\", \"amount\": \"0.05\", \"address\": \"YOUR_LTC_ADDRESS\", \"request_id\": \"order-1001\"}"

Send to many

Up to 25 withdrawals in one call. Each one gets its own answer, in the same order.

POSThttps://deluxiam.com/api/v1/withdraw/many
itemsA list of 1 to 25 withdrawals, each one like Withdraw coins
curl -X POST "https://deluxiam.com/api/v1/withdraw/many" -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" -d "{\"items\": [{\"coin\": \"TRX\", \"amount\": \"50\", \"address\": \"YOUR_TRX_ADDRESS\", \"request_id\": \"pay-2001\"}, {\"coin\": \"USDT\", \"amount\": \"12\", \"address\": \"YOUR_USDT_ADDRESS\", \"request_id\": \"pay-2002\"}]}"

Check a withdrawal

Ask for a withdrawal by its id or by your request_id.

GEThttps://deluxiam.com/api/v1/withdrawals/{id}
pendingMade, not sent yet
sentOn its way. txid is its id on the network
doneArrived
refundedNot sent. The amount is back in your account
curl "https://deluxiam.com/api/v1/withdrawals/order-1001" -H "Authorization: Bearer YOUR_KEY"

Convert quote

What you would get now. Nothing moves.

GEThttps://deluxiam.com/api/v1/convert/quote?from=USDT&to=TRX&amount=10
from, toTwo coins of your account, like USDT and TRX
amountHow much of from you convert
curl "https://deluxiam.com/api/v1/convert/quote?from=USDT&to=TRX&amount=10" -H "Authorization: Bearer YOUR_KEY"

Convert

Change one coin of your account into another.

POSThttps://deluxiam.com/api/v1/convert
from, to, amountAs in Convert quote
min_receiveOptional. If less would arrive, nothing is converted
request_idOptional. Your own id for this convert
curl -X POST "https://deluxiam.com/api/v1/convert" -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" -d "{\"from\": \"USDT\", \"to\": \"TRX\", \"amount\": \"10\", \"min_receive\": \"35\", \"request_id\": \"cv-3001\"}"

Check a convert

Ask for a convert by its id or by your request_id. The answer looks like the one of Convert.

GEThttps://deluxiam.com/api/v1/converts/{id}
curl "https://deluxiam.com/api/v1/converts/cv-3001" -H "Authorization: Bearer YOUR_KEY"

Swap coins

The coins you can swap, with the id to use in a swap.

GEThttps://deluxiam.com/api/v1/swap/coins
curl "https://deluxiam.com/api/v1/swap/coins" -H "Authorization: Bearer YOUR_KEY"

Swap quote

What a swap would give now. Nothing is made.

GEThttps://deluxiam.com/api/v1/swap/quote?from=usdttrc20&to=ltc&amount=50
from, toTwo ids from Swap coins, like usdttrc20 and ltc
amountLike 50
amount_ofOptional. send (you send this amount) or receive (you get this amount). Default send
fixedOptional. true for a fixed rate. Default false
to_my_walletOptional. true to get the coins in your Deluxiam wallet
curl "https://deluxiam.com/api/v1/swap/quote?from=usdttrc20&to=ltc&amount=50" -H "Authorization: Bearer YOUR_KEY"

Swap

Swap one coin for another. You get an address and an amount: pay it from your own wallet before pay_before.

POSThttps://deluxiam.com/api/v1/swap
from, to, amount, amount_of, fixedAs in Swap quote
address, memoWhere the coins go (memo only for a coin that needs one)
to_my_walletOr true instead of address: the coins go to your Deluxiam wallet
refundYour own address of the coin you send. Send it when the quote says needs_refund
request_idOptional. Your own id for this swap
curl -X POST "https://deluxiam.com/api/v1/swap" -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" -d "{\"from\": \"usdttrc20\", \"to\": \"ltc\", \"amount\": \"50\", \"to_my_wallet\": true, \"request_id\": \"sw-4001\"}"

Check a swap

Ask for a swap by its id or by your request_id. The answer looks like the one of Swap.

GEThttps://deluxiam.com/api/v1/swaps/{id}
waitingWaiting for your coins
confirmingYour coins are seen, waiting for the network
swapping, sendingBeing swapped, then sent
doneArrived
checkingBeing checked. note says more
refunded, failed, expiredSent back, not made, or nothing arrived in time
curl "https://deluxiam.com/api/v1/swaps/sw-4001" -H "Authorization: Bearer YOUR_KEY"

Errors

A call that is not done answers "ok": false with an error code and a text. The text says what to do.

key_in_addressSend the key in the Authorization header, never in the address
bad_key, key_frozen, key_not_approvedThe key is unknown, frozen or not approved
account_not_active, verify_phone, no_permissionThis account can not do this now
withdraw_not_on, convert_not_on, swap_not_onTurn it on for this key on the API Keys page
api_off, withdraw_off, convert_off, swap_offThis part is off for now. Try again later
bad_request, bad_coin, bad_amount, bad_address, bad_itemsSomething in the call is not right. The text says what
no_walletYou have no wallet for this coin
refusedNot made. The text says why
limit_day, day_limitThis key is done for today
rate_movedLess than min_receive would arrive now. Nothing moved
request_id_usedThis request_id was used for another call
busy, in_progressAnother call is still running. Ask again in a moment
not_startedNot started. Send it again with its request_id
too_many, too_many_quotes, too_many_waitingToo many calls. Wait a minute
prices_updating, try_againNot done. Try again in a moment
pair_unavailable, amount_too_small, amount_too_big, refund_neededThis swap can not be made like this. The text says why
not_foundNothing with this id

Ready to build?

Generate your API key in seconds.

Create an Account