Vesicash API V1
Search…
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!