curl --request POST \
--url https://api.tradevu.co/v1/api/finance/payables \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"businessId": "670000000000000000000003",
"currency": "NGN",
"requestedAmount": 500000,
"managementType": "fromLoan",
"financeCategory": "purchaseOrder",
"purchaseOrderTitle": "Supplier order",
"purchaseOrderAmount": 750000,
"purchaseOrderUrl": "https://example.com/purchase-order.pdf",
"contractAgreement": "https://example.com/contract.pdf",
"contractEmployer": {
"firstName": "Ada",
"lastName": "Okafor",
"phoneNumber": "+2348000000000",
"email": "[email protected]",
"businessName": "Example Trading Ltd"
},
"isDraft": false
}
'import requests
url = "https://api.tradevu.co/v1/api/finance/payables"
payload = {
"businessId": "670000000000000000000003",
"currency": "NGN",
"requestedAmount": 500000,
"managementType": "fromLoan",
"financeCategory": "purchaseOrder",
"purchaseOrderTitle": "Supplier order",
"purchaseOrderAmount": 750000,
"purchaseOrderUrl": "https://example.com/purchase-order.pdf",
"contractAgreement": "https://example.com/contract.pdf",
"contractEmployer": {
"firstName": "Ada",
"lastName": "Okafor",
"phoneNumber": "+2348000000000",
"email": "[email protected]",
"businessName": "Example Trading Ltd"
},
"isDraft": False
}
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({
businessId: '670000000000000000000003',
currency: 'NGN',
requestedAmount: 500000,
managementType: 'fromLoan',
financeCategory: 'purchaseOrder',
purchaseOrderTitle: 'Supplier order',
purchaseOrderAmount: 750000,
purchaseOrderUrl: 'https://example.com/purchase-order.pdf',
contractAgreement: 'https://example.com/contract.pdf',
contractEmployer: {
firstName: 'Ada',
lastName: 'Okafor',
phoneNumber: '+2348000000000',
email: '[email protected]',
businessName: 'Example Trading Ltd'
},
isDraft: false
})
};
fetch('https://api.tradevu.co/v1/api/finance/payables', 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/finance/payables",
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([
'businessId' => '670000000000000000000003',
'currency' => 'NGN',
'requestedAmount' => 500000,
'managementType' => 'fromLoan',
'financeCategory' => 'purchaseOrder',
'purchaseOrderTitle' => 'Supplier order',
'purchaseOrderAmount' => 750000,
'purchaseOrderUrl' => 'https://example.com/purchase-order.pdf',
'contractAgreement' => 'https://example.com/contract.pdf',
'contractEmployer' => [
'firstName' => 'Ada',
'lastName' => 'Okafor',
'phoneNumber' => '+2348000000000',
'email' => '[email protected]',
'businessName' => 'Example Trading Ltd'
],
'isDraft' => false
]),
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/finance/payables"
payload := strings.NewReader("{\n \"businessId\": \"670000000000000000000003\",\n \"currency\": \"NGN\",\n \"requestedAmount\": 500000,\n \"managementType\": \"fromLoan\",\n \"financeCategory\": \"purchaseOrder\",\n \"purchaseOrderTitle\": \"Supplier order\",\n \"purchaseOrderAmount\": 750000,\n \"purchaseOrderUrl\": \"https://example.com/purchase-order.pdf\",\n \"contractAgreement\": \"https://example.com/contract.pdf\",\n \"contractEmployer\": {\n \"firstName\": \"Ada\",\n \"lastName\": \"Okafor\",\n \"phoneNumber\": \"+2348000000000\",\n \"email\": \"[email protected]\",\n \"businessName\": \"Example Trading Ltd\"\n },\n \"isDraft\": false\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/finance/payables")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"businessId\": \"670000000000000000000003\",\n \"currency\": \"NGN\",\n \"requestedAmount\": 500000,\n \"managementType\": \"fromLoan\",\n \"financeCategory\": \"purchaseOrder\",\n \"purchaseOrderTitle\": \"Supplier order\",\n \"purchaseOrderAmount\": 750000,\n \"purchaseOrderUrl\": \"https://example.com/purchase-order.pdf\",\n \"contractAgreement\": \"https://example.com/contract.pdf\",\n \"contractEmployer\": {\n \"firstName\": \"Ada\",\n \"lastName\": \"Okafor\",\n \"phoneNumber\": \"+2348000000000\",\n \"email\": \"[email protected]\",\n \"businessName\": \"Example Trading Ltd\"\n },\n \"isDraft\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tradevu.co/v1/api/finance/payables")
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 \"businessId\": \"670000000000000000000003\",\n \"currency\": \"NGN\",\n \"requestedAmount\": 500000,\n \"managementType\": \"fromLoan\",\n \"financeCategory\": \"purchaseOrder\",\n \"purchaseOrderTitle\": \"Supplier order\",\n \"purchaseOrderAmount\": 750000,\n \"purchaseOrderUrl\": \"https://example.com/purchase-order.pdf\",\n \"contractAgreement\": \"https://example.com/contract.pdf\",\n \"contractEmployer\": {\n \"firstName\": \"Ada\",\n \"lastName\": \"Okafor\",\n \"phoneNumber\": \"+2348000000000\",\n \"email\": \"[email protected]\",\n \"businessName\": \"Example Trading Ltd\"\n },\n \"isDraft\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "Payable finance created successfully",
"data": {
"_id": "<string>",
"financeType": "payable_finance",
"platform": "api",
"status": "pending",
"currency": "NGN",
"requestedAmount": 123,
"bankStatement": {
"_id": "<string>",
"name": "bankStatement",
"status": "valid",
"url": "<string>",
"business": "<string>",
"expiryDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"boardResolution": {
"_id": "<string>",
"name": "bankStatement",
"status": "valid",
"url": "<string>",
"business": "<string>",
"expiryDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"payableFinance": {},
"receivableFinance": {},
"inventoryFinance": {},
"paymentFinance": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"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"
}
}{
"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"
}
}{
"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"
}
}Create payable finance
Create payable finance for the authenticated business. Valid bank statement and board resolution documents are required, including for drafts. An existing wallet in the requested currency is required. Non-draft requests are subject to the business active-finance limit for this type. Set isDraft to true to save a draft; document, wallet, and database requirements still apply. See the Finance guide for conditional fields.
curl --request POST \
--url https://api.tradevu.co/v1/api/finance/payables \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"businessId": "670000000000000000000003",
"currency": "NGN",
"requestedAmount": 500000,
"managementType": "fromLoan",
"financeCategory": "purchaseOrder",
"purchaseOrderTitle": "Supplier order",
"purchaseOrderAmount": 750000,
"purchaseOrderUrl": "https://example.com/purchase-order.pdf",
"contractAgreement": "https://example.com/contract.pdf",
"contractEmployer": {
"firstName": "Ada",
"lastName": "Okafor",
"phoneNumber": "+2348000000000",
"email": "[email protected]",
"businessName": "Example Trading Ltd"
},
"isDraft": false
}
'import requests
url = "https://api.tradevu.co/v1/api/finance/payables"
payload = {
"businessId": "670000000000000000000003",
"currency": "NGN",
"requestedAmount": 500000,
"managementType": "fromLoan",
"financeCategory": "purchaseOrder",
"purchaseOrderTitle": "Supplier order",
"purchaseOrderAmount": 750000,
"purchaseOrderUrl": "https://example.com/purchase-order.pdf",
"contractAgreement": "https://example.com/contract.pdf",
"contractEmployer": {
"firstName": "Ada",
"lastName": "Okafor",
"phoneNumber": "+2348000000000",
"email": "[email protected]",
"businessName": "Example Trading Ltd"
},
"isDraft": False
}
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({
businessId: '670000000000000000000003',
currency: 'NGN',
requestedAmount: 500000,
managementType: 'fromLoan',
financeCategory: 'purchaseOrder',
purchaseOrderTitle: 'Supplier order',
purchaseOrderAmount: 750000,
purchaseOrderUrl: 'https://example.com/purchase-order.pdf',
contractAgreement: 'https://example.com/contract.pdf',
contractEmployer: {
firstName: 'Ada',
lastName: 'Okafor',
phoneNumber: '+2348000000000',
email: '[email protected]',
businessName: 'Example Trading Ltd'
},
isDraft: false
})
};
fetch('https://api.tradevu.co/v1/api/finance/payables', 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/finance/payables",
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([
'businessId' => '670000000000000000000003',
'currency' => 'NGN',
'requestedAmount' => 500000,
'managementType' => 'fromLoan',
'financeCategory' => 'purchaseOrder',
'purchaseOrderTitle' => 'Supplier order',
'purchaseOrderAmount' => 750000,
'purchaseOrderUrl' => 'https://example.com/purchase-order.pdf',
'contractAgreement' => 'https://example.com/contract.pdf',
'contractEmployer' => [
'firstName' => 'Ada',
'lastName' => 'Okafor',
'phoneNumber' => '+2348000000000',
'email' => '[email protected]',
'businessName' => 'Example Trading Ltd'
],
'isDraft' => false
]),
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/finance/payables"
payload := strings.NewReader("{\n \"businessId\": \"670000000000000000000003\",\n \"currency\": \"NGN\",\n \"requestedAmount\": 500000,\n \"managementType\": \"fromLoan\",\n \"financeCategory\": \"purchaseOrder\",\n \"purchaseOrderTitle\": \"Supplier order\",\n \"purchaseOrderAmount\": 750000,\n \"purchaseOrderUrl\": \"https://example.com/purchase-order.pdf\",\n \"contractAgreement\": \"https://example.com/contract.pdf\",\n \"contractEmployer\": {\n \"firstName\": \"Ada\",\n \"lastName\": \"Okafor\",\n \"phoneNumber\": \"+2348000000000\",\n \"email\": \"[email protected]\",\n \"businessName\": \"Example Trading Ltd\"\n },\n \"isDraft\": false\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/finance/payables")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"businessId\": \"670000000000000000000003\",\n \"currency\": \"NGN\",\n \"requestedAmount\": 500000,\n \"managementType\": \"fromLoan\",\n \"financeCategory\": \"purchaseOrder\",\n \"purchaseOrderTitle\": \"Supplier order\",\n \"purchaseOrderAmount\": 750000,\n \"purchaseOrderUrl\": \"https://example.com/purchase-order.pdf\",\n \"contractAgreement\": \"https://example.com/contract.pdf\",\n \"contractEmployer\": {\n \"firstName\": \"Ada\",\n \"lastName\": \"Okafor\",\n \"phoneNumber\": \"+2348000000000\",\n \"email\": \"[email protected]\",\n \"businessName\": \"Example Trading Ltd\"\n },\n \"isDraft\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tradevu.co/v1/api/finance/payables")
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 \"businessId\": \"670000000000000000000003\",\n \"currency\": \"NGN\",\n \"requestedAmount\": 500000,\n \"managementType\": \"fromLoan\",\n \"financeCategory\": \"purchaseOrder\",\n \"purchaseOrderTitle\": \"Supplier order\",\n \"purchaseOrderAmount\": 750000,\n \"purchaseOrderUrl\": \"https://example.com/purchase-order.pdf\",\n \"contractAgreement\": \"https://example.com/contract.pdf\",\n \"contractEmployer\": {\n \"firstName\": \"Ada\",\n \"lastName\": \"Okafor\",\n \"phoneNumber\": \"+2348000000000\",\n \"email\": \"[email protected]\",\n \"businessName\": \"Example Trading Ltd\"\n },\n \"isDraft\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "Payable finance created successfully",
"data": {
"_id": "<string>",
"financeType": "payable_finance",
"platform": "api",
"status": "pending",
"currency": "NGN",
"requestedAmount": 123,
"bankStatement": {
"_id": "<string>",
"name": "bankStatement",
"status": "valid",
"url": "<string>",
"business": "<string>",
"expiryDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"boardResolution": {
"_id": "<string>",
"name": "bankStatement",
"status": "valid",
"url": "<string>",
"business": "<string>",
"expiryDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"payableFinance": {},
"receivableFinance": {},
"inventoryFinance": {},
"paymentFinance": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"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"
}
}{
"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"
}
}{
"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
NGN, USD, USDT, USDC, KES, GHS, CNGN Requested amount in currency units. Also needed when saving a draft.
Save a draft. Document, wallet, and persistence checks still apply.
fromLoan, separate purchaseOrder, transaction, freightPayment Hosted contract agreement URL; required for non-draft requests.
11Required for non-draft purchaseOrder finance.
Show child attributes
Show child attributes
Required for transaction finance, including drafts.
Required for freightPayment finance, including drafts.
Optional authorized sub-business ID in the JSON payload.
"670000000000000000000003"
Response
Finance created or saved as a draft.
For drafts: 'Payable finance saved successfully as a draft'.
"Payable finance created successfully"
Finance record with populated type-specific details. Additional fields may be returned. Creation status is pending, or draft when isDraft is true.
Show child attributes
Show child attributes
false