Confirmar Pago

Descripción

Este endpoint permite confirmar y enviar un pago Bre-B a la red Bre-B. Una solicitud exitosa procesa el pago y devuelve los detalles de la transacción, incluyendo el estado y la información del destinatario.

Detalles del Endpoint

DefiniciónDescripción
Endpointhttps://api.paas-sandbox.co.passportfintech.com/v1/payments/breb/confirm
MethodPOST
HeadersContent-Type: application/json, Authorization
AuthenticationAccess Token (Bearer Token)

Cuerpo de la Solicitud

ParameterTypeConstraintsRequiredDescription
idStringYesIdentificador único del pago a enviar a la red Bre-B.

Ejemplo de Solicitud

JSON
Copy

Cuerpo de la Respuesta

  • HTTP Status Code: 200 OK.

Ejemplo de Respuesta

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.

Errores Comunes y Manejo

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.

Buenas Prácticas

  • Ensure the id of the document is correct before making the request.
  • Monitor the payment status (PENDING, SETTLED, etc.) to track progress, via the Webhooks.
  • 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