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://api.paas.sandbox.co.passportfintech.com/v1/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.
resolution_idStringYesThe unique identifier from the resolution of the Bre-B recipient for sending the Payment.
amountObjectYesDefines the value and currency of the transaction.
valueStringYesThe amount to be transferred.
currencyStringENUM: COPYesThe currency of the transaction.

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.

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 recipient_id are correct before making the request.
  • 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