Skip to content

Create Payin Order

Request URL

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

Headers

Header ParameterDescription
timestampRequest timestamp
nonceRandom string
countryCountry code (e.g., MX)
app_codeApplication ID

Supported Payment Types (paymentType)

Payment Method NamepaymentType (request parameter)
VA (SPEI Online Bank Transfer)1
PayCashOnce (Offline Cash Payment One-Time)4
PayCashRecurrent (Offline Cash Payment Recurrent)5
OXXO (Offline Cash Payment via OXXO)6

Notes

For paymentType = 1 (VA), the repayment amount and frequency are determined by the user. The actual collected amount may be less than or more than the expected amount, and multiple repayments may occur. Merchants must handle this logic properly. Each repayment can be uniquely identified using the paymentOrderNo field in the callback.

For paymentType = 5 (PayCashRecurrent), multiple repayments may also occur. Each repayment is identified by the paymentOrderNo field in the callback.

additionalInfo (Additional Fields) Description:

When paymentType is 4, additionalInfo includes:
Field NameTypeRequiredDescription
expiredTimeLongYesExpiration time (time when request is made)
When paymentType is 5, additionalInfo includes:
Field NameTypeRequiredDescription
expiredTimeLongYesExpiration time (time when request is made)

Request Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringYes32Merchant order number
paymentTypeIntYesPayment Type: 1-Payment code 4-PayCashOnce(Single offline) 5-PayCashRecurrent(Multi offline)
realNameStringYes50User name: Uppercase, no special characters, within 50 characters
emailStringNo50User email: Must match regex pattern
amountStringYes20Collection amount (Peso)
expirationTimeLongNoExpiration time, required in certain conditions, e.g.: 1717048800000, mandatory when paymentType is 4 or 5
phoneStringNo20Phone number
callbackUrlStringNo200Payout callback URL, if not provided, merchant configuration will be used
signStringYesSignature
Request Example
{
"realName": "TeemoPay",
"amount": "1000.00",
"phone": "1000000000",
"sign": "YOUR_SIGN",
"callbackUrl": "https://www.callbackexample.com",
"merchantOrderNo": "OrderNoExample",
"email": "TeemoPay@example.com",
"paymentType": 1
}

Response Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
tradeNoStringyes32Platform order number
amountStringyes32Transaction amount
paymentTypeIntyes10Payment method: 1 = VA, 4 = PayCashOnce, 5 = PayCashRecurrent
paymentInfoStringyes32Main payment information (e.g., VA account number or payment reference)
additionalInfoJSONObjectno-Additional information; used as supplementary data
statusIntyes-Status: 1 = Order created successfully, 3 = Failed
errorMsgStringno-Error message (returned when failed)

Response Examples by PaymentType

PaymentType = 1 (Va)

{
"msg": "success",
"traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610299",
"code": 200,
"data": {
"amount": "1000.00",
"tradeNo": "TS2501010001MX0000000000000000",
"additionalInfo": {
"paymentLink": "https://test-mx-payin.teemopay.com/TS2405220001MX0000315772003922"
},
"merchantOrderNo": "OrderNoExample",
"paymentInfo": "684180093000000000",
"paymentType": 1,
"status": 1
}
}

PaymentType = 4 (PayCashOnce)

{
"msg": "success",
"traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610298",
"code": 200,
"data": {
"amount": "1000.00",
"tradeNo": "TS2501010001MX0000000000000000",
"merchantOrderNo": "OrderNoExample",
"paymentType": 4,
"additionalInfo": {
"paymentLink": "https://www.paycashLinkExample.com"
},
"paymentInfo": "1420000000000",
"status": 1
}
}

PaymentType = 5 (PayCashRecurrent)

{
"msg": "success",
"traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610297",
"code": 200,
"data": {
"amount": "1000.00",
"tradeNo": "TS2501010001MX0000000000000000",
"merchantOrderNo": "OrderNoExample",
"paymentType": 4,
"additionalInfo": {
"paymentLink": "https://www.paycashLinkExample.com"
},
"paymentInfo": "1420000000000",
"status": 1
}
}

PaymentType = 6 (OXXO)

{
"amount": "1000.00",
"tradeNo": "TS2404070001MX0000205873135769",
"merchantOrderNo": "ABCDEFG",
"paymentType": 6,
"additionalInfo": {
"paymentLink": "https://www.paycashglobXXXXXXXm/formato.php?referencia=ATQyMDY0OTczNDIzMg==&interno=1"
},
"paymentInfo": "1420649734231",
"status": 1
}

errorMsg Description:

errorMsgDescription
Transaction amount exceeds limit, kindly retry within allowed range.Request amount exceeds the limit
Channel request error, technicians will fix ASAP.Channel under maintenance
Unstable network, kindly retry later.Channel network instability
Parameter validation error, kindly verify and retry.Invalid parameters submitted