Nequi
Overview
Nequi is a digital wallet payment method available in Colombia. Through Direct API integration, merchants can support either or both of the following payment flows:
Payment flow
auth_type
Customer experience
QR Code
QR
Pagsmile returns a QR payload. The merchant displays it as a QR code for the customer to scan and pay with Nequi.
Push Payment
PROMPT
A payment request is sent to the Nequi account associated with the customer's phone number. The customer opens the Nequi app and approves the payment.
This page describes the Direct API integration using POST /trade/pay. For a hosted Pagsmile Checkout integration, use POST /trade/create; the customer selects the Nequi payment flow on the Checkout page, so the merchant does not pass auth_type in the Create Checkout request.
Submit a Payin by Nequi
POST https://gateway-test.pagsmile.com/trade/pay
This endpoint allows you to submit a Nequi payin in Colombia through Direct API integration.
Headers
Content-Type
string
Yes
application/json; charset=UTF-8
Authorization
string
Yes
Basic authentication credential generated by Base64-encoding app_id:security_key.
Request Body
app_id
string
Yes
Use the App ID assigned by Pagsmile.
Merchant application ID.
timestamp
string
Yes
Format: yyyy-MM-dd HH:mm:ss.
Request time.
out_trade_no
string
Yes
Maximum length: 64 characters. Must be unique for the merchant application.
Merchant order number.
method
string
Yes
Fixed value: Nequi.
Payment method.
order_amount
string
Yes
Amount in COP. Supports up to two decimal places.
Payment amount.
order_currency
string
Yes
Fixed value: COP.
Payment currency.
subject
string
Yes
Maximum length: 128 characters.
Payment reason or order title.
content
string
No
Maximum length: 255 characters.
Payment or order details.
trade_type
string
Yes
Fixed value: API.
Direct API integration type.
notify_url
string
Yes
Must begin with http:// or https://.
URL to which Pagsmile sends the asynchronous payment notification.
return_url
string
No
—
URL to which the customer is redirected after the payment flow, when applicable.
buyer_id
string
Yes
Maximum length: 128 characters.
Customer ID in the merchant's system.
timeout_express
string
No
For example: 1c.
Payment order expiration period.
auth_type
string
Yes
One of QR or PROMPT.
Nequi payment flow.
customer
object
Conditional
Required when auth_type is PROMPT.
Customer information.
customer.phone
string
Conditional
Required when auth_type is PROMPT.
Phone number associated with the customer's Nequi account.
QR Code Payment
Set auth_type to QR. The response contains qr_code, which is the QR payload. Render this value as a QR code and display it to the customer.
Request Sample
Response Sample
Push Payment
Set auth_type to PROMPT and provide customer.phone. A payment request is sent to the associated Nequi account for the customer to approve in the Nequi app.
Request Sample
Response Sample
Last updated