Vesicash API Documentation V2
  • Overview
  • API DOCUMENTATION
    • API Basics
    • Authentication
    • Errors
    • Escrow Transactions
      • Create a transaction
      • Get transaction by transaction_id
      • Get transaction charges
      • Get bank lists
      • Get transactions by userid
      • Get all transactions
      • Pay for transaction
      • Send transaction invite
      • Accept transaction
      • Reject transaction
      • Mark milestone as done
      • Accept milestone delivery
      • Reject milestone delivery
      • Request due date extension
      • Approve due date extension
      • Edit transaction
      • Edit milestone
      • Edit party
      • Delete transaction
      • Webhook Notification
    • Merchant Of Record
      • Initiate MoR checkout
      • Get MoR transactions
Powered by GitBook
On this page
  • Reject transaction
  • Request body
  • Response
  1. API DOCUMENTATION
  2. Escrow Transactions

Reject transaction

This endpoint is used to reject a specific escrow transaction.

Reject transaction

POST v2/escrow/transaction/reject/:recipient_user_id

Params

Name
Type
Descripion

recipient_user_id

String

The user_id of the transaction recipient

Headers

Name
Type
Description

Accept*

string

application/json

V-PRIVATE-KEY*

string

your vesicash private key

V-PUBLIC-KEY*

String

your vesicash public key

Request body

{
    "transaction_id": "{{transaction_id}}",
    "reason": "Reason"
}
  • transaction_id (string, required): The ID of the transaction to be rejected.

  • reason (string, required): The reason for rejecting the transaction.

Response

The response is in JSON format and follows the schema

```json
{
    "status": "success",
    "code": 200,
    "message": "success",
    "data": null
}
```

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

{
    "transaction_id": "",
    "reason": "reason"
}
PreviousAccept transactionNextMark milestone as done

Last updated 10 months ago