For the complete documentation index, see llms.txt. This page is also available as Markdown.

Virtual Account

This section describes how to create and query a Virtual Account and receive payment notifications for Colombia Virtual Account payments.

Colombia Virtual Account payments use Bre-B as the payment method.

The Virtual Account is created before the payer initiates a transfer. Creating the Virtual Account does not create a fixed-amount payment order. After funds are transferred to the assigned account_number, Pagsmile creates the Payin transaction and sends an asynchronous notification to the merchant's notify_url.

Create Virtual Account

Use this endpoint to create a Virtual Account for Colombia.

POST https://gateway-test.pagsmile.com/virtual-account/create

Request Body

Only the required request parameters are listed below.

Parameter
Type
Required
Constraints
Description

app_id

string

Required

Maximum length: 32 characters.

The merchant application ID assigned by Pagsmile.

timestamp

string

Required

Format: yyyy-MM-dd HH:mm:ss; maximum length: 19 characters.

Request timestamp.

notify_url

string

Required

Must be a valid, publicly accessible URL.

The URL that receives Virtual Account payment notifications.

method

string

Required

Fixed value: Bre-B.

Payment method.

region

string

Required

Fixed value: COL.

Country or region code.

customer

object

Required

Must contain customer.buyer_id.

Customer information.

customer.buyer_id

string

Required

Maximum length: 128 characters.

Merchant-side user ID.

Request Sample

{
  "app_id": "16***05",
  "timestamp": "2026-08-24 15:30:00",
  "notify_url": "https://merchant.example.com/pagsmile/notify",
  "method": "Bre-B",
  "region": "COL",
  "customer": {
    "buyer_id": "colombia-va-test-001"
  }
}

Response Sample

Save the returned account_id and account_number. The payer transfers funds to the account_number to complete a payment.

Query Virtual Account

Use this endpoint to query the Virtual Account information and status.

POST https://gateway-test.pagsmile.com/virtual-account/query

Request Body

Parameter
Type
Required
Constraints
Description

app_id

string

Required

Maximum length: 32 characters.

The merchant application ID assigned by Pagsmile.

timestamp

string

Required

Format: yyyy-MM-dd HH:mm:ss; maximum length: 19 characters.

Request timestamp.

account_id

string

Required

Maximum length: 64 characters.

The Virtual Account ID returned by the Create Virtual Account API.

Request Sample

Response Sample

The Query Virtual Account API returns the Virtual Account information and status. It does not return the result of an incoming transfer. Use the asynchronous notification as the final payment result.

Notification

After the payer transfers funds to the Virtual Account, Pagsmile sends an asynchronous notification to the merchant's notify_url.

Notification Body

Parameter
Type
Description

amount

string

Payment amount received.

out_trade_no

string

Pagsmile-generated transaction reference for the incoming transfer.

method

string

Payment method. Fixed value: Bre-B.

trade_status

string

Transaction status. Value: SUCCESS.

trade_no

string

Pagsmile transaction number.

currency

string

Payment currency. Fixed value: COP.

app_id

string

The merchant application ID assigned by Pagsmile.

user.buyer_id

string

Merchant-side user ID used when creating the Virtual Account.

timestamp

string

Unix timestamp in seconds indicating when the notification was generated.

transfer_account.account_id

string

Virtual Account ID.

transfer_account.account_number

string

Virtual Account number.

Notification Sample

Notification

After the payer transfers funds to the Virtual Account, Pagsmile sends an asynchronous notification to the merchant's notify_url.

Notification Body

Parameter
Type
Description

amount

string

Payment amount received.

out_trade_no

string

Pagsmile-generated transaction reference for the incoming transfer.

method

string

Payment method. Fixed value: Bre-B.

trade_status

string

Transaction status. Value: SUCCESS.

trade_no

string

Pagsmile transaction number.

currency

string

Payment currency. Fixed value: COP.

app_id

string

The merchant application ID assigned by Pagsmile.

user.buyer_id

string

Merchant-side user ID used when creating the Virtual Account.

user.ip

string

IP address stored with the user information.

payer.account.number

string

Payer bank account number.

payer.account.type

string

Payer account type reported by the provider. Example: DORD.

payer.bank.bank_id

string

Identifier of the payer's bank.

payer.bank.bank_name

string

Name of the payer's bank.

payer.identification.number

string

Payer identification number.

payer.identification.type

string

Payer identification type. Example: NIT.

card

object

Card information. This object is empty for a Bre-B bank transfer notification.

timestamp

string

Unix timestamp in seconds indicating when the notification was generated.

transfer_account.account_id

string

Virtual Account ID.

transfer_account.account_number

string

Virtual Account number.

Notification Sample

Use the asynchronous notification as the final payment result. The merchant callback endpoint must return HTTP status 200 with one of the following response bodies:

or

Pagsmile includes the following header in the notification:

Calculate the expected signature by applying HMAC-SHA256 to the original, unmodified Request Body using the merchant SecretKey. Do not parse and reserialize the JSON before signature verification. For more information, see Notification.

Last updated