Checkout API
Genera links de checkout para tus clientes utilizando nuestra API. Recibe notificaciones cuando cambie el estado de una transacción. Crea cobros directos a tarjetas guardadas.
Última actualización
¿Te fue útil?
Genera links de checkout para tus clientes utilizando nuestra API. Recibe notificaciones cuando cambie el estado de una transacción. Crea cobros directos a tarjetas guardadas.
Última actualización
¿Te fue útil?
Esta sección cubre los conceptos básicos de los servicios y los detalles técnicos de la API REST de Directo Pago. Contiene ejemplos funcionales de las solicitudes y observaciones importantes que deben tenerse en cuenta durante la integración.
Todas las llamadas a la API devolverán respuestas JSON, incluidos errores.
POST
https://checkout-api.directopago.com/v1/checkout
Authorization
string
Bearer + Directo Pago API key
country
string
Checkout country (ISO code)
amount
number
Amount to be paid by the client (5 decimals max)
currency
string
Amount currency. Default value: USD
invoiceId
string
Unique invoice identifier on the merchant end. If not sent, it will be automatically generated
clientId
string
Unique client identifier on the merchant end. If not sent, it will be automatically generated
clientFirstName
string
Client's first name
clientLastName
string
Client's last name
clientDocumentType
string
Client's document type. Must be a valid document type for the specified country
clientDocument
string
Client's document number. Must be a valid document for the specified country
and clientDocumentType
clientEmail
string
Client's email
clientAddress
string
Client's address
clientCity
string
Client's city
clientState
string
Client's state
clientZipCode
string
Client's zip code. Must be valid for the specified country
clientMobilePhone
string
Client's mobile phone. Must be valid for the specified country
logo
string
Merchant logo HTTPS URL to be used in checkout (overrides the logo defined in the merchant panel)
backUrl
string
Merchant website URL used to return the client to your website
successUrl
string
Merchant website URL used to redirect the client after a successful checkout
Al crear un checkout, se permite enviar una URL a la cual se notificarán los cambios de estado que ocurran sobre la transacción creada.
POST
https://checkout-api.directopago.com/v1/checkout
Authorization
string
Bearer + Directo Pago API key
country
string
Checkout country (ISO code)
amount
number
Amount to be paid by client (5 decimals max)
currency
string
Amount currency. If not specified, USD is assumed
notificationUrl
string
https://www.yoursite.com/directopago/ipn
POST
https://www.yoursite.com/directopago/ipn
invoiceId
string
Transaction's invoice id
Cuando se recibe una notificación de cambio de estado, se debe consultar al siguiente servicio con su API Key correspondiente.
GET
https://checkout-api.directopago.com/v1/transactions/{invoiceId}
invoiceId
string
Transaction's invoice id
Authorization
string
Bearer + Directo Pago API key
Estados posibles para una transacción: PENDING, COMPLETED, CANCELLED, DECLINED.
Para realizar un cobro con un cardId
guardado previamente mediante nuestra solución de , se debe hacer de la siguiente manera:
Puedes consultar los posibles códigos de error de este servicio .
Puedes consultar los posibles códigos de error de este servicio .
Para ver qué moneda y tipos de documento son válidos para cada país, accede .