Checkout API

Genere links de checkout para sus clientes

post
Checkout creation

https://checkout-api.directopago.com/v1/checkout
Request
Response
Request
Headers
Authentication
required
string
Directo Pago API key
Body Parameters
country
required
string
Checkout country.
amount
required
number
Amount to be paid by Client
currency
optional
string
Amount currency. If not specified, USD will be assumed
invoiceId
optional
string
Unique invoice ID on the Merchant end. If not sent, one will be automatically generated
clientId
optional
string
Client ID generated on the Merchant end. If not sent, one will be automatically generated
clientFirstName
optional
string
Client first name
clientLastName
optional
string
Client last name
clientDocumentType
optional
string
Client document type. Must be a valid document type for the specified country
clientDocument
optional
string
Client document number. Must be a valid document for the specified country and clientDocumentType
clientEmail
optional
string
Client email
clientAddress
optional
string
Client address
clientCity
optional
string
Client city
clientState
optional
string
Client state. Must be valid ISO code
clientZipcode
optional
string
Client zip code. Must be valid for the specified country
clientMobilePhone
optional
string
Client mobile phone. Must be valid for the specified country
logo
optional
string
Merchant logo HTTPS URL to be used in Checkout
backUrl
optional
string
Merchant HTTPS URL used to redirect Client in case the Checkout is cancelled
successUrl
optional
string
Merchant HTTPS URL used to redirect Client after a successful checkout
Response
200: OK
Checkout created successfully.
{
"url": "http://checkout.directopago.com/validate/870suVaMTT14EGHX7y61o5Lp0XLmPo6V"
}