Get details of closure
GET /api/v1/Accounts/closure-request/:id/get
Description
This endpoint allows you to retrieve the details of a closure request for an account.
Request
-
Path parameters:
-
id: Account Closure Request ID (UUID)
-
version: API version (string)
-
-
Headers:
- Accept-Language: Change default response message language from English(en). Available languages fr,en
Responses
-
200: Success. Returns an AccountClosureResponseResponse.
-
400: Bad Request. The request is not valid.
-
404: Not Found. The requested account or transactions were not found.
Examples
Request
HTTP
httpCopy codeGET /api/v{version}/Accounts/closure-request/{id}/get HTTP/1.1
Host: example.com
Accept-Language: en
Response
JSON
jsonCopy codeHTTP/1.1 200 OK
{
"id": "{id}",
"status": "APPROVED"
}
Error Response
JSON
jsonCopy codeHTTP/1.1 404 Not Found
{
"message": "Closure request not found."
}
/api/v1/Accounts/closure-request/:id/get
Headers
| Content-Type | Value |
|---|---|
| Accept-Language |
Headers
| Content-Type | Value |
|---|---|
| Accept | text/plain |
Response: 200
{
"succeeded": <boolean>,
"message": <string>,
"errors": [
<string>,
<string>
],
"data": {
"id": <uuid>,
"requestedBy": <string>,
"requestDate": <dateTime>,
"lastModifiedBy": <string>,
"modifiedDate": <dateTime>,
"accountId": <string>,
"closureReason": <string>,
"requestStatus": <string>
}
}
Response: 400
{
"succeeded": <boolean>,
"message": <string>,
"errors": [
<string>,
<string>
],
"data": <string>
}
Response: 404
{
"succeeded": <boolean>,
"message": <string>,
"errors": [
<string>,
<string>
],
"data": <string>
}
LANGUAGE
CURL REQUEST
curl --request GET \
--url /api/v1/Accounts/closure-request/:id/get \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!