PUT
/
wallets
/
wallet
/
transaction
/
reverse
curl --request PUT \
  --url https://waas-staging.cafeone.ng/api/v1/wallets/wallet/transaction/reverse \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "transactionReference": "<string>",
  "organizationId": "<string>"
}'

Request Body

transactionReference
string

ID referencing the transaction reference. Example: “3fa85f64-5717-4562-b3fc-2c963f66afa6”

organizationId
string

The unique identifier for the organization.
Example: “3fa85f64-5717-4562-b3fc-2c963f66afa6”

Response

✅ Success Response

Status Code: 200 OK

{
  "code": "200",
  "success": true,
  "message": "Transaction reversed successfully.",
  "data": {
    // Additional data fields if applicable
  }
}

❌ Error Responses


Status Code: 400 Bad Request

{
  "code": "-3",
  "success": false,
  "message": "The transaction reference you have specified does not exist",
  "data": null
}

Status Code: 500 Internal Server Error

{
  "code": "500",
  "success": false,
  "message": "An unexpected error occurred",
  "data": null
}