Descargar CEP PDF (modo auto)
curl --request POST \
--url https://veripay.datagora.mx/api/v1/cep/pdf_auto \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fecha": "2023-12-25",
"clave_rastreo": "<string>",
"cuenta": "<string>",
"monto": 123,
"emisor": "<string>",
"receptor": "<string>"
}
'import requests
url = "https://veripay.datagora.mx/api/v1/cep/pdf_auto"
payload = {
"fecha": "2023-12-25",
"clave_rastreo": "<string>",
"cuenta": "<string>",
"monto": 123,
"emisor": "<string>",
"receptor": "<string>"
}
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>',
cuenta: '<string>',
monto: 123,
emisor: '<string>',
receptor: '<string>'
})
};
fetch('https://veripay.datagora.mx/api/v1/cep/pdf_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/pdf_auto"
payload := strings.NewReader("{\n \"fecha\": \"2023-12-25\",\n \"clave_rastreo\": \"<string>\",\n \"cuenta\": \"<string>\",\n \"monto\": 123,\n \"emisor\": \"<string>\",\n \"receptor\": \"<string>\"\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/pdf_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' => '2023-12-25',
'clave_rastreo' => '<string>',
'cuenta' => '<string>',
'monto' => 123,
'emisor' => '<string>',
'receptor' => '<string>'
]),
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 PDF (modo auto)
Versión auto-inferencia de /v1/cep/pdf.
POST
/
v1
/
cep
/
pdf_auto
Descargar CEP PDF (modo auto)
curl --request POST \
--url https://veripay.datagora.mx/api/v1/cep/pdf_auto \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fecha": "2023-12-25",
"clave_rastreo": "<string>",
"cuenta": "<string>",
"monto": 123,
"emisor": "<string>",
"receptor": "<string>"
}
'import requests
url = "https://veripay.datagora.mx/api/v1/cep/pdf_auto"
payload = {
"fecha": "2023-12-25",
"clave_rastreo": "<string>",
"cuenta": "<string>",
"monto": 123,
"emisor": "<string>",
"receptor": "<string>"
}
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>',
cuenta: '<string>',
monto: 123,
emisor: '<string>',
receptor: '<string>'
})
};
fetch('https://veripay.datagora.mx/api/v1/cep/pdf_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/pdf_auto"
payload := strings.NewReader("{\n \"fecha\": \"2023-12-25\",\n \"clave_rastreo\": \"<string>\",\n \"cuenta\": \"<string>\",\n \"monto\": 123,\n \"emisor\": \"<string>\",\n \"receptor\": \"<string>\"\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/pdf_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' => '2023-12-25',
'clave_rastreo' => '<string>',
'cuenta' => '<string>',
'monto' => 123,
'emisor' => '<string>',
'receptor' => '<string>'
]),
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
The response is of type file.
⌘I