CEP en base64 (PDF)
curl --request POST \
--url https://veripay.datagora.mx/api/v1/cep/base64 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fecha": "2023-12-25",
"clave_rastreo": "<string>",
"emisor": "<string>",
"receptor": "<string>",
"cuenta": "<string>",
"monto": 123
}
'import requests
url = "https://veripay.datagora.mx/api/v1/cep/base64"
payload = {
"fecha": "2023-12-25",
"clave_rastreo": "<string>",
"emisor": "<string>",
"receptor": "<string>",
"cuenta": "<string>",
"monto": 123
}
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: '2023-12-25',
clave_rastreo: '<string>',
emisor: '<string>',
receptor: '<string>',
cuenta: '<string>',
monto: 123
})
};
fetch('https://veripay.datagora.mx/api/v1/cep/base64', 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/base64"
payload := strings.NewReader("{\n \"fecha\": \"2023-12-25\",\n \"clave_rastreo\": \"<string>\",\n \"emisor\": \"<string>\",\n \"receptor\": \"<string>\",\n \"cuenta\": \"<string>\",\n \"monto\": 123\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/base64",
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' => '2023-12-25',
'clave_rastreo' => '<string>',
'emisor' => '<string>',
'receptor' => '<string>',
'cuenta' => '<string>',
'monto' => 123
]),
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;
}{
"ok": true,
"filename": "cep.pdf",
"content_type": "application/pdf",
"data": "aSDinaTvuI8gbWludGxpZnk="
}{
"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
CEP en base64 (PDF)
Devuelve el CEP en PDF codificado en base64 dentro de un JSON. Útil cuando tu cliente no puede manejar binarios directamente.
POST
/
v1
/
cep
/
base64
CEP en base64 (PDF)
curl --request POST \
--url https://veripay.datagora.mx/api/v1/cep/base64 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fecha": "2023-12-25",
"clave_rastreo": "<string>",
"emisor": "<string>",
"receptor": "<string>",
"cuenta": "<string>",
"monto": 123
}
'import requests
url = "https://veripay.datagora.mx/api/v1/cep/base64"
payload = {
"fecha": "2023-12-25",
"clave_rastreo": "<string>",
"emisor": "<string>",
"receptor": "<string>",
"cuenta": "<string>",
"monto": 123
}
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: '2023-12-25',
clave_rastreo: '<string>',
emisor: '<string>',
receptor: '<string>',
cuenta: '<string>',
monto: 123
})
};
fetch('https://veripay.datagora.mx/api/v1/cep/base64', 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/base64"
payload := strings.NewReader("{\n \"fecha\": \"2023-12-25\",\n \"clave_rastreo\": \"<string>\",\n \"emisor\": \"<string>\",\n \"receptor\": \"<string>\",\n \"cuenta\": \"<string>\",\n \"monto\": 123\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/base64",
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' => '2023-12-25',
'clave_rastreo' => '<string>',
'emisor' => '<string>',
'receptor' => '<string>',
'cuenta' => '<string>',
'monto' => 123
]),
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;
}{
"ok": true,
"filename": "cep.pdf",
"content_type": "application/pdf",
"data": "aSDinaTvuI8gbWludGxpZnk="
}{
"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
Fecha de operación en formato YYYY-MM-DD.
Clave de rastreo del SPEI.
Código Banxico del banco emisor (5 dígitos).
Código Banxico del banco receptor (5 dígitos).
CLABE (18 dígitos) o tarjeta del receptor.
Monto exacto de la transferencia.
⌘I