curl --request POST \
--url https://api.tradevu.co/v1/api/initiate-payment \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": "500",
"paymentReference": "invoice-4471",
"source": "<string>",
"rateKey": "<string>",
"narration": "Invoice #4471",
"receipent": {
"network": "base",
"address": "<string>",
"accountNumber": "<string>",
"accountName": "<string>",
"bankCode": "<string>",
"bankName": "<string>"
},
"businessId": "<string>",
"network": "base"
}
'import requests
url = "https://api.tradevu.co/v1/api/initiate-payment"
payload = {
"amount": "500",
"paymentReference": "invoice-4471",
"source": "<string>",
"rateKey": "<string>",
"narration": "Invoice #4471",
"receipent": {
"network": "base",
"address": "<string>",
"accountNumber": "<string>",
"accountName": "<string>",
"bankCode": "<string>",
"bankName": "<string>"
},
"businessId": "<string>",
"network": "base"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '500',
paymentReference: 'invoice-4471',
source: '<string>',
rateKey: '<string>',
narration: 'Invoice #4471',
receipent: {
network: 'base',
address: '<string>',
accountNumber: '<string>',
accountName: '<string>',
bankCode: '<string>',
bankName: '<string>'
},
businessId: '<string>',
network: 'base'
})
};
fetch('https://api.tradevu.co/v1/api/initiate-payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tradevu.co/v1/api/initiate-payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '500',
'paymentReference' => 'invoice-4471',
'source' => '<string>',
'rateKey' => '<string>',
'narration' => 'Invoice #4471',
'receipent' => [
'network' => 'base',
'address' => '<string>',
'accountNumber' => '<string>',
'accountName' => '<string>',
'bankCode' => '<string>',
'bankName' => '<string>'
],
'businessId' => '<string>',
'network' => 'base'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tradevu.co/v1/api/initiate-payment"
payload := strings.NewReader("{\n \"amount\": \"500\",\n \"paymentReference\": \"invoice-4471\",\n \"source\": \"<string>\",\n \"rateKey\": \"<string>\",\n \"narration\": \"Invoice #4471\",\n \"receipent\": {\n \"network\": \"base\",\n \"address\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"bankName\": \"<string>\"\n },\n \"businessId\": \"<string>\",\n \"network\": \"base\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tradevu.co/v1/api/initiate-payment")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"500\",\n \"paymentReference\": \"invoice-4471\",\n \"source\": \"<string>\",\n \"rateKey\": \"<string>\",\n \"narration\": \"Invoice #4471\",\n \"receipent\": {\n \"network\": \"base\",\n \"address\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"bankName\": \"<string>\"\n },\n \"businessId\": \"<string>\",\n \"network\": \"base\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tradevu.co/v1/api/initiate-payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"500\",\n \"paymentReference\": \"invoice-4471\",\n \"source\": \"<string>\",\n \"rateKey\": \"<string>\",\n \"narration\": \"Invoice #4471\",\n \"receipent\": {\n \"network\": \"base\",\n \"address\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"bankName\": \"<string>\"\n },\n \"businessId\": \"<string>\",\n \"network\": \"base\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Payment collection initiated successfully",
"data": {
"transactionId": "<string>",
"payRefrence": "<string>",
"amount": "<string>",
"toAmount": 123,
"fromCurrency": "<string>",
"toCurrency": "<string>",
"paymentReference": "<string>",
"rate": 123,
"fee": 123,
"totalAmount": 123,
"paymentInstruction": [
{
"narration": "Kindly use 8f21c93a1b as transfer narration or memo",
"accountNumber": "0123456789",
"accountName": "Tradevu/Acme Inc",
"bankName": "Providus Bank",
"amountToTransfer": "5100",
"validUntil": "2026-09-17T10:34:36.291Z"
}
]
},
"error": false
}{
"statusCode": 400,
"message": "Invalid currency: XYZ",
"timestamp": "2023-11-07T05:31:56Z",
"path": "/v1/api/balance/XYZ",
"request": {
"method": "GET",
"url": "/v1/api/balance/XYZ"
}
}Initiate a payment collection
Creates a collection and returns the account (or, for a crypto→fiat collection, deposit address) details to show your customer. When fromCurrency and toCurrency are on opposite sides of the fiat/crypto line and Paycrest is the active provider for that pair, receipent is required and the flow settles through Paycrest instead of a standard virtual account — see the Payment Collections guide for the full flow.
curl --request POST \
--url https://api.tradevu.co/v1/api/initiate-payment \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": "500",
"paymentReference": "invoice-4471",
"source": "<string>",
"rateKey": "<string>",
"narration": "Invoice #4471",
"receipent": {
"network": "base",
"address": "<string>",
"accountNumber": "<string>",
"accountName": "<string>",
"bankCode": "<string>",
"bankName": "<string>"
},
"businessId": "<string>",
"network": "base"
}
'import requests
url = "https://api.tradevu.co/v1/api/initiate-payment"
payload = {
"amount": "500",
"paymentReference": "invoice-4471",
"source": "<string>",
"rateKey": "<string>",
"narration": "Invoice #4471",
"receipent": {
"network": "base",
"address": "<string>",
"accountNumber": "<string>",
"accountName": "<string>",
"bankCode": "<string>",
"bankName": "<string>"
},
"businessId": "<string>",
"network": "base"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '500',
paymentReference: 'invoice-4471',
source: '<string>',
rateKey: '<string>',
narration: 'Invoice #4471',
receipent: {
network: 'base',
address: '<string>',
accountNumber: '<string>',
accountName: '<string>',
bankCode: '<string>',
bankName: '<string>'
},
businessId: '<string>',
network: 'base'
})
};
fetch('https://api.tradevu.co/v1/api/initiate-payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tradevu.co/v1/api/initiate-payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '500',
'paymentReference' => 'invoice-4471',
'source' => '<string>',
'rateKey' => '<string>',
'narration' => 'Invoice #4471',
'receipent' => [
'network' => 'base',
'address' => '<string>',
'accountNumber' => '<string>',
'accountName' => '<string>',
'bankCode' => '<string>',
'bankName' => '<string>'
],
'businessId' => '<string>',
'network' => 'base'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tradevu.co/v1/api/initiate-payment"
payload := strings.NewReader("{\n \"amount\": \"500\",\n \"paymentReference\": \"invoice-4471\",\n \"source\": \"<string>\",\n \"rateKey\": \"<string>\",\n \"narration\": \"Invoice #4471\",\n \"receipent\": {\n \"network\": \"base\",\n \"address\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"bankName\": \"<string>\"\n },\n \"businessId\": \"<string>\",\n \"network\": \"base\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tradevu.co/v1/api/initiate-payment")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"500\",\n \"paymentReference\": \"invoice-4471\",\n \"source\": \"<string>\",\n \"rateKey\": \"<string>\",\n \"narration\": \"Invoice #4471\",\n \"receipent\": {\n \"network\": \"base\",\n \"address\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"bankName\": \"<string>\"\n },\n \"businessId\": \"<string>\",\n \"network\": \"base\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tradevu.co/v1/api/initiate-payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"500\",\n \"paymentReference\": \"invoice-4471\",\n \"source\": \"<string>\",\n \"rateKey\": \"<string>\",\n \"narration\": \"Invoice #4471\",\n \"receipent\": {\n \"network\": \"base\",\n \"address\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"bankName\": \"<string>\"\n },\n \"businessId\": \"<string>\",\n \"network\": \"base\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Payment collection initiated successfully",
"data": {
"transactionId": "<string>",
"payRefrence": "<string>",
"amount": "<string>",
"toAmount": 123,
"fromCurrency": "<string>",
"toCurrency": "<string>",
"paymentReference": "<string>",
"rate": 123,
"fee": 123,
"totalAmount": 123,
"paymentInstruction": [
{
"narration": "Kindly use 8f21c93a1b as transfer narration or memo",
"accountNumber": "0123456789",
"accountName": "Tradevu/Acme Inc",
"bankName": "Providus Bank",
"amountToTransfer": "5100",
"validUntil": "2026-09-17T10:34:36.291Z"
}
]
},
"error": false
}{
"statusCode": 400,
"message": "Invalid currency: XYZ",
"timestamp": "2023-11-07T05:31:56Z",
"path": "/v1/api/balance/XYZ",
"request": {
"method": "GET",
"url": "/v1/api/balance/XYZ"
}
}Authorizations
Your business API key, generated from the dashboard. Required on every business-facing endpoint.
Body
"500"
Fiat currencies: NGN, EUR, GBP, USD, KES, UGX, GHS, CAD, XOF, XAF. Crypto currencies: USDT, USDC, CNGN.
NGN, EUR, GBP, USD, USDT, USDC, CNGN, KES, UGX, GHS, CAD, XOF, XAF Fiat currencies: NGN, EUR, GBP, USD, KES, UGX, GHS, CAD, XOF, XAF. Crypto currencies: USDT, USDC, CNGN.
NGN, EUR, GBP, USD, USDT, USDC, CNGN, KES, UGX, GHS, CAD, XOF, XAF Unique reference you generate. Reusing one returns a 400.
"invoice-4471"
Required when fromCurrency differs from toCurrency. Obtain from GET /api/qoutes/{fromCurrency}/{toCurrency}/{amount}.
"Invoice #4471"
Required, with different sub-fields, when the active provider for fromCurrency/toCurrency is Paycrest and exactly one side of the pair is crypto: for a fiat→crypto collection (onramp) address and network are required; for a crypto→fiat collection (offramp) accountNumber, bankCode, and accountName are required (the source network goes on the top-level network field of PaymentRequest, not here). Not needed for same-currency or fiat↔fiat collections.
Show child attributes
Show child attributes
Only for platform businesses collecting on behalf of a sub-business: the sub-business's ID. Must be a business whose parentBusiness is your business, or the request is rejected.
Crypto→fiat (offramp) collections only: the network your customer will pay the crypto in from. Required in this case — unrelated to receipent.network, which is for the onramp direction instead.
"base"