unblock an account
POST /api/v1/Accounts/unblock
Description
This endpoint allows you to unblock a previously blocked account. When an account is unblocked, its access and usage restrictions are lifted.
Request
-
Path Parameters:
- version: API version (string)
-
Headers:
- Accept-Language: Change default response message language from English(en). Available languages fr,en
-
Request Body:
- AccountStatusRequest: Represents the request to change the status of an account (object)
Responses
-
200: Success. Returns a StringResponse.
-
400: Bad Request. The request is not valid.
Examples
Request
httpCopy codePOST /api/v{version}/Accounts/unblock HTTP/1.1
Host: example.com
Accept-Language: en
Content-Type: application/json
{
"accountId": "1234",
"status": "ACTIVE"
}
Response
httpCopy codeHTTP/1.1 200 OK
{
"message": "The account has been successfully unblocked."
}
Error Response
httpCopy codeHTTP/1.1 400 Bad Request
{
"message": "Invalid account ID."
}
/api/v`{{version}}`/Accounts/unblock
Headers
| Content-Type | Value |
|---|---|
| Accept-Language |
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Headers
| Content-Type | Value |
|---|---|
| Accept | text/plain |
Body (raw)
{
"accountNumber": `<string>`
}
Response: 200
{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}
Response: 400
{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}
LANGUAGE
CURL REQUEST
curl --request POST \
--url /api/v1/Accounts/unblock \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!