Account Closure Requests for Admin
GET /admin/accounts/closure-request
Description
Retrieve all account closure requests based on specified criteria. This endpoint provides administrators with the ability to filter and review closure requests for better account management.
Notes:
- Pagination is supported through the
pageNumberandpageSizeparameters. - The endpoint allows administrators to filter closure requests based on various criteria such as wallet user IDs, currencies, and request statuses.
- Proper authorization, including the tenant ID and country code, is required for accurate results.
Parameters
| Name | Type | Description | Required/Optional |
|---|---|---|---|
| pageNumber | integer($int32) | The page number for pagination. Default is 1. | Optional |
| pageSize | integer($int32) | The number of items to be returned per page. Default is 10. | Optional |
| walletUserIds | array[string] | Filter closure requests by wallet user IDs. | Optional |
| userProfileIds | array[string] | Filter closure requests by user profile IDs. | Optional |
| currencies | array[string] | Filter closure requests by currency. | Optional |
| reasons | array[string] | Filter closure requests by closure reasons. | Optional |
| requestStatuses | array[string] | Filter closure requests by request statuses. | Optional |
| startDate | string($date-time) | Filter closure requests by start date. | Optional |
| endDate | string($date-time) | Filter closure requests by end date. | Optional |
| tenantId | string | Filter closure requests by tenant ID. |
Try it yourself
cURL
curl --location 'http://20.87.230.105/platform/wallets/admin/accounts/closure-request' \
--header 'apiKey: 6987f1c0-f01f-4b31-86e5-416ccaa906de' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NGQ2NmNmYWQ2NWQ1NTNhZDYwOTBiY2IiLCJmaXJzdE5hbWUiOiJTQUJJIE5HIiwibGFzdE5hbWUiOiJQbGF0Zm9ybSIsInVzZXJuYW1lIjoidGVjaEBzYWJpLmFtIiwicGFzc3dvcmQiOm51bGwsInR5cGUiOiJVU0VSIiwiY291bnRyeSI6eyJuYW1lIjoiTmlnZXJpYSIsImNvZGUiOiJORyIsImN1cnJlbmN5IjoiTkdOIiwiX2lkIjoiNjRkNjZjZmFkNjVkNTUzYWQ2MDkwYmNjIn0sInRlbmFudHMiOlsiNjRkYjY4NmIzZjljNGJjMThkNWM2NTA3IiwiNjRmYjMzYjEwMTUzMWNkYWFhZTlkMzM5Il0sInJvbGVzIjpbIlRFTkFOVF9TVVBFUl9BRE1JTiIsIlRFTkFOVF9BRE1JTiJdLCJpYXQiOjE3MDIyOTgyODgsImV4cCI6MTcwMjkwMzA4OH0.9BIMwE8o52p1-KPX9M7xmtXVNC86yWypbUejtMpvJC8'
StartFragment
Response Code: 200 - OK
Description
Account closure requests returned successfully.
Example
<response>
<status>true</status>
<statusCode>0</statusCode>
<message>string</message>
<data></data>
<errors>
<error>
<message>string</message>
<descriptiveMessage>string</descriptiveMessage>
</error>
</errors>
</response>
Response Code: 400 - Bad Request
Description
Invalid account id.
Example Value
<response>
<status>false</status>
<statusCode>400</statusCode>
<message>Invalid account id</message>
<data></data>
<errors>
<error>
<message>Invalid account id</message>
<descriptiveMessage>string</descriptiveMessage>
</error>
</errors>
</response>
curlUrl: "/admin/accounts/closure-request" curlMethod: GET
Response Code: 404 - Not Found
Description
Account ID not found.
Example
<response>
<status>false</status>
<statusCode>404</statusCode>
<message>Account id not found</message>
<data></data>
<errors>
<error>
<message>Account id not found</message>
<descriptiveMessage>string</descriptiveMessage>
</error>
</errors>
</response>
Method: GET
>http://20.87.230.105/platform/wallets/admin/accounts/closure-request
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
🔑 Authentication bearer
| Param | value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request GET \
--url /admin/accounts/closure-request \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!