Title
Create new category
Edit page index title
Edit category
Edit link
Resolve Bre-B Key
Overview
This endpoint allows you to retrieve details of a specific Bre-B Key within the Passport API using the base information of the Key: key type and key value.
This will be best used when the Customer is making a one time, or irregular, Payment to the Key owner, such as at a Point of Sale (PoS) point in a restaurant, or online purchase. The Recipient is not needed to be stored so fewer API calls are needed to complete a Payment.
Endpoint Details
Definition | Description |
|---|---|
Endpoint | https://api.paas.sandbox.co.passportfintech.com/v1/resolve-key |
Method | POST |
Headers | Authorization |
Authentication | Access Token (Bearer Token) |
Request Body
Parameter | Type | Constraints | Required | Description |
|---|---|---|---|---|
customer_id | UUID | Mandatory | The unique id of the Customer making the erquest | |
key | Object | Mandatory | An object that stores the Key information. | |
key_type | ENUM |
| Optional | The type of Bre-B Key that is to be resolved. Required to be one of: Type of key. Accepted values:
|
key_value | String | Various | Mandatory | The Bre-B Key that is to be resolved. |
Example Request
Response Body
HTTP Status Code: 200 OK
The response contains the Bre-B Key metadata.
Example of Response
The response confirms the translation of the Bre-B Key to the financial information that needs to be presented to the Customer, as well as to ensure a potential Payment is routed accordingly.
Make sure to re-use the resolution_id when you are re-trying a payment. This is crucial as we guarantee that only one payment will be created with the same resolution_id. In other words, it acts as an idempotency key, ensuring that duplicate payments are not processed.
Common Errors and Handling
HTTP Status Code | Meaning | Description |
|---|---|---|
400 Bad Request | Invalid Request | The recipient ID is missing or incorrectly formatted. |
401 Unauthorized | Expired Token | The access token is invalid or has expired. |
403 Forbidden | Access Denied | The request is not authorized to retrieve this recipient. |
404 Not Found | Recipient Not Found | No recipient was found with the given ID. |
500 Internal Server Error | Server Error | An unexpected error occurred while retrieving the recipient. |
Best Practices
Use the retrieved recipient details for initiating Bre-B payments - use the
idfrom the above response to pass as theresolution_idwithin the Payment body.