Create Biller Reseller Order
curl --request POST \
--url https://api.payvessel.com/vaas/api/v1/biller-reseller/orders \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--header 'api-secret: <api-key>' \
--data '
{
"biller_id": "<string>",
"item_id": "<string>",
"recharge_account": "<string>",
"amount": 123,
"reference": "<string>",
"webhook_url": "<string>"
}
'import requests
url = "https://api.payvessel.com/vaas/api/v1/biller-reseller/orders"
payload = {
"biller_id": "<string>",
"item_id": "<string>",
"recharge_account": "<string>",
"amount": 123,
"reference": "<string>",
"webhook_url": "<string>"
}
headers = {
"api-key": "<api-key>",
"api-secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'api-key': '<api-key>',
'api-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
biller_id: '<string>',
item_id: '<string>',
recharge_account: '<string>',
amount: 123,
reference: '<string>',
webhook_url: '<string>'
})
};
fetch('https://api.payvessel.com/vaas/api/v1/biller-reseller/orders', 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.payvessel.com/vaas/api/v1/biller-reseller/orders",
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([
'biller_id' => '<string>',
'item_id' => '<string>',
'recharge_account' => '<string>',
'amount' => 123,
'reference' => '<string>',
'webhook_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>",
"api-secret: <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.payvessel.com/vaas/api/v1/biller-reseller/orders"
payload := strings.NewReader("{\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\",\n \"recharge_account\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"webhook_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("api-secret", "<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.payvessel.com/vaas/api/v1/biller-reseller/orders")
.header("api-key", "<api-key>")
.header("api-secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\",\n \"recharge_account\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"webhook_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payvessel.com/vaas/api/v1/biller-reseller/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["api-secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\",\n \"recharge_account\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"webhook_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_id": "<string>",
"merchant_reference": "<string>",
"order_reference": "<string>",
"category": "<string>",
"biller_id": "<string>",
"item_id": "<string>",
"recharge_account": "<string>",
"amount": 123,
"error_message": "<string>",
"wallet_transaction_id": "<string>",
"created_datetime": "2023-11-07T05:31:56Z",
"updated_datetime": "2023-11-07T05:31:56Z",
"completed_datetime": "2023-11-07T05:31:56Z"
}
}{
"status": false,
"message": "<string>",
"data": null,
"timestamp": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"status": false,
"message": "<string>",
"data": null,
"timestamp": "2023-11-07T05:31:56Z"
}{
"status": false,
"message": "<string>",
"data": null,
"timestamp": "2023-11-07T05:31:56Z"
}Biller Reseller
Create Order
Create a biller reseller order and charge the merchant wallet
POST
/
vaas
/
api
/
v1
/
biller-reseller
/
orders
Create Biller Reseller Order
curl --request POST \
--url https://api.payvessel.com/vaas/api/v1/biller-reseller/orders \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--header 'api-secret: <api-key>' \
--data '
{
"biller_id": "<string>",
"item_id": "<string>",
"recharge_account": "<string>",
"amount": 123,
"reference": "<string>",
"webhook_url": "<string>"
}
'import requests
url = "https://api.payvessel.com/vaas/api/v1/biller-reseller/orders"
payload = {
"biller_id": "<string>",
"item_id": "<string>",
"recharge_account": "<string>",
"amount": 123,
"reference": "<string>",
"webhook_url": "<string>"
}
headers = {
"api-key": "<api-key>",
"api-secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'api-key': '<api-key>',
'api-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
biller_id: '<string>',
item_id: '<string>',
recharge_account: '<string>',
amount: 123,
reference: '<string>',
webhook_url: '<string>'
})
};
fetch('https://api.payvessel.com/vaas/api/v1/biller-reseller/orders', 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.payvessel.com/vaas/api/v1/biller-reseller/orders",
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([
'biller_id' => '<string>',
'item_id' => '<string>',
'recharge_account' => '<string>',
'amount' => 123,
'reference' => '<string>',
'webhook_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>",
"api-secret: <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.payvessel.com/vaas/api/v1/biller-reseller/orders"
payload := strings.NewReader("{\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\",\n \"recharge_account\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"webhook_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("api-secret", "<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.payvessel.com/vaas/api/v1/biller-reseller/orders")
.header("api-key", "<api-key>")
.header("api-secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\",\n \"recharge_account\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"webhook_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payvessel.com/vaas/api/v1/biller-reseller/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["api-secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\",\n \"recharge_account\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"webhook_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_id": "<string>",
"merchant_reference": "<string>",
"order_reference": "<string>",
"category": "<string>",
"biller_id": "<string>",
"item_id": "<string>",
"recharge_account": "<string>",
"amount": 123,
"error_message": "<string>",
"wallet_transaction_id": "<string>",
"created_datetime": "2023-11-07T05:31:56Z",
"updated_datetime": "2023-11-07T05:31:56Z",
"completed_datetime": "2023-11-07T05:31:56Z"
}
}{
"status": false,
"message": "<string>",
"data": null,
"timestamp": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"status": false,
"message": "<string>",
"data": null,
"timestamp": "2023-11-07T05:31:56Z"
}{
"status": false,
"message": "<string>",
"data": null,
"timestamp": "2023-11-07T05:31:56Z"
}Authorizations
Your PayVessel business API key.
Your PayVessel business API secret.
Body
application/json
Maximum string length:
64Pattern:
^[a-zA-Z0-9_\-]+$Maximum string length:
64Pattern:
^[a-zA-Z0-9_\-]+$Maximum string length:
15Amount in naira
Unique merchant order reference
Maximum string length:
32Webhook URL for order status notifications
Maximum string length:
512⌘I
