Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Suspend Key
Overview
This endpoint is used to suspend (temporarily deactivates) a specific Bre-B key associated with a customer account.
Endpoint Details
Definition | Description |
|---|---|
Endpoint | https://api.paas.sandbox.co.passportfintech.com/v1/keys/:key_id/suspend |
Method | PATCH |
Headers | Content-type: application/json, Authorization |
Authentication | Access Token (Bearer Token) |
Request Body
No request body
Example Request
Response
HTTP Status Code: 200 OK.
The response will contain the key status:
SUSPENDED
Example of Response
Common Errors and Handling
HTTP Status Code | Meaning | Description |
|---|---|---|
400 | Bad Request | Missing or invalid |
401 | Unauthorized | Missing or invalid bearer token |
403 | Forbidden | Insufficient scope or access rights |
404 | Not Found | Key with given |
Best Practices
Refresh OAuth tokens before they expire to avoid authentication failures.
Validate input data like the
idbefore sending to reduce 400 Errors.