Descargar CEP XML (modo auto)
curl --request POST \
--url https://veripay.datagora.mx/api/v1/cep/xml_auto \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fecha": "2025-08-15",
"clave_rastreo": "CR12345678",
"cuenta": "012180001234567890",
"monto": 1234.56
}
'import requests
url = "https://veripay.datagora.mx/api/v1/cep/xml_auto"
payload = {
"fecha": "2025-08-15",
"clave_rastreo": "CR12345678",
"cuenta": "012180001234567890",
"monto": 1234.56
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fecha: '2025-08-15',
clave_rastreo: 'CR12345678',
cuenta: '012180001234567890',
monto: 1234.56
})
};
fetch('https://veripay.datagora.mx/api/v1/cep/xml_auto', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://veripay.datagora.mx/api/v1/cep/xml_auto"
payload := strings.NewReader("{\n \"fecha\": \"2025-08-15\",\n \"clave_rastreo\": \"CR12345678\",\n \"cuenta\": \"012180001234567890\",\n \"monto\": 1234.56\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://veripay.datagora.mx/api/v1/cep/xml_auto",
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([
'fecha' => '2025-08-15',
'clave_rastreo' => 'CR12345678',
'cuenta' => '012180001234567890',
'monto' => 1234.56
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}"<string>"{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}CEP
Descargar CEP XML (modo auto)
Igual que /v1/cep/xml pero infiere automáticamente emisor y receptor a partir de la cuenta (CLABE o tarjeta). Si no logra deducir, devuelve 400 pidiendo emisor explícito.
POST
/
v1
/
cep
/
xml_auto
Descargar CEP XML (modo auto)
curl --request POST \
--url https://veripay.datagora.mx/api/v1/cep/xml_auto \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fecha": "2025-08-15",
"clave_rastreo": "CR12345678",
"cuenta": "012180001234567890",
"monto": 1234.56
}
'import requests
url = "https://veripay.datagora.mx/api/v1/cep/xml_auto"
payload = {
"fecha": "2025-08-15",
"clave_rastreo": "CR12345678",
"cuenta": "012180001234567890",
"monto": 1234.56
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fecha: '2025-08-15',
clave_rastreo: 'CR12345678',
cuenta: '012180001234567890',
monto: 1234.56
})
};
fetch('https://veripay.datagora.mx/api/v1/cep/xml_auto', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://veripay.datagora.mx/api/v1/cep/xml_auto"
payload := strings.NewReader("{\n \"fecha\": \"2025-08-15\",\n \"clave_rastreo\": \"CR12345678\",\n \"cuenta\": \"012180001234567890\",\n \"monto\": 1234.56\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://veripay.datagora.mx/api/v1/cep/xml_auto",
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([
'fecha' => '2025-08-15',
'clave_rastreo' => 'CR12345678',
'cuenta' => '012180001234567890',
'monto' => 1234.56
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}"<string>"{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}Authorizations
Body
application/json
Response
CEP encontrado. Headers X-Inferred-Emisor / X-Inferred-Receptor indican qué se dedujo.
The response is of type file.
⌘I