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

DefinitionDescription
Endpointhttps://api.paas.sandbox.co.passportfintech.com/v1/key-resolution
MethodPOST
HeadersAuthorization
AuthenticationAccess Token (Bearer Token)

Request Body

ParameterTypeConstraintsRequiredDescription
customer_idUUID-MandatoryThe unique id of the Customer making the erquest
keyObjectMandatoryAn object that stores the Key information.
key_typeENUMPHONE, EMAIL, ID, ALPHA, BCODEMandatory

The type of Bre-B Key that is to be resolved. Required to be one of:

Type of key. Accepted values:

ID : Document Number.

PHONE: Mobile Phone Number.

EMAIL: Email.

ALPHA: Alphanumeric Number.

BCODE: Commercial Entity Number.

key_valueStringVariousMandatoryThe Bre-B Key that is to be resolved.

Example Request

JSON
Copy

Response Body

  • HTTP Status Code: 200 OK
  • The response contains the Bre-B Key metadata.

Example of Response

JSON
Copy

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.

Common Errors and Handling

HTTP Status CodeMeaningDescription
400 Bad RequestInvalid RequestThe recipient ID is missing or incorrectly formatted.
401 UnauthorizedExpired TokenThe access token is invalid or has expired.
403 ForbiddenAccess DeniedThe request is not authorized to retrieve this recipient.
404 Not FoundRecipient Not FoundNo recipient was found with the given ID.
500 Internal Server ErrorServer ErrorAn unexpected error occurred while retrieving the recipient.

Best Practices

  • Use the retrieved recipient details for initiating Bre-B payments - use the id from the above response to pass as the resolution_id within the Payment body.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard