Channel: 41
Provider: Monato
Payment Method: Bank Transfer (SPEI)
Available Currencies
| Name | Code | Country |
|---|---|---|
| Mexican peso | MXN | Mexico |
How it works
The shopper pays with a SPEI bank transfer to your CLABE. You can use this channel in two ways:
| Mode | What you receive | Who shows the CLABE to the shopper |
|---|---|---|
| Checkout (default) | The ALPS checkout URL | The ALPS payment page |
| Direct integration | A JSON object with the CLABE details | Your 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
| Attribute | Mandatory | Data type | Description |
|---|---|---|---|
public_key | True | String (255) | Public key, unique value that identifies the commerce |
time | True | Datetime | Request date time |
channel | True | Integer | Payment channel. Use 41 |
amount | True | Double | The amount of the transaction. Use 2 decimals. The shopper must transfer this exact amount, including cents |
currency | True | String (3) | Transaction currency code. Use MXN |
trans_id | True | String (255) | Transaction id |
time_expired | True | String (255) | Time in minutes to expire the transaction. Minimum suggested: 120 minutes. See Payment reconciliation |
url_ok | True | String (255) | URL where the shopper will be redirected from the payment page once the payment is confirmed (must be HTTPS) |
url_error | True | String (255) | URL where the shopper will be redirected from the payment page if the payment is cancelled, expires or is rejected (must be HTTPS) |
signature | True | String (255) | Signature hash256: Review signature calculation |
shopper_information | True | JSON String | JSON String Data: Review JSON index & format |
Optional Data
| Attribute | Mandatory | Data type | Description |
|---|---|---|---|
direct_integration | False | Integer | Send 1 to receive the CLABE details as JSON instead of the checkout URL. See Direct integration |
shopper_information JSON format
{
"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:
| Parameter | Mandatory | Data Type | Description |
|---|---|---|---|
name_shopper | True | String (255) | Shopper's name |
last_name_Shopper | True | String (255) | Shopper's last name |
type_doc_identi | True | String (255) | Identification document [RFC]. See Document ID types |
Num_doc_identi | True | String (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 |
email | True | String (255) | Shopper's e-mail |
country_code | True | String (10) | Country's phone code (+52) |
Phone | True | String (20) | Shopper's phone number |
country | True | String (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.
- 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.
- 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.
- The shopper makes an SPEI transfer for the exact amount from their bank's app or online banking.
- When the transfer is received and matched to the operation, the operation is confirmed and you receive the success payment notification.
- On the checkout mode, the payment page checks the operation status periodically and redirects the shopper to
url_okwhen the payment is confirmed, or tourl_errorif 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_okis 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_identisent inshopper_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_expiredlonger 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"
}| Attribute | Data type | Description |
|---|---|---|
operation_id | Integer | ALPS operation identifier |
clabe_number | String | 18-digit CLABE the shopper must transfer to. It is your account's CLABE, the same for all of your operations |
amount | String | Amount the shopper must transfer, with 2 decimals |
currency | String | Currency code (MXN) |
expires_at | String | Date 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 exactamountand theexpires_atdeadline, 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_identiyou 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"
}
}| Code | Message |
|---|---|
INVALID_CHANNEL | Invalid channel - {channel} |
INVALID_AMOUNT | Amount must be a valid number - {amount} |
NEGATIVE_AMOUNT | Amount must be greater than zero - {amount} |
MAX_AMOUNT_LIMIT | Amount exceeds the maximum allowed (...) - {amount} |
INVALID_CURRENCY | Invalid currency. {currency} |
INVALID_CURRENCY_CHANNEL | Currency code not allowed for this channel - {currency} |
SHOPPER_INFO_INVALID | Shopper info must include: name_shopper, last_name_Shopper, email, type_doc_identi, Num_doc_identi, country, country_code, Phone - {shopper_information} |
SHOPPER_COUNTRY_NOT_ALLOWED | Country not allowed for this channel - {shopper_information.country} |
SHOPPER_INVALID_DOCUMENT_TYPE | Invalid document type. Accepted values are RFC |
SHOPPER_INVALID_DOCUMENT_NUMBER | Invalid identity number format for RFC |
CREATION_ERROR | Error creating Monato payment |
