Initiate a Payment

Overview

This endpoint allows you to initiate a Bre-B payment within the Passport API. A successful request processes the payment and returns the transaction details, including status and recipient information.

Endpoint Details

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

Request Body

ParameterTypeConstraintsRequiredDescription
account_idStringYesThe unique identifier of the account from which the payment will be made.
breb_recipient_idStringYesThe unique identifier of the Bre-B recipient receiving the payment.
amount.valueStringYesThe amount to be transferred.
amount.currencyStringENUM: COPYesThe currency of the transaction.
referenceString1-35OptionalA description or reference for the payment.

For notation amount.value, it stats the object.field name.

Example Request

JSON
Copy

Response Body

  • HTTP Status Code: 200 OK.
  • Returns the newly created payment and its associated metadata.

Example of Response

JSON
Copy

The payment status will first be PENDING. Once the payment is processed, it will change to SETTLED. You can use the Webhooks to check the payment statuses.

The response will include the key resolution within the breb_resolved_key object. The resolution is necessary in Bre-B to start a payment. It provides information about the key's owner and can be used to verify ownership of the key.

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 payment.
500 Internal Server ErrorServer ErrorAn unexpected error occurred while processing the payment.

Best Practices

  • Ensure the account_id and breb_recipient_idare correct before making the request.
  • Use the reference to facilitate the auditing of a payment.
  • Monitor the payment status (PENDING, SETTLED, etc.) to track progress.
  • Implement error handling to manage failed or delayed payments.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard