SPEI PayIn

Payment registration transactions

SPEI HPP & H2H


1. SPEI PayIn

Description:
Transfers are made using the SPEI system with a unique CLABE number. The CLABE is an 18-digit standardized bank account number in Mexico that identifies both the bank branch and the specific account.
 
Allows the creation of pay-ins (incoming payments).
 
URL:https://api.payelu.xyz/api/v1/payments/payin_hth
 

Country Uses:

  • Mexico: SPEI
 

Request Parameters:

Parameter
Type
Description
Requeriment
service_code
string
SPEI_MX
required
amount
num
Amount to process. e.g. 123.45
required
reference
string
Merchant’s Unique ID for transaction. It must be 22 alfanumeric digits (i.e. ‘0000000000002507135224‘)
required
expired_at
string
Payment expiration datetime in UTC (ISO 8601 format). It must be between 1 hour and 23 hours from creation.
required

SPEI Example Request:

{ "service_code": "SPEI_MX", "amount": 200, "reference": "0000000000002507135224", "expired_at": "2025-06-06T22:59:59Z", }

SPEI Example Response:

{ "status": "success", "data": { "transaction_id": "686c117695471a1dbbd82ee6", "amount": 200, "currency": "MXN", "status": "PENDING", "reference": "PAY2400470812", "created_at": "2025-07-07T18:27:03.517542+00:00", "updated_at": "2025-07-07T18:27:03.517542+00:00", "expired_at": "2025-07-10T18:27:03.517542+00:00", "clabe": "710969000050934120", "beneficiary": "PAYMENTS LTDA", "errorMsg": "" "redirect_hpp_url": "XXXXXXX" }
After receiving redirect_hpp_url, you need to redirect the client to the URL and wait for the final status of the transaction.