Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Initiate a Payment (Bre-B)
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
Definition | Description |
|---|---|
Endpoint | https://api.paas.sandbox.co.passportfintech.com/v1/payments/breb |
Method | POST |
Headers | Content-Type: application/json, Authorization |
Authentication | Access Token (Bearer Token) |
Request Body
Parameter | Type | Constraints | Required | Description |
|---|---|---|---|---|
account_id | String | Yes | The unique identifier of the account from which the payment will be made. | |
resolution_id | String | Yes | The unique identifier from the resolution of the Bre-B recipient for sending the Payment. | |
amount | Object | Yes | Defines the value and currency of the transaction. | |
value | String | Yes | The amount to be transferred. | |
currency | String | ENUM: | Yes | The currency of the transaction. |
display_name | String | No | The parameter is utilized to display the naming details from the sender to the receiver. In the object
|
For notation amount.value, it stats the object.field name.
Bre-B transaction limit is 11.5 million COP.
Example Request
Response Body
HTTP Status Code: 200 OK.
Returns the newly created payment and its associated metadata.
Example of Response
The payment status will first be
PENDING. Once the payment is processed, it will change toSETTLED.You can use the Webhooks to check the payment statuses.The
idyou get back is thepayment_id, which you will use in other endpoints.Make sure to re-use the resolution_id when you are re-trying a payment. This is crucial as we guarantee that only one payment will be created with the same
resolution_id. In other words, it acts as an idempotency key, ensuring that duplicate payments are not processed.
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 payment. |
500 Internal Server Error | Server Error | An unexpected error occurred while processing the payment. |
Best Practices
Ensure the
account_idandrecipient_idare correct before making the request.Monitor the payment status (
PENDING,SETTLED, etc.) to track progress.Implement error handling to manage failed or delayed payments.