Vesicash API V1
Search…
Create a oneoff transaction
One-off transactions are necessary for buying and selling of services where the seller get the money all at once upon delivery of the service.
Specify type attribute to 'oneoff'.
post
https://api.vesicash.com/v1
/transactions/create
create a oneoff 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 one-off transaction.
1
{
2
"title" : "Design a house plan",
3
"type" : "oneoff",
4
"quantity": 1,
5
"amount": 700000,
6
"description": "An architectural design of a 3 bedroom apartment in lekki",
7
"parties": {
8
"buyer" : 6751951308,
9
"charge_bearer": 9752720388,
10
"sender": 9752720388,
11
"seller": 9752720388,
12
"recipient": 6751951308
13
},
14
"due_date": "2/12/2020",
15
"inspection_period": 1,
16
"currency": "NGN"
17
}
Copied!
And if the one-off transaction requires an upload of files such as photos or contracts from other sources, all you need to do is pass in the files url as shown below:
See how to upload files to our server and get the file url.
1
{
2
"title" : "Design a house plan",
3
"type" : "oneoff",
4
"quantity": 1,
5
"amount": 700000,
6
"description": "An architectural design of a 3 bedroom apartment in lekki",
7
"parties": {
8
"buyer" : 6751951308,
9
"charge_bearer": 9752720388,
10
"sender": 9752720388,
11
"seller": 9752720388,
12
"recipient": 6751951308
13
},
14
"files": [
15
{
16
"url": "https://linktodocument.com/contract.pdf"
17
},
18
{
19
"url": "https://linktophoto.com/photo.png"
20
}
21
],
22
"due_date": "2/12/2020",
23
"inspection_period": 1,
24
"currency": "NGN"
25
}
Copied!