Validate Recharge Account
curl --request POST \
--url https://api.payvessel.com/vaas/api/v1/biller-reseller/validate-account \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--header 'api-secret: <api-key>' \
--data '
{
"recharge_account": "<string>",
"biller_id": "<string>",
"item_id": "<string>"
}
'import requests
url = "https://api.payvessel.com/vaas/api/v1/biller-reseller/validate-account"
payload = {
"recharge_account": "<string>",
"biller_id": "<string>",
"item_id": "<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({recharge_account: '<string>', biller_id: '<string>', item_id: '<string>'})
};
fetch('https://api.payvessel.com/vaas/api/v1/biller-reseller/validate-account', 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/validate-account",
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([
'recharge_account' => '<string>',
'biller_id' => '<string>',
'item_id' => '<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/validate-account"
payload := strings.NewReader("{\n \"recharge_account\": \"<string>\",\n \"biller_id\": \"<string>\",\n \"item_id\": \"<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/validate-account")
.header("api-key", "<api-key>")
.header("api-secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"recharge_account\": \"<string>\",\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payvessel.com/vaas/api/v1/biller-reseller/validate-account")
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 \"recharge_account\": \"<string>\",\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "<string>",
"data": {
"biller": "<string>"
}
}{
"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
Validate Recharge Account
Validate a customer recharge account before placing an order
POST
/
vaas
/
api
/
v1
/
biller-reseller
/
validate-account
Validate Recharge Account
curl --request POST \
--url https://api.payvessel.com/vaas/api/v1/biller-reseller/validate-account \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--header 'api-secret: <api-key>' \
--data '
{
"recharge_account": "<string>",
"biller_id": "<string>",
"item_id": "<string>"
}
'import requests
url = "https://api.payvessel.com/vaas/api/v1/biller-reseller/validate-account"
payload = {
"recharge_account": "<string>",
"biller_id": "<string>",
"item_id": "<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({recharge_account: '<string>', biller_id: '<string>', item_id: '<string>'})
};
fetch('https://api.payvessel.com/vaas/api/v1/biller-reseller/validate-account', 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/validate-account",
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([
'recharge_account' => '<string>',
'biller_id' => '<string>',
'item_id' => '<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/validate-account"
payload := strings.NewReader("{\n \"recharge_account\": \"<string>\",\n \"biller_id\": \"<string>\",\n \"item_id\": \"<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/validate-account")
.header("api-key", "<api-key>")
.header("api-secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"recharge_account\": \"<string>\",\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payvessel.com/vaas/api/v1/biller-reseller/validate-account")
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 \"recharge_account\": \"<string>\",\n \"biller_id\": \"<string>\",\n \"item_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "<string>",
"data": {
"biller": "<string>"
}
}{
"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
⌘I
