Reject transaction

This endpoint is used to reject a specific escrow transaction.

Reject transaction

POST v2/escrow/transaction/reject/:recipient_user_id

Params

NameTypeDescripion

recipient_user_id

String

The user_id of the transaction recipient

Headers

NameTypeDescription

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"
}

Last updated