Delords Developer API Documentation
Build your own VTU apps, websites, or automated bots using the Delords B2B Gateway.
Base URL:
https://osdanwus.org/wp-json/vtu/v1
https://osdanwus.org/wp-json/vtu/v1
Authentication
Pass your secret API key using the x_api_key header in every request.
x_api_key: sk_live_your_secret_key_here
1. Get Available Products
GET /products
Retrieve a list of all active data bundles and their unique IDs.
curl -X GET https://osdanwus.org/wp-json/vtu/v1/products \
-H "x_api_key: sk_live_your_secret_key_here"
2. Place an Order
POST /order
Place a live order. Cost is instantly deducted from your wallet.
curl -X POST https://osdanwus.org/wp-json/vtu/v1/order \
-H "x_api_key: sk_live_your_secret_key_here" \
-H "Content-Type: application/json" \
-d '{ "product_id": 2055, "phone": "0241234567" }'
3. Check Wallet Balance
GET /balance
Retrieve your current Delords wallet balance.
curl -X GET https://osdanwus.org/wp-json/vtu/v1/balance \
-H "x_api_key: sk_live_your_secret_key_here"
Response:
{ "status": "success", "balance": 450.50, "currency": "GH₵" }
4. Check Order Status
GET /status/{order_id}
Check if a specific order has been delivered.
curl -X GET https://osdanwus.org/wp-json/vtu/v1/status/8492 \
-H "x_api_key: sk_live_your_secret_key_here"
Response:
{
"status": "success",
"order": {
"order_id": 8492,
"status": "completed",
"recipient": "0241234567"
}
}
Possible Status values: processing, completed, failed, refunded.