Unlock access for the customer

Unlock Access for the Customer

This endpoint allows authorized systems to unlock access to a customer's account by specifying their profile ID. It restores normal account functionality for customers whose access has been restricted due to security protocols or administrative actions. Use this endpoint to minimize disruption and allow customers to resume their standard banking operations promptly.

Endpoint

POST /netevia/unlockaccess/{profileId}

Authentication

Bearer token required. Obtain via:

POST https://api.banking.netevia.dev/api/auth/v2

Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.

When to use

Use this endpoint when a customer's account access has been suspended or locked and needs to be restored. This is appropriate after the reason for the lock has been resolved — such as a completed security review, identity verification, or after a customer-initiated hold has been lifted. This endpoint ensures that access restoration follows secure, auditable processes.

Path Parameters

ParameterTypeRequiredDescription
profileIdinteger (int32)YesThe unique identifier of the customer profile whose access is to be unlocked.

Response

200 OK

The response may return one of two schema variants depending on context. Both extend a common boarding response structure.

boardingresponse fields:

FieldTypeDescription
profileIdinteger (int32)The profile ID of the customer whose access was unlocked.
errorsstring or nullError message if the operation encountered an issue; null on success.
successbooleanIndicates whether the unlock operation completed successfully.
changeLogarray or nullList of change log entries describing what was modified during the operation.

changeLog item fields:

FieldTypeDescription
requestTypeinteger (int32)Enum value representing the type of banking request that was processed.
changesstring or nullDescription of the specific change that was applied.

openfinancialaccountresponse (extends boardingresponse — returned when a financial account action is also performed):

FieldTypeDescription
financialAccountIdstring or nullThe identifier of the financial account affected, if applicable.
{
  "profileId": 100234,
  "errors": null,
  "success": true,
  "changeLog": [
    {
      "requestType": 3,
      "changes": "Account access restored for profile 100234."
    }
  ]
}

Error Codes

CodeWhen it happens
400Missing required fields or validation error
401Token missing, expired, or invalid
403Insufficient permissions to unlock the specified profile
404Profile not found for the provided profileId
500Internal server error

Common Mistakes

  • Providing a profileId that does not exist or belongs to a different partner's customer, resulting in a 404 or 403 error.
  • Using an expired Bearer token — tokens last only 10 minutes and must be refreshed before making this call.
  • Attempting to unlock an account that is not currently locked, which may result in a no-op or an unexpected error response.
  • Omitting the profileId path parameter, which will cause the request to route to an incorrect or non-existent endpoint.

Related Endpoints

  • POST /netevia/lockaccess/{profileId} — Restricts access to a customer's account by profile ID.
  • POST /api/auth/v2 — Obtain a Bearer authentication token.
  • POST /api/auth/refresh — Refresh an existing Bearer token before it expires.

Example

curl -X POST https://api.banking.netevia.dev/netevia/unlockaccess/100234 \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"
Path Params
int32
required
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json