Reject a transaction

Rejecting a transaction is the second possible action that can be carried out when a user receives a new transaction.

When the other party in a transaction receives a new transaction request in situations when the and created and sent to the other party, they have to agree to the transaction terms before the transaction is allowed to proceed.

post
reject a transaction

https://api.vesicash.com/v1/transactions/reject
Request
Response
Request
Headers
Accept
required
string
application/json
V-PRIVATE-KEY
required
string
your vesicash private key
Form Data Parameters
transaction_id
required
string
id of the transaction
reason
optional
string
the reason why you reject the transaction
Response
200: OK
{
"status": "ok",
"code": 200,
"message": "Transaction Rejected"
"data": null
}

For example, you can a make a post request to the endpoint above and pass in the json data below to reject a transaction.

{
“transaction_id”: “F2SUkXINIJ6ALjDmt3cT”,
"reason": "I am rejecting this transaction because the amount stated is not what we discussed"
}