Skip to content

Create Payin

Request URL

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

Header Information

Header ParameterDescription
timestampRequest timestamp
nonceRandom value
countryCountry code (e.g., BR)
appCodeApplication ID

Supported Payment Methods (paymentType)

Payment MethodPaymentType (Parameter)
PIX (Online bank transfer)401

Additional Information Fields Explanation

Field NameTypeRequiredDescription
----

Request Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringYes32Merchant order number
paymentTypeIntYesPayment Type: 401-PIX
amountStringYes20Payin amount (in Brazilian Real), up to 2 decimal places
expirationTimeLongNoExpiration time
realNameStringNo64User’s real name
emailStringNo50User’s email, must match the regex format
phoneStringNo50Phone number
statusIntyes-Order Status 【1: Payment in Progress; 3: Payment Failed】
idCardNumberStringNo50ID card number
signStringYesSignature
callbackUrlStringNo200Callback URL
{
"merchantOrderNo": "OrderNoExample",
"realName": "TeemoPay",
"amount": "100.1",
"callbackUrl": "https://www.callbackexample.com",
"paymentType": 401,
"email": "TeemoPay@example.com",
"phone": "11987654321",
"idCardNumber": "1234567890",
"sign": "YOUR_SIGN",
"expirationTime": 1717092000000
}

Response Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
tradeNoStringyes32Platform order number
amountStringyes32Transaction amount
paymentTypeIntyes10Payment Method 【401: -PIX】
paymentInfoStringyes32Main payment information. The returned data is the actual information used for payment, such as the payment number.
additionalInfoJSONObjectno-Additional Information
— paymentLinkStringno-Payment link information
statusIntyes-Order Status 【1: Payment in Progress; 3: Payment Failed】
errorMsgStringno-Error Message 【Returned when payment fails】

additionalInfo (Additional Field) Field Description

FieldTypeRequiredDescription
paymentLinkStringNExtended payment link information

Response Examples

{
"msg": "success",
"traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610299",
"code": 200,
"data": {
"amount": "1000.00",
"tradeNo": "TS2501010001AR0000000000000000",
"additionalInfo": null,
"merchantOrderNo": "OrderNoExample",
"paymentInfo": "PaymentInfoExample",
"paymentType": 901,
"status": 1
}
}

Validation Error Codes

Error CodeError MessageHandling Solution
412Please try again laterPlease try again later
414*Please change the corresponding parameter
423This payment method is not supportedPayment method not supported, please check docs or contact us
426merchant order duplicatePlease change merchant order number
427The callback notification address for collection must not be empty.Please configure collection callback URL
443ID number must not be nullID number cannot be empty
466Payment method fee rate not configured.Merchant fee rate configuration error, please contact us
473Merchant joint verification error: *Merchant configuration error, please contact us
474The id card number must be 11 digits.ID number must be 11 digits
500Business ErrorPlease contact us
Response
{
"code": 426,
"data": null,
"msg": "merchant order duplicate",
"traceId": "f2b58c9c394d4b1595dd4e448ac741bc.2256.17645844263770017"
}