Create Recipient

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

DefinitionDescription
Endpointhttps://bre-b-sandbox.api.visionamos.passportfintech.com/v1/paas/entities/customers/recipients/breb
MethodPOST
HeadersContent-Type: application/json, Authorization
AuthenticationAccess Token (Bearer Token)

Request Body

ParameterTypeConstraintsRequiredDescription
entity_customer_idStringUUIDYesThe unique identifier of the entity customer creating the recipient.
key_typeStringENUM: NRIC, M, E, O, BYes

Type of key. Accepted values:

NRIC : Document Number - up to 18 alphanumeric characters, no hyphens (-), spaces, or special characters allowed.

M: Mobile Phone Number - 10 digits, must start with 3.

E: Email - up to 92 characters, must have an @ before the domain, with a maximum of 30 characters before the @ and 61 after.

O: Alphanumeric Number - between 6 and 21 characters, must include letters, numbers, and start with an @.

B: Commercial Entity Number - 10 numeric characters, starting with 00.

key_valueStringVaries by key_typeYesThe value of the recipient’s key.

Example Request

JSON
Copy

Ensure that the provided entity_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

JSON
Copy

The response confirms the recipient has been successfully created and returns a unique recipient id for future transactions.

Common Errors and Handling

HTTP Status CodeMeaningDescription
400 Bad RequestInvalid DataRequired fields are missing or contain incorrect values.
401 UnauthorizedExpired TokenThe access token is invalid or has expired.
403 ForbiddenAccess DeniedThe request is not authorized to create a recipient.
500 Internal Server ErrorServer ErrorAn unexpected error occurred while creating the recipient.

Best Practices

  • Ensure the entity_customer_id is correct and associated with a valid entity customer.
  • Validate the recipient’s key_type and key_value before making the request.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard