Suspend Key

Overview

This endpoint is used to suspend (temporarily deactivates) a specific Bre-B key associated with a customer account.

Endpoint Details

DefinitionDescription
Endpointhttps://bre-b-sandbox.api.visionamos.passportfintech.com/v1/paas/entities/customers/accounts/keys/suspend
MethodPATCH
HeadersContent-type: application/json, Authorization
AuthenticationAccess Token (Bearer Token)

Request Body

ParameterTypeDescription
idstringThe unique identifier of the key to suspend.

Example Request

JSON
Copy

Response

  • HTTP Status Code: 200 OK.
  • The response will contain the key status: SUSP (suspended)

Example of Response

JSON
Copy

Common Errors and Handling

HTTP Status CodeMeaningDescription
400Bad RequestMissing or invalid id field
401UnauthorizedMissing or invalid bearer token
403ForbiddenInsufficient scope or access rights
404Not FoundKey with given id does not exist

Best Practices

  • Refresh OAuth tokens before they expire to avoid authentication failures.
  • Validate input data like the id before sending to reduce 400 Errors.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard