Virtual Account
Virtual Account Service makes receiving payments from your customer seamless.
Request made without the authorization key will fail with a 401 (Service Not Authorize
) response code.
Create Static Virtual Account
This allows you to create a virtual account for merchants/agents.
Endpoint to create virtual account
POST
{{baseUrl}}/pip/softpos/create-virtual-account
The merchant super-agent can create a virtual account with this endpoint.
Headers
authorization*
String
secret-key
client-id*
String
Merchant Id
Content-Type*
String
application/json
Request Body
address*
String
customer address
customer_identifier*
String
customer's unique identifier
dob*
Date
customer date of birth (dd/mm/yyyy)
email*
String
customer email address
first_name*
String
customer first name
last_name*
String
customer last name
mobile_num*
String
customer's moblie number
gender*
String
customer gender ("1" - MALE, "2" -FEMALE )
bvn*
String
customer's bvn
{
"statusCode": 200,
"description": "Successful",
"data": {
"first_name": "Taofeek",
"last_name": "Ogunlola",
"bank_code": "058",
"virtual_account_number": "0345431014",
"customer_identifier": "12345",
"created_at": "2022-11-23T20:35:41.142Z",
"update_at":Â null
    }
}
Create POS Terminal
This allows you to create terminals for different businesses. The terminal is location-based and each location has an Id that you must include.
Endpoint for merchant to create terminal
POST
{{baseUrl}}/pip/softpos/create-terminal
Headers
Content-Type*
String
application/json
authorization*
String
secret-key
client-id*
String
Merchant ID
Request Body
name*
String
Name on terminal
email*
String
phone*
String
Phone number on terminal
location_id*
String
The Id of the terminal location
merchantId*
String
The merchant Id
{
"statusCode": 200,
"description": "Successful",
"data": {
"terminalId": null,
"enabled": false
}
}
Initiate Payment Service
This is a service which can be use to recieve payment using card, ussd and transfer. In order to SignUp for this service, the client will provide a wehbook to recieve a payment notification as part of the onboarding process.
Webhook Body
{
"transaction_reference": "TRX123456789",
"virtual_account_number": "VA987654321",
"principal_amount": "10000",
"transaction_date": "2024-09-01",
"customer_identifier": "CUST12345",
"transaction_indicator": "C",
"remarks": "Payment for invoice #INV1234",
"currency": "NGN",
"channel": "Mobile",
"sender_name": "John Doe"
}
Endpoint to initiate payment
POST
{{baseUrl}}/pip/softpos/initiate-transaction
Initiate Transaction endpoint
Headers
Content-Type
application/json
Authorization
authorization
client-id
client-id
Body
{
"amount": 100,
"callback_url": "www.payvantage.com.ng",
"customer_name": "John Doe",
"email": "john_doe@gmail.com",
"transRef": "20242112"
}
amount
string
Value in Naira
callback_url
String
https://payvantage.com.ng
customer_name
String
Customer full Name
String
Customer email
transRef
String
Transaction Reference
Response
{
"statusCode": 200,
"description": "Success",
"data": {
"currency": "NGN",
"is_recurring": "false",
"transaction_ref": "bb8b2207-4a35-42a0-8442-ca5fcf84aa77",
"transaction_amount": "100",
"authorized_channels": [
"card",
"ussd",
"bank"
],
"checkout_url": "https://pay.squadco.com/bb8b2207-4a35-42a0-8442-c5fcf84aa77"
}
}
Sample Request
Sample Response
{
"statusCode": 200,
"description": "Success",
"data": {
"currency": "NGN",
"is_recurring": "false",
"transaction_ref": "bb8b2207-4a35-42a0-8442-ca5fcf84aa77",
"transaction_amount": "100",
"authorized_channels": [
"card",
"ussd",
"bank"
],
"checkout_url": "https://pay.squadco.com/bb8b2207-4a35-42a0-8442-c5fcf84aa77"
}
}
Last updated