Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Create Recipient (Bre-B)
Overview
This endpoint creates a new Recipient for a specific Customer by registering a payment key in the Visionamos - Passport Bre-B Node. Recipients represent destination accounts or keys (such as email, phone, alphanumeric, national ID, or business code) used when initiating payments.
Endpoint Details
Definition | Description |
|---|---|
Endpoint | https://api.paas.sandbox.co.passportfintech.com/v1/recipients/breb |
Method | POST |
Headers | Content-Type: application/json, Authorization |
Authentication | Access Token (Bearer Token) |
Request Body
Parameter | Type | Constraints | Required | Description |
|---|---|---|---|---|
customer_id | String | UUID | Yes | The unique identifier of the entity customer creating the recipient. |
key_type | String | ENUM: | Yes | Type of key. Accepted values:
|
key_value | String | Varies by | Yes | The value of the recipient’s key. |
alias | String | No | A friendly name that can be used and presented along side the Bre-B Key |
Example Request
Ensure that the provided customer_id and recipient information are valid before making the request.
Response Body
HTTP Status Code: 200 OK.
The response will contain the recipient details along with its unique identifier.
Example of Response
The response confirms the recipient has been successfully created and returns a unique recipient id which is the same as recipient_id to be used in other endpoints.
Common Errors and Handling
HTTP Status Code | Meaning | Description |
|---|---|---|
400 Bad Request | Invalid Data | Required fields are missing or contain incorrect values. |
401 Unauthorized | Expired Token | The access token is invalid or has expired. |
403 Forbidden | Access Denied | The request is not authorized to create a recipient. |
500 Internal Server Error | Server Error | An unexpected error occurred while creating the recipient. |
Best Practices
Ensure the
customer_idis correct and associated with a valid entity customer.Validate the recipient’s
key_typeandkey_valuebefore making the request.