Enviar SPEI (cash-out)
curl --request POST \
--url https://sandbox.mx.ntxpay.com/api/spei/cash-out \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amountCentavos": 50000,
"destinationClabe": "012180001234567890",
"beneficiaryName": "Maria Lopez",
"beneficiaryTaxId": "LOMA850101ABC",
"concept": "Pago factura 123"
}
'import requests
url = "https://sandbox.mx.ntxpay.com/api/spei/cash-out"
payload = {
"amountCentavos": 50000,
"destinationClabe": "012180001234567890",
"beneficiaryName": "Maria Lopez",
"beneficiaryTaxId": "LOMA850101ABC",
"concept": "Pago factura 123"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amountCentavos: 50000,
destinationClabe: '012180001234567890',
beneficiaryName: 'Maria Lopez',
beneficiaryTaxId: 'LOMA850101ABC',
concept: 'Pago factura 123'
})
};
fetch('https://sandbox.mx.ntxpay.com/api/spei/cash-out', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.mx.ntxpay.com/api/spei/cash-out",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amountCentavos' => 50000,
'destinationClabe' => '012180001234567890',
'beneficiaryName' => 'Maria Lopez',
'beneficiaryTaxId' => 'LOMA850101ABC',
'concept' => 'Pago factura 123'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.mx.ntxpay.com/api/spei/cash-out"
payload := strings.NewReader("{\n \"amountCentavos\": 50000,\n \"destinationClabe\": \"012180001234567890\",\n \"beneficiaryName\": \"Maria Lopez\",\n \"beneficiaryTaxId\": \"LOMA850101ABC\",\n \"concept\": \"Pago factura 123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.mx.ntxpay.com/api/spei/cash-out")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amountCentavos\": 50000,\n \"destinationClabe\": \"012180001234567890\",\n \"beneficiaryName\": \"Maria Lopez\",\n \"beneficiaryTaxId\": \"LOMA850101ABC\",\n \"concept\": \"Pago factura 123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.mx.ntxpay.com/api/spei/cash-out")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amountCentavos\": 50000,\n \"destinationClabe\": \"012180001234567890\",\n \"beneficiaryName\": \"Maria Lopez\",\n \"beneficiaryTaxId\": \"LOMA850101ABC\",\n \"concept\": \"Pago factura 123\"\n}"
response = http.request(request)
puts response.read_body{
"transactionId": "3f2a1c34-9d1e-4c7b-8a5e-2b6f0d9c4e71",
"status": "PENDING",
"destinationClabe": "012180001234567890",
"amountCentavos": 50000,
"referenceNumerical": "9876543",
"createdAt": "2026-05-13T12:00:00.000Z"
}SPEI
Enviar SPEI (cash-out)
Requer Bearer JWT. Envia transferência SPEI para uma CLABE de destino. Confirmação assíncrona via webhook cash_out.
POST
/
api
/
spei
/
cash-out
Enviar SPEI (cash-out)
curl --request POST \
--url https://sandbox.mx.ntxpay.com/api/spei/cash-out \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amountCentavos": 50000,
"destinationClabe": "012180001234567890",
"beneficiaryName": "Maria Lopez",
"beneficiaryTaxId": "LOMA850101ABC",
"concept": "Pago factura 123"
}
'import requests
url = "https://sandbox.mx.ntxpay.com/api/spei/cash-out"
payload = {
"amountCentavos": 50000,
"destinationClabe": "012180001234567890",
"beneficiaryName": "Maria Lopez",
"beneficiaryTaxId": "LOMA850101ABC",
"concept": "Pago factura 123"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amountCentavos: 50000,
destinationClabe: '012180001234567890',
beneficiaryName: 'Maria Lopez',
beneficiaryTaxId: 'LOMA850101ABC',
concept: 'Pago factura 123'
})
};
fetch('https://sandbox.mx.ntxpay.com/api/spei/cash-out', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.mx.ntxpay.com/api/spei/cash-out",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amountCentavos' => 50000,
'destinationClabe' => '012180001234567890',
'beneficiaryName' => 'Maria Lopez',
'beneficiaryTaxId' => 'LOMA850101ABC',
'concept' => 'Pago factura 123'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.mx.ntxpay.com/api/spei/cash-out"
payload := strings.NewReader("{\n \"amountCentavos\": 50000,\n \"destinationClabe\": \"012180001234567890\",\n \"beneficiaryName\": \"Maria Lopez\",\n \"beneficiaryTaxId\": \"LOMA850101ABC\",\n \"concept\": \"Pago factura 123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.mx.ntxpay.com/api/spei/cash-out")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amountCentavos\": 50000,\n \"destinationClabe\": \"012180001234567890\",\n \"beneficiaryName\": \"Maria Lopez\",\n \"beneficiaryTaxId\": \"LOMA850101ABC\",\n \"concept\": \"Pago factura 123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.mx.ntxpay.com/api/spei/cash-out")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amountCentavos\": 50000,\n \"destinationClabe\": \"012180001234567890\",\n \"beneficiaryName\": \"Maria Lopez\",\n \"beneficiaryTaxId\": \"LOMA850101ABC\",\n \"concept\": \"Pago factura 123\"\n}"
response = http.request(request)
puts response.read_body{
"transactionId": "3f2a1c34-9d1e-4c7b-8a5e-2b6f0d9c4e71",
"status": "PENDING",
"destinationClabe": "012180001234567890",
"amountCentavos": 50000,
"referenceNumerical": "9876543",
"createdAt": "2026-05-13T12:00:00.000Z"
}Autorizaciones
JWT obtido em POST /api/auth/token
Cuerpo
application/json
Valor em centavos MXN (mín. 1).
Rango requerido:
x >= 1Ejemplo:
50000
CLABE destino (exatamente 18 dígitos).
Pattern:
^\d{18}$Ejemplo:
"012180001234567890"
Required string length:
3 - 255Ejemplo:
"Maria Lopez"
RFC/CURP (opcional)
Required string length:
10 - 20Ejemplo:
"LOMA850101ABC"
Conceito/descrição (aparece para o beneficiário)
Required string length:
1 - 255Ejemplo:
"Pago factura 123"
Respuesta
Cash-out aceito
Identificador publico da transacao (UUID). E o mesmo transactionId entregue nos webhooks — use-o para correlacionar e consultar a transacao.
Ejemplo:
"3f2a1c34-9d1e-4c7b-8a5e-2b6f0d9c4e71"
Opciones disponibles:
PENDING, CONFIRMED, FAILED Ejemplo:
"PENDING"
Ejemplo:
"012180001234567890"
Ejemplo:
50000
Ejemplo:
"9876543"
Ejemplo:
"2026-05-13T12:00:00.000Z"
⌘I