Skip to content

Payin API — Create CLABE Reference ​

Overview ​

Creates a CLABE reference (18 digits). Show the returned clabe to the payer; the payer transfers via SPEI to this account. The platform calls back the merchant once the funds arrive.

API Info ​

  • Endpoint: POST /api/mx/payin
  • Method: POST
  • Content-Type: application/json

Request Headers ​

See API Signature:

HeaderTypeRequiredDescription
Content-TypestringYapplication/json
MerchantIdstringYMerchant ID provided by Veloraya
TimestampstringYMillisecond timestamp, anti-replay
NoncestringYRandom string, unique per request
SignaturestringYRSA signature, Base64 encoded

Request Parameters ​

ParameterTypeRequiredDescription
merchantOrderIdString(≤32)YMerchant order ID, globally unique (idempotency key)
amountBigDecimal(2dp)YOrder amount, > 0, MXN
currencystringYFixed MXN
payinMethodstringYFixed CLABE
payerNameString(≤128)YPayer name (KYC)
payerIdCardString(≤50)YPayer ID / RFC (13 chars)
payerEmailstringYPayer email
payerIdTypeString(≤20)YPayer ID type
payerMobileString(≤36)YPayer mobile
expireSecondsIntegerNExpiry (seconds), 15min~7 days, default 3 days
redirectUrlString(≤255)NRedirect URL (reserved)

Request Example ​

json
{
  "merchantOrderId": "M20260813001",
  "amount": "100.00",
  "currency": "MXN",
  "payinMethod": "CLABE",
  "payerName": "JUAN PEREZ",
  "payerIdCard": "XAXX010101000",
  "payerEmail": "payer@example.com",
  "payerIdType": "RFC",
  "payerMobile": "5551234567",
  "expireSeconds": 259200
}

Response Parameters (data) ​

ParameterTypeDescription
orderIdstringPlatform order ID
merchantOrderIdstringMerchant order ID
clabestringCLABE reference (18 digits), the payer's transfer target
vaNamestringAccount name
amountBigDecimalOrder amount
feeBigDecimalFee
orderStatusstringPENDING / SUCCESS / FAILED
resultCodestringError code (on failure)
resultDescstringError description (on failure)

Response Example ​

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "orderId": "2100000000000000001",
    "merchantOrderId": "M20260813001",
    "clabe": "659437000000225142",
    "vaName": "JUAN PEREZ",
    "amount": 100.00,
    "fee": 1.50,
    "orderStatus": "PENDING",
    "resultCode": "200",
    "resultDesc": "success"
  }
}

Released under the MIT License.