API Documentation

Send Payment

This endpoint is useful for sending balances for specific crypto assets. Balances sent to user will be deducted from the Faucet Wallet and transferred to the user Main Wallet. All transactions here are internal, and processed instantly.

Endpoint URL
POSThttps://zexpay.io/api/v1/send-payment/

Parameters

Name Required Type Info
user Yes String A registered username or email address.
crypto Yes String The symbol of the cryptocurrency
(e.g, BTC, ETH, USDT).
amount Yes float Crypto amount with float number, maximal 8 decimal. (e.g, 0.00150000).
ip_address No String Check IP address of the user requesting endpoint from your faucet.

Sample Codes

Example
<?php $api_key = 'YOUR_FAUCET_API_KEY'; $url = 'https://zexpay.io/api/v1/send-payment/'; $data = [ "user" => 'user123', "crypto" => 'BTC', "amount" => 0.0001 ]; $e_data = json_encode($data); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_POSTFIELDS, $e_data); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json', 'api-key: '.$api_key ]); curl_setopt($ch, CURLOPT_TIMEOUT, 10); $response = curl_exec($ch); $result = json_decode($response, true); var_dump($result); ?>

These example code snippets demonstrate how to request the "Send Payment" endpoint using PHP cURL. You can customize the data parameters according to your specific requirements. And below is the response you will receive:

Success Response
{ "status" : 200, "error" : false, "message" : "ok", "data" : { "tx_id" : "SPFEM-5B5192E6", "tx_url" : "https://zexpay.io/track/?tx=SPFEM-5B5192E6", "crypto" : "BTC", "user" : "user123", "amount" : 0.00010000, "date_time" : "2025-07-13 02:22:25", "time_zone" : "UTC+7" } }

Statuses

Below is a list of status from this endpoint. This can be a validation material for your website:

Status Error Data Message
200 false Object The request was processed without errors.
400 true null Required fields is missing or Unacceptable parameter values.
401 true null Invalid / missing API Key, User found, but blocked by this API Key profile, User found, but not active, or crypto balance in faucet wallet is insufficient.
405 true null Method not allowed, API Key profile restricts public access, or API Key profile has been banned.
500 true null Internal server error.
Error Response
{ "status" : 401, "error" : true, "message" : "BTC balance in faucet wallet is insufficient.", "data" : null }
ZexPay.io
Zexpay is a modern cryptocurrency microwallet platform built to power digital rewards and microtransactions for the global crypto community.
Resources
Resources
Product
Product
Our mission is to become the preferred cryptocurrency microwallet solution by delivering secure, scalable, and user-centric payment experiences. © 2026 - ZexPay.io. All rights reserved.
telegram