ID: 41 - Bank Transfer (MXN)

Channel: 41

Provider: Monato

Payment Method: Bank Transfer (SPEI)

Available Currencies

NameCodeCountry
Mexican pesoMXNMexico

How it works

The shopper pays with a SPEI bank transfer to your CLABE. You can use this channel in two ways:

ModeWhat you receiveWho shows the CLABE to the shopper
Checkout (default)The ALPS checkout URLThe ALPS payment page
Direct integrationA JSON object with the CLABE detailsYour own interface

In both modes the payment is confirmed through the success payment notification.

Request example

curl -X "POST" "https://uat-payments.alps.cl/justpay/check-out/SecurePayment" \
     -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
     --data-urlencode "public_key={YOUR_PUBLIC_KEY}" \
     --data-urlencode "time=2026-11-05T13:00:00" \
     --data-urlencode "channel=41" \
     --data-urlencode "amount=1250.50" \
     --data-urlencode "currency=MXN" \
     --data-urlencode "trans_id=04b73345" \
     --data-urlencode "time_expired=360" \
     --data-urlencode "url_ok=https://example.com/ok" \
     --data-urlencode "url_error=https://example.com/error" \
     --data-urlencode "signature={YOUR_SIGNATURE}" \
     --data-urlencode "shopper_information={\"name_shopper\": \"Jon\",\"last_name_Shopper\": \"Snow\", \"type_doc_identi\": \"RFC\", \"Num_doc_identi\": \"SNXJ800101AB1\", \"email\": \"[email protected]\", \"country_code\": \"+52\", \"Phone\": \"5512345678\", \"country\": \"MEX\"}"
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL            => 'https://uat-payments.alps.cl/justpay/check-out/SecurePayment',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_TIMEOUT        => 30,
  CURLOPT_CUSTOMREQUEST  => 'POST',
  CURLOPT_HTTPHEADER     => ['Content-Type: application/x-www-form-urlencoded; charset=utf-8'],
  CURLOPT_POSTFIELDS     => http_build_query([
    'public_key'          => '{YOUR_PUBLIC_KEY}',
    'time'                => '2026-11-05T13:00:00',
    'channel'             => 41,
    'amount'              => '1250.50',
    'currency'            => 'MXN',
    'trans_id'            => '04b73345',
    'time_expired'        => 360,
    'url_ok'              => 'https://example.com/ok',
    'url_error'           => 'https://example.com/error',
    'signature'           => '{YOUR_SIGNATURE}',
    'shopper_information' => json_encode([
      'name_shopper'      => 'Jon',
      'last_name_Shopper' => 'Snow',
      'type_doc_identi'   => 'RFC',
      'Num_doc_identi'    => 'SNXJ800101AB1',
      'email'             => '[email protected]',
      'country_code'      => '+52',
      'Phone'             => '5512345678',
      'country'           => 'MEX',
    ]),
  ]),
]);

$response = curl_exec($curl);
curl_close($curl);

echo $response;
import json
import requests

response = requests.post(
    url="https://uat-payments.alps.cl/justpay/check-out/SecurePayment",
    headers={"Content-Type": "application/x-www-form-urlencoded; charset=utf-8"},
    data={
        "public_key": "{YOUR_PUBLIC_KEY}",
        "time": "2026-11-05T13:00:00",
        "channel": "41",
        "amount": "1250.50",
        "currency": "MXN",
        "trans_id": "04b73345",
        "time_expired": "360",
        "url_ok": "https://example.com/ok",
        "url_error": "https://example.com/error",
        "signature": "{YOUR_SIGNATURE}",
        "shopper_information": json.dumps({
            "name_shopper": "Jon",
            "last_name_Shopper": "Snow",
            "type_doc_identi": "RFC",
            "Num_doc_identi": "SNXJ800101AB1",
            "email": "[email protected]",
            "country_code": "+52",
            "Phone": "5512345678",
            "country": "MEX",
        }),
    },
)

print(response.status_code, response.text)
const qs = require("querystring");
const https = require("https");

const body = qs.stringify({
  public_key: "{YOUR_PUBLIC_KEY}",
  time: "2026-11-05T13:00:00",
  channel: "41",
  amount: "1250.50",
  currency: "MXN",
  trans_id: "04b73345",
  time_expired: "360",
  url_ok: "https://example.com/ok",
  url_error: "https://example.com/error",
  signature: "{YOUR_SIGNATURE}",
  shopper_information: JSON.stringify({
    name_shopper: "Jon",
    last_name_Shopper: "Snow",
    type_doc_identi: "RFC",
    Num_doc_identi: "SNXJ800101AB1",
    email: "[email protected]",
    country_code: "+52",
    Phone: "5512345678",
    country: "MEX"
  })
});

const req = https.request({
  method: "POST",
  hostname: "uat-payments.alps.cl",
  path: "/justpay/check-out/SecurePayment",
  headers: { "Content-Type": "application/x-www-form-urlencoded; charset=utf-8" }
}, (res) => {
  const chunks = [];
  res.on("data", (chunk) => chunks.push(chunk));
  res.on("end", () => console.log(res.statusCode, Buffer.concat(chunks).toString()));
});

req.write(body);
req.end();

The response is the ALPS checkout URL as plain text. Redirect the shopper to it. If you prefer to build your own payment screen, see Direct integration.

Mandatory Data

AttributeMandatoryData typeDescription
public_keyTrueString (255)Public key, unique value that identifies the commerce
timeTrueDatetimeRequest date time
channelTrueIntegerPayment channel. Use 41
amountTrueDoubleThe amount of the transaction. Use 2 decimals. The shopper must transfer this exact amount, including cents
currencyTrueString (3)Transaction currency code. Use MXN
trans_idTrueString (255)Transaction id
time_expiredTrueString (255)Time in minutes to expire the transaction. Minimum suggested: 120 minutes. See Payment reconciliation
url_okTrueString (255)URL where the shopper will be redirected from the payment page once the payment is confirmed (must be HTTPS)
url_errorTrueString (255)URL where the shopper will be redirected from the payment page if the payment is cancelled, expires or is rejected (must be HTTPS)
signatureTrueString (255)Signature hash256: Review signature calculation
shopper_informationTrueJSON StringJSON String Data: Review JSON index & format

Optional Data

AttributeMandatoryData typeDescription
direct_integrationFalseIntegerSend 1 to receive the CLABE details as JSON instead of the checkout URL. See Direct integration

shopper_information JSON format

📘

Field shopper_information must be sent in string format (JSON encode).

{
  "name_shopper": "Jon",
  "last_name_Shopper": "Snow",
  "type_doc_identi": "RFC",
  "Num_doc_identi": "SNXJ800101AB1",
  "email": "[email protected]",
  "country_code": "+52",
  "Phone": "5512345678",
  "country": "MEX"
}

The shopper_information field is a column corresponding to a json with the next keys:

ParameterMandatoryData TypeDescription
name_shopperTrueString (255)Shopper's name
last_name_ShopperTrueString (255)Shopper's last name
type_doc_identiTrueString (255)Identification document [RFC]. See Document ID types
Num_doc_identiTrueString (255)Shopper's RFC: 13 characters for individuals, 12 for companies. Send it without spaces, hyphens or other separators. It must be the RFC of the holder of the account that makes the transfer
emailTrueString (255)Shopper's e-mail
country_codeTrueString (10)Country's phone code (+52)
PhoneTrueString (20)Shopper's phone number
countryTrueString (3)Country ISO code [MEX]

The same fields are required in checkout mode and in direct integration.

Payment flow

In this channel the shopper does not pay inside an online banking session. The payment page (or your own payment screen, if you use Direct integration) shows the bank details, and the shopper makes an SPEI transfer from their own bank.

  1. Redirect the shopper to the checkout URL returned by the request. If you used Direct integration, skip this step: you already have the CLABE details from the response and render your own payment screen with them.
  2. The payment page shows the CLABE, the receiving bank (when available), the account holder (your business name) and the amount, each with a copy button. It also shows the remaining time to pay and step-by-step SPEI instructions.
  3. The shopper makes an SPEI transfer for the exact amount from their bank's app or online banking.
  4. When the transfer is received and matched to the operation, the operation is confirmed and you receive the success payment notification.
  5. On the checkout mode, the payment page checks the operation status periodically and redirects the shopper to url_ok when the payment is confirmed, or to url_error if the operation is cancelled, expires or is rejected. On Direct integration there is no payment page: track the result through the payment notification.

The shopper can also cancel from the payment page. This cancels the operation and redirects the shopper to url_error.

Note: The redirect to url_ok is not a payment confirmation, because the shopper may close the page before it happens. Use the payment notification as the only source of truth.

Payment reconciliation

The CLABE belongs to your account and is the same for all of your operations. Each incoming transfer is matched to an operation using:

  • the shopper's RFC, which must match the Num_doc_identi sent in shopper_information, and
  • the exact amount of the operation, including cents.
🚧

Transfers that do not match are not applied

  • Send the RFC without spaces, hyphens or any other separator (for example SNXJ800101AB1). An RFC with separators is accepted when the operation is created, but the incoming transfer will not be matched to it.
  • A transfer made from an account whose holder has a different RFC, or for a different amount, is not applied to the operation.
  • Transfers are only matched against operations created in the last 48 hours. A time_expired longer than 2,880 minutes does not give the shopper more time to pay.
  • Do not create more than one operation for the same shopper (RFC) and amount at the same time. The transfer could be applied to a different operation than the one you expect.

This reconciliation rule is the same in checkout mode and in Direct integration.

Direct integration

Send direct_integration=1 to receive the CLABE details as JSON instead of the checkout URL, so you can render your own payment screen instead of redirecting the shopper to the ALPS payment page. In this mode no checkout URL is returned: you are responsible for showing the payment details to the shopper and for tracking the result through the payment notification.

Add direct_integration=1 to any of the request examples:

curl -X "POST" "https://uat-payments.alps.cl/justpay/check-out/SecurePayment" \
     -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
     --data-urlencode "public_key={YOUR_PUBLIC_KEY}" \
     --data-urlencode "time=2026-11-05T13:00:00" \
     --data-urlencode "channel=41" \
     --data-urlencode "amount=1250.50" \
     --data-urlencode "currency=MXN" \
     --data-urlencode "trans_id=04b73345" \
     --data-urlencode "time_expired=360" \
     --data-urlencode "url_ok=https://example.com/ok" \
     --data-urlencode "url_error=https://example.com/error" \
     --data-urlencode "signature={YOUR_SIGNATURE}" \
     --data-urlencode "shopper_information={\"name_shopper\": \"Jon\",\"last_name_Shopper\": \"Snow\", \"type_doc_identi\": \"RFC\", \"Num_doc_identi\": \"SNXJ800101AB1\", \"email\": \"[email protected]\", \"country_code\": \"+52\", \"Phone\": \"5512345678\", \"country\": \"MEX\"}" \
     --data-urlencode "direct_integration=1"

Response

HTTP 200 with a JSON object:

{
  "operation_id": 123456,
  "clabe_number": "646180111812345678",
  "amount": "1250.50",
  "currency": "MXN",
  "expires_at": "2026-11-05T19:00:00Z"
}
AttributeData typeDescription
operation_idIntegerALPS operation identifier
clabe_numberString18-digit CLABE the shopper must transfer to. It is your account's CLABE, the same for all of your operations
amountStringAmount the shopper must transfer, with 2 decimals
currencyStringCurrency code (MXN)
expires_atStringDate and time until the shopper can pay, ISO 8601 in UTC. Calculated from time_expired
📘

If the response is a plain-text URL instead of a JSON object, the transaction could not be served by direct integration. Redirect the shopper to that URL to complete the payment in the ALPS checkout.

If the CLABE cannot be retrieved, the request fails with CREATION_ERROR and the operation is rejected. Create a new operation to retry.

Recommendations

  • Show the shopper the clabe_number, the exact amount and the expires_at deadline, converted to the shopper's time zone.
  • Tell the shopper to pay from an account in their own name: the RFC of the paying account must match the Num_doc_identi you sent.
  • Let the shopper copy the CLABE and the amount with one click. Typing them by hand causes errors.
  • Wait for the payment notification to confirm the payment. Do not mark an order as paid because the shopper says they transferred.

Notifications

This channel only sends notifications for successfully completed transactions: when a transfer is matched to an operation, you receive the success payment notification. Transfers that cannot be matched to an operation do not generate notifications.


Errors

Request errors are returned in the response body with these fields:

{
  "error": {
    "code": "SHOPPER_INVALID_DOCUMENT_TYPE",
    "message": "Invalid document type. Accepted values are RFC"
  }
}
CodeMessage
INVALID_CHANNELInvalid channel - {channel}
INVALID_AMOUNTAmount must be a valid number - {amount}
NEGATIVE_AMOUNTAmount must be greater than zero - {amount}
MAX_AMOUNT_LIMITAmount exceeds the maximum allowed (...) - {amount}
INVALID_CURRENCYInvalid currency. {currency}
INVALID_CURRENCY_CHANNELCurrency code not allowed for this channel - {currency}
SHOPPER_INFO_INVALIDShopper info must include: name_shopper, last_name_Shopper, email, type_doc_identi, Num_doc_identi, country, country_code, Phone - {shopper_information}
SHOPPER_COUNTRY_NOT_ALLOWEDCountry not allowed for this channel - {shopper_information.country}
SHOPPER_INVALID_DOCUMENT_TYPEInvalid document type. Accepted values are RFC
SHOPPER_INVALID_DOCUMENT_NUMBERInvalid identity number format for RFC
CREATION_ERRORError creating Monato payment