Accept terms and conditions of a transaction specified in the path variable transactionID base on the query variable target which could be either buyer or seller
Path Parameters
Name
Type
Description
transactionID*
String
Transaction transactionID
Query Parameters
Name
Type
Description
target*
String
Target either the buyer or seller of the specified transaction. This could be either buyer or seller
Get List of Recent Transactions
GET{{url}}/v1/transaction/recent/:limit/:filter
Returns list of most recent transactions
Path Parameters
Name
Type
Description
limit
String
The number of results to be returned. The default number is 10
filter
String
Filter Transaction, if sales filter based on the seller. if purchase filter is based on the buyer, else filter is on either buyer or seller
Query Parameters
Name
Type
Description
currency
String
Currency code. The default value is NGN
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Calculate Vahlid Transaction Charge
GET{{url}}/v1/transaction/charge
Calculate Vahlid transaction charges based on the query value passed in the variable amount
Query Parameters
Name
Type
Description
amount*
String
Amount to be calculated
currency*
String
Currency code of the amount provided E.g NGN, GHS
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Cancel Transaction
GET{{url}}/v1/transaction/cancel/:trans_id
Cancel the Transaction specified in the path variable trans_id by setting the status to cancelled.
Path Parameters
Name
Type
Description
trans_id*
String
Transaction trans_id of the transaction to be cancelled
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Get Total Transaction Sales
GET{{url}}/v1/transaction/sales/total
Return the total amount of completed transaction sales of a user (seller) based on the currency provided in the query value currency.
Query Parameters
Name
Type
Description
currency*
String
Currency code of the transaction E.g NGN, GHS
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Get Total Transaction Purchases
GET{{url}}/v1/transaction/purchases/total
Return the total amount of completed transaction purchases of a user (buyer) based on the currency provided in the query value currency.
Query Parameters
Name
Type
Description
currency*
String
Currency code on the transaction E.g NGN, GHS
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Get Transactions Count
GET{{url}}/v1/transaction/count
Return the number of transactions done by a user.
Query Parameters
Name
Type
Description
currency
String
Currency code of the transaction to be returned E.g NGN, GHS
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Search Users' Transactions
GET{{url}}/v1/transaction/search
Return a list of a matched user's transactions based on the value specified in the query variablesearchQuery.
Query Parameters
Name
Type
Description
limit
String
The number of results to be return. The default is 10
page
String
Page of the transaction to be returned. The default is 1 (first page).
searchQuery*
String
Text that will return a matching transaction. Text is case-insensitive.
is_service
String
Set the transaction to be a service if the value istrue. If not provided returns false.
is_seller
String
If the value is true set the user of a transaction as a seller, else as a buyer. If not provided returns false.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Get Single Transaction
GET{{url}}/v1/transaction/:trans_id
Returns a single transaction specified in the path variable trans_id
Path Parameters
Name
Type
Description
trans_id*
String
Transaction trans_id
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Get All Transactions for A Single User
GET{{url}}/v1/transaction
Return a list of all the transactions done by a user.
Query Parameters
Name
Type
Description
limit
String
The number of results to be returned. The default is 10
page
String
Page of the transaction to be returned. The default is 1 (first page).
fields
String
Transaction fields or key values to be returned by the transaction data E.g source, dev_mode, products_price
sort
String
Arrange the data returned in a specific order, either in ascending or descending order, based on one or more fields.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Get Transaction Monthly Summary
GET{{url}}/v1/transaction/month-summary
Returns the summary of all completed transactions of a user
Query Parameters
Name
Type
Description
position
String
Filter transaction with the value specified here. The value could be either buyer or seller. Return zero for each month, if nothing is provided.
type
String
If the provided value is service sets the transaction's field is_service to true, else set it to false. By default, is false
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Product Purchase Transaction
POST{{url}}/v1/transaction/product/purchase
Make a purchase for a product. Return a new transaction data populated with buyer and seller data.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Request Body
Name
Type
Description
currency*
String
Currency code E.g NGN, GHS
delivery_addr
String
Address where the product can be delivered.
pay_deadline
String
Deadline to make payment for the product E.g Wed, 7 June 2023 13:47:13 GMT
deadline_action
String
The action to be taken when the deadline reaches. The value provided should be either nothing or delete. The default value is nothing.
products*
Array<Object>
List of product objects that include the name, product description, product image URL and price to be purchased. E.g
[
{
"name": "Irish Potatoes",
"prod_desc": "Perishable food",
"prod_image": "https://prod_image.jpeg"
"prod_price": "5000"
},
],
promoCode
String
Promo code
vahlid_id*
String
Seller's Vahlid ID or email E.g 68985022, example@email.com
Service Purchase Transaction
POST{{url}}/v1/transaction/service/purchase
Make a purchase for service(s). Return a new transaction data populated with buyer and seller data.
Query Parameters
Name
Type
Description
currency*
String
Currency code E.g NGN, GHS
delivery_addr
String
Address where the product can be delivered.
pay_deadline
String
Deadline to make payment for the product E.g Wed, 7 June 2023 13:47:13 GMT
deadline_action
String
The action to be taken when the deadline reaches. The value provided should be either nothing or delete. The default value is nothing.
products*
Array<Object>
List of product objects that include the name, product description, product image URL and price to be purchased. E.g
[
{
"name": "Home Lesson",
"prod_desc": "Household lesson for kids",
"prod_image": "https://prod_image.jpeg"
"prod_price": "25000"
},
],
promoCode
String
Promo code
vahlid_id*
String
Seller's Vahlid ID or email E.g 68985022, example@email.com
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Product Sale Transaction
POST{{url}}/v1/transaction/product/sale
Make sales for a product(s). Return a new transaction data populated with buyer and seller data.
Query Parameters
Name
Type
Description
currency*
String
Currency code E.g NGN, GHS
vahlid_id*
String
Buyer's Vahlid ID or email E.g 68985022, example@email.com
promoCode
String
Promo code
products*
Array<Object>
List of product objects that include the name, product description, product image URL and price to be purchased. E.g
[
{
"name": "Irish Potatoes",
"prod_desc": "Perishable food",
"prod_image": "https://prod_image.jpeg"
"prod_price": "5000"
},
],
deadline_action
String
The action to be taken when the deadline reaches. The value provided should be either nothing or delete. The default value is nothing.
pay_deadline
String
Deadline to make payment for the product E.g Wed, 7 June 2023 13:47:13 GMT
delivery_addr
String
Address where the product can be delivered.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Service Sale Transaction
POST{{url}}/v1/transaction/service/sale
Make sales for service(s). Return a new transaction data populated with buyer and seller data.
Query Parameters
Name
Type
Description
currency*
String
Currency code E.g NGN, GHS
vahlid_id*
String
Buyer's Vahlid ID or email E.g 68985022, example@email.com
promoCode
String
Promo code
products*
Array<Object>
List of product objects that include the name, product description, product image URL and price to be purchased. E.g
[
{
"name": "Cleaning",
"prod_desc": "House Cleaning",
"prod_image": "https://prod_image.jpeg"
"prod_price": "25000"
},
],
delivery_addr
String
Address where the product can be delivered.
deadline_action
String
The action to be taken when the deadline reaches. The value provided should be either nothing or delete. The default value is nothing.
pay_deadline
String
Deadline to make payment for the product E.g Wed, 7 June 2023 13:47:13 GMT
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Confirm Transaction Delivery Made
POST{{url}}/v1/transaction/ive-delivered
Return transaction data specified in the request body with is_delivery_made field set to true.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Request Body
Name
Type
Description
trans_id*
String
Transaction trans_id
Make Payment and Confirm Transaction Delivery
POST{{url}}/v1/transaction/confirm-delivery
Initiate the payment to the seller of the transaction specified by the trans_id provided in the request body, and proceed to confirm the payment and mark the transaction as complete. Return transaction data specified in the request body with is_delivery_confirmed field set to true and status set to complete.
Initializes a purchase transaction.
Returns a Vahlid Link - in the format - https://checkout.vahlid.com/transaction/{{HASH}}/track.
This link can be used by the customer to track the status of the transaction in realtime.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Request Body
Name
Type
Description
webhook
String
The webhook that should be called for status updates of the transaction.
products*
Array<Object>
An array of the products/services to be rendered.
Products must have the following String properties:
- name (required): The name of the product.
- prod_desc (required): The description for the product.
- prod_price (optional): The price for the product.
- prod_image (optional): The URLs of the images for the product.
email*
String
The email of the customer.
pay_deadline
String
Timestamp to indicate the deadline for payment.
After this deadline, if the customer has not made payment, the transaction will be cancelled.
delivery_addr*
String
Delivery Address
deadline_action
String
Action taken when the deadline reaches. The value can be eithernothing or delete.
vahlid_id*
String
The vahlid_id of the customer
promoCode
String
Promo Code
Make Payment to Seller and Confirm Transactions
POST{{url}}/v2/transactions/confirm
Initiate the payment to the seller of the transaction specified by the trans_id provided in the request body, and proceed to confirm the payment and mark the transaction as complete. Return transaction data specified in the request body with is_delivery_confirmed field set to true and status set to complete.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Request Body
Name
Type
Description
trans_id*
String
Transaction trans_id
Confirm Transaction Delivery Made
POST{{url}}/v2/transactions/ive-delivered
Return transaction data specified in trans_id in the request body with is_delivery_made field set to true.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Request Body
Name
Type
Description
trans_id*
String
Transaction trans_id
Cancel Transaction
GET{{url}}/v2/transactions/cancel/:trans_id
Cancel Transaction specified in the path variable trans_id, by setting the status field to cancelled.
Path Parameters
Name
Type
Description
trans_id*
String
Transaction trans_id of the transaction to be cancelled
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Product Purchase Transaction
POST{{url}}/v2/transactions/product/purchase
Make a purchase for a product. Return a new transaction data populated with buyer and seller data.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Request Body
Name
Type
Description
currency*
String
Currency code E.g NGN, GHS
disburse*
Object
This consist of amount, currency, exchangeRate E.g:
{
"amount": "25000",
"currency": "NGN",
"exchangeRate": 1
}
vahlid_id*
String
Seller's Vahlid ID or email E.g 68985022, example@email.com
promoCode
String
Promo code
products*
Array<Object>
List of product objects that include the name, product description, product image URL and price to be purchased. E.g
[
{
"name": "Cleaning",
"prod_desc": "House Cleaning",
"prod_image": "https://prod_image.jpeg"
"prod_price": "25000"
},
],
deadline_action
String
The action to be taken when the deadline reaches. The value provided should be either nothing or delete. The default value is nothing.
pay_deadline
String
Deadline to make payment for the product E.g Wed, 7 June 2023 13:47:13 GMT
delivery_addr
String
Address where the product can be delivered.
Product Sale Transaction
POST{{url}}/v2/transactions/product/sale
Make sales for a product. Return a new transaction data populated with buyer and seller data.
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Request Body
Name
Type
Description
vahlid_id*
String
Buyer's Vahlid ID or email E.g 68985022, example@email.com
promoCode
String
Promo code
products*
String
List of product objects that include the name, product description, product image URL and price to be purchased. E.g
[
{
"name": "Cleaning",
"prod_desc": "House Cleaning",
"prod_image": "https://prod_image.jpeg"
"prod_price": "25000"
},
],
deadline_action
String
The action to be taken when the deadline reaches. The value provided should be either nothing or delete. The default value is nothing.
pay_deadline
String
Deadline to make payment for the product E.g Wed, 7 June 2023 13:47:13 GMT
disburse*
Object
This consist of amount, currency, exchangeRate E.g:
{
"amount": "25000",
"currency": "NGN",
"exchangeRate": 1
}
delivery_addr
String
Address where the product can be delivered.
currency*
String
Currency code E.g NGN, GHS
Service Purchase Transaction
POST{{url}}/v2/transactions/service/purchase
Make a purchase for service(s). Return a new transaction data populated with buyer and seller data.
Query Parameters
Name
Type
Description
vahlid_id
String
Seller's Vahlid ID or email E.g 68985022, example@email.com
promoCode
String
Promo code
products*
Array<Object>
List of product objects that include the name, product description, product image URL and price to be purchased. E.g
[
{
"name": "Cleaning",
"prod_desc": "House Cleaning",
"prod_image": "https://prod_image.jpeg"
"prod_price": "25000"
},
],
deadline_action
String
The action to be taken when the deadline reaches. The value provided should be either nothing or delete. The default value is nothing.
pay_deadline
String
Deadline to make payment for the product E.g Wed, 7 June 2023 13:47:13 GMT
disburse*
Object
This consist of amount, currency, exchangeRate E.g:
{
"amount": "25000",
"currency": "NGN",
"exchangeRate": 1
}
delivery_addr
String
Address where the product can be delivered.
currency*
String
Currency code E.g NGN, GHS
Headers
Name
Type
Description
Authorization*
String
"Bearer <YOUR_API_KEY>"
Service Sale Transaction
POST{{url}}/v2/transactions/service/sale
Make sales for service(s). Return a new transaction data populated with buyer and seller data.
Query Parameters
Name
Type
Description
vahlid_id
String
Buyer's Vahlid ID or email E.g 68985022, example@email.com
promoCode
String
Promo code
products*
Array<Object>
List of product objects that include the name, product description, product image URL and price to be purchased. E.g
[
{
"name": "Cleaning",
"prod_desc": "House Cleaning",
"prod_image": "https://prod_image.jpeg"
"prod_price": "25000"
},
],
deadline_action
String
The action to be taken when the deadline reaches. The value provided should be either nothing or delete. The default value is nothing.
pay_deadline
String
Deadline to make payment for the product E.g Wed, 7 June 2023 13:47:13 GMT
disburse*
Object
This consist of amount, currency, exchangeRate E.g:
{
"status": "fail",
"error": {
"statusCode": 400,
"status": "fail",
"isOperational": true
},
"message": "Payment has been made for this transaction."
}
{
"status": "fail",
"error": {
"statusCode": 400,
"status": "fail",
"isOperational": true
},
"message": "Transaction has been completed."
}