Deluxiam API Documentation

Check Email or Phone

This API checks if the provided email or phone is valid.

Curl

                
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]\"}"
                
            

Python

                
import requests
import json

url = "https://deluxiam.com/api/p2p-check"
headers = {
    "Accept": "application/json",
    "Content-Type": "application/json"
}
payload = {
    "client_secret": "your_client_secret_here",
    "receiver": "[email protected]"
}

response = requests.post(url, headers=headers, data=json.dumps(payload))

print(response.status_code)
print(response.json())
                
            

JavaScript

                
const axios = require('axios');

const url = "https://deluxiam.com/api/p2p-check";
const headers = {
    "Accept": "application/json",
    "Content-Type": "application/json"
};
const payload = {
    client_secret: "your_client_secret_here",
    receiver: "[email protected]"
};

axios.post(url, payload, { headers })
    .then(response => {
        console.log('Status:', response.status);
        console.log('Data:', response.data);
    })
    .catch(error => {
        console.error('Error:', error.response ? error.response.data : error.message);
    });
                
            

PHP

                
<?php
$url = "https://deluxiam.com/api/p2p-check";
$headers = [
    "Accept: application/json",
    "Content-Type: application/json"
];
$data = [
    "client_secret" => "your_client_secret_here",
    "receiver" => "[email protected]"
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
                
            

Response

                
                {"status":200}
                
            
Send Money P2P

This API sends money to a user via email or phone.

Curl

                
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\", \"emailOrPhone\": \"[email protected]\", \"currency_code\": \"TRX\", \"amount\": \"1.00\", \"note\": \"Payment for services rendered\"}"
                
            

PHP

                
<?php
$url = "https://deluxiam.com/api/send-p2p";
$headers = [
    "Accept: application/json",
    "Content-Type: application/json"
];
$data = [
    "client_secret" => "your_client_secret_here",
    "emailOrPhone" => "[email protected]",
    "currency_code" => "TRX",
    "amount" => "1.00",
    "note" => "Payment for services rendered"
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
                
            

Python

                
import requests
import json

url = "https://deluxiam.com/api/send-p2p"
headers = {
    "Accept": "application/json",
    "Content-Type": "application/json"
}
payload = {
    "client_secret": "your_client_secret_here",
    "emailOrPhone": "[email protected]",
    "currency_code": "TRX",
    "amount": "1.00",
    "note": "Payment for services rendered"
}

response = requests.post(url, headers=headers, data=json.dumps(payload))

print(response.status_code)
print(response.json())
                
            

JavaScript

                
const axios = require('axios');

const url = "https://deluxiam.com/api/send-p2p";
const headers = {
    "Accept": "application/json",
    "Content-Type": "application/json"
};
const payload = {
    client_secret: "your_client_secret_here",
    emailOrPhone: "[email protected]",
    currency_code: "TRX",
    amount: "1.00",
    note: "Payment for services rendered"
};

axios.post(url, payload, { headers })
    .then(response => {
        console.log('Status:', response.status);
        console.log('Data:', response.data);
    })
    .catch(error => {
        console.error('Error:', error.response ? error.response.data : error.message);
    });
                
            

Response

                
{"status":true,"tx_id":"84916AA2B46EF"}