Vesicash API V1
Search…
Vesicash API V1
Overview
API DOCUMENTATION
API Basics
Authentication
Errors
User Management
Transactions Management
Create a product transaction
Create a oneoff transaction
Create a milestone transaction
Transaction Parties
Send transaction
Agree to transaction
Reject a transaction
Funding a transaction
Fetch transaction details
Due Date Extension
Mark transaction as shipped
Accept shipped transaction
Reject shipped transaction
Listing Transactions
Dispute Management
Disbursement
Other Tools
Other Integration Methods
Widget
Plugins
Libraries
Webhooks
Customizations
Basics
Payment System
Custom Notifications
Powered By
GitBook
Create a product transaction
Consider a simple transaction between myself and a seller, where I am buying an Iphone for NGN300,000 and earpod for NGN50,000.
You need to set type attribute to 'product'
post
https://api.vesicash.com/v1
/transactions/create
Create a product transaction
As an example, you can a make a post request to the endpoint above and pass in the
raw json data
below to create a product transaction.
1
{
2
"title" : "Purchase of Iphone and Earpod",
3
"type" : "product",
4
"products": [{
5
"title": "iphone",
6
"quantity": 1,
7
"amount": 300000
8
},{
9
"title": "earpod",
10
"quantity": 1,
11
"amount": 50000
12
}],
13
"description": "Description of the purchase of Iphone and Earpod",
14
"parties": {
15
"sender" : 5841206525,
16
"recipient": 9432695230,
17
"buyer" : 5841206525,
18
"seller": 9432695230,
19
"charge_bearer": 5841206525,
20
"shipping_charge_bearer": 4865544336,
21
"shipping_charge_recipient": 4865544336
22
},
23
"shipping_fee": 500,
24
"inspection_period": 1,
25
"due_date": "2/12/2020",
26
"currency": "NGN"
27
}
Copied!
API DOCUMENTATION - Previous
Transactions Management
Next
Create a oneoff transaction
Last modified
1yr ago
Copy link
Contents
post
Create a product transaction