Skip to content

Create Payment

Request URL

methodurl
POST/api/pay/payment/create/v1

Header Information

Header ParameterDescription
timestampRequest timestamp
nonceRandom value
countryCountry code (CL)
app_codeApp number

Supported Payment Types (paymentType)

Payment Type NamePaymentType (Parameter)
All-In-One Checkout601
WEBPAY602
KHIPU603
PAGO46604
BANK_TRANSFER605
WALLET606

All-In-One Checkout including:

KHIPU WEBPAY BANK TRANSFER MACH PAGO46

Request Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringYes32Merchant order number
paymentTypeIntYesPayment type
realNameStringYes50User name: uppercase, no special characters, within 50 characters
emailStringNo50User email: must match regex pattern
amountStringYes20Payment amount (in pesos)
expirationTimeLongNoExpiration time
phoneStringNo20Phone number
callbackUrlStringNo200Payment callback URL, if not provided, merchant configuration will be used
signStringYesSignature
Sample Request
{
"realName": "TeemoPay",
"amount": "10000",
"phone": "1234567890",
"callbackUrl": "https://www.callbackexample.com",
"merchantOrderNo": "OrderNoExample",
"email": "TeemoPay@example.com",
"paymentType": 601,
"sign": "YOUR_SIGN"
}

Response Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
tradeNoStringyes32Platform order number
amountStringyes32Transaction amount
paymentTypeIntyes3Payment method
paymentInfoStringyes32Main payment information, e.g., payment reference number used for the payout
additionalInfoJSONObjectnoAdditional information
statusIntyesPayout status: 1 = Success, 3 = Failed
errorMsgStringnoError message, returned only if the payout failed
{
"msg": "success",
"traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610299",
"code": 200,
"data": {
"amount": "10000",
"tradeNo": "TS2501010001CL0000000000000000",
"merchantOrderNo": "OrderNoExample",
"paymentType": 601,
"additionalInfo": {
},
"paymentInfo": "https://www.paymentLinkExample.com",
"status": 1
}
}