Page cover

Simulate Transaction Failure

Endpoint

POST {{}}/v1/payout/sandbox/transaction/<transaction_id>/reject

Description

This endpoint simulates the process of confirming a transaction in a sandbox environment.

URL Parameters

transaction_id (string) : The ID of the simulated transaction.

Example Request

To reject a transaction, pass the ID of the transaction to the endpoint.

POST {{}}/v1/payout/sandbox/transaction/37/reject

Response

On success, the API will return a JSON object containing the details of the requested corporate account.

{
  "status": true,
  "message": "Transaction Rejected",
  "data": {
    "id": 34,
    "senderIban": "GB1204550505050572",
    "recipientIban": "GB1204550505050573",
    "recipientName": "",
    "recipientBic": "5050573",
    "recipientBankAddress": "IBSN",
    "recipientBankCountry": "United Kingdom",
    "amount": 300,
    "reference": "ggmu",
    "type": "DEBIT",
    "centrolinkRef": "ARPY34",
    "status": "REJECTED",
    "createdAt": "2024-07-25T13:36:17.729654Z",
    "updatedAt": "2024-07-25T13:36:17.729654Z"
  },
  "code": 200
}

Last updated