Page cover

Simulate Account Issuance Rejection

Endpoint

POST {{}}/v1/accounts/sandbox/<request_id>/reject

Description

This endpoint simulates the process of rejecting an account issuance request in the sandbox environment.

URL Parameters

request-id (string): The request ID of the account request you want to reject.

Example Request

To reject an account issuance request, pass the ID of the requesting account to the endpoint.

POST {{}}/v1/accounts/sandbox/305fe590-3fa2-481d-bd57-2ac910cc1d28/reject

Response

On success, the API will return a JSON object containing the following details.

{
  "status": true,
  "message": "Account request rejected",
  "data": {
    "id": "1ad359bb-a89b-4577-bbfc-c7de8d3f6c61",
    "status": "REJECTED",
    "firstName": "Joshua",
    "lastName": "Simonis",
    "accountType": "USER",
    "documentData": {
        "idType": "passport",
        "poaType": "utilityBill",
        "idFileURL": "https://xxxxxxxxxxxxxxxxxxxx/passport-intl.jpeg",
        "poaFileURL": "https://xxxxxxxxxxxxxxxxxxxx/aecd-bill.jpeg"    
      },
    "createdAt": "2024-10-14T09:46:51.463Z",
    "companyId": "a636d59f-d994-439d-b67d-94b9f6cc1e7a",
    "country": "NG",
    "documentApprovals": {}
  },
  "code": 200
}

Last updated