Vesicash API V1
Search
K
Comment on page

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.
{
"title" : "Design a house plan",
"type" : "oneoff",
"quantity": 1,
"amount": 700000,
"description": "An architectural design of a 3 bedroom apartment in lekki",
"parties": {
"buyer" : 6751951308,
"charge_bearer": 9752720388,
"sender": 9752720388,
"seller": 9752720388,
"recipient": 6751951308
},
"due_date": "2/12/2020",
"inspection_period": 1,
"currency": "NGN"
}
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.
{
"title" : "Design a house plan",
"type" : "oneoff",
"quantity": 1,
"amount": 700000,
"description": "An architectural design of a 3 bedroom apartment in lekki",
"parties": {
"buyer" : 6751951308,
"charge_bearer": 9752720388,
"sender": 9752720388,
"seller": 9752720388,
"recipient": 6751951308
},
"files": [
{
"url": "https://linktodocument.com/contract.pdf"
},
{
"url": "https://linktophoto.com/photo.png"
}
],
"due_date": "2/12/2020",
"inspection_period": 1,
"currency": "NGN"
}