Gateway Discovery
Before creating any order, you need to know which payment gateways are active for your store and what fields each gateway requires from the buyer.Why this step matters
Each store has different payment gateways enabled depending on their configuration. The gateway discovery endpoint returns the exact list of available gateways, their IDs, and the required fields — so your integration adapts automatically without hardcoding gateway details.Request
Response
The response includes an array of available gateways with their configuration:How to use the response
Display available gateways
Show the buyer only the gateways returned in the response. Use the provided
icon URLs for gateway logos.Collect required fields
Based on the buyer’s gateway selection, collect the fields listed in
required_fields — for example, phone_number for Nequi or document_type + document_number for Daviplata.Create the order
Pass the
id_payment_gateway and collected fields to POST /v1/orders. See Creating Orders for the full request format.Gateway-specific required fields
| Gateway | id_payment_gateway | Required buyer fields |
|---|---|---|
| Nequi | Returned by endpoint | phone_number |
| Daviplata | Returned by endpoint | document_type, document_number |
| Breb | Returned by endpoint | document_type, document_number |
| Stripe | Returned by endpoint | Configured via dashboard |
For gateway-specific payment flows (push notifications, OTP, QR codes), see Payment Flows.