Listar entregas de un webhook
curl --request GET \
--url https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries \
--header 'x-api: <api-key>'import requests
url = "https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries"
headers = {"x-api": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api': '<api-key>'}};
fetch('https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries', 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://api.ipsofactura.com/webhooks/{webhook_id}/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries")
.header("x-api", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"deliveries": [
{
"attemptCount": 123,
"createdAt": "<string>",
"event": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastAttemptAt": "<string>",
"lastError": "<string>",
"lastStatusCode": 123,
"nextAttemptAt": "<string>",
"status": "<string>"
}
],
"pagination": {
"has_next": true,
"has_prev": true,
"next_page": 123,
"page": 123,
"per_page": 123,
"prev_page": 123,
"total_items": 123,
"total_pages": 123
}
}{
"deliveries": [
{
"attemptCount": 123,
"createdAt": "<string>",
"event": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastAttemptAt": "<string>",
"lastError": "<string>",
"lastStatusCode": 123,
"nextAttemptAt": "<string>",
"status": "<string>"
}
],
"pagination": {
"has_next": true,
"has_prev": true,
"next_page": 123,
"page": 123,
"per_page": 123,
"prev_page": 123,
"total_items": 123,
"total_pages": 123
}
}{
"code": "VALIDATION_ERROR",
"id": "<string>",
"idempotencyKey": "<string>",
"message": "CFDI40147: El RFC del receptor no se encuentra en la lista de contribuyentes inscritos no cancelados del SAT",
"retryAfter": 123,
"sat_code": "CFDI40147"
}{
"code": "VALIDATION_ERROR",
"id": "<string>",
"idempotencyKey": "<string>",
"message": "CFDI40147: El RFC del receptor no se encuentra en la lista de contribuyentes inscritos no cancelados del SAT",
"retryAfter": 123,
"sat_code": "CFDI40147"
}{
"deliveries": [
{
"attemptCount": 123,
"createdAt": "<string>",
"event": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastAttemptAt": "<string>",
"lastError": "<string>",
"lastStatusCode": 123,
"nextAttemptAt": "<string>",
"status": "<string>"
}
],
"pagination": {
"has_next": true,
"has_prev": true,
"next_page": 123,
"page": 123,
"per_page": 123,
"prev_page": 123,
"total_items": 123,
"total_pages": 123
}
}{
"code": "VALIDATION_ERROR",
"id": "<string>",
"idempotencyKey": "<string>",
"message": "CFDI40147: El RFC del receptor no se encuentra en la lista de contribuyentes inscritos no cancelados del SAT",
"retryAfter": 123,
"sat_code": "CFDI40147"
}Webhooks
Listar entregas de un webhook
Historial de entregas del webhook, de la más reciente a la más antigua. Solo metadatos: el payload enviado se consulta en el detalle de cada entrega. status filtra por pending, delivered, failed o dead.
GET
/
webhooks
/
{webhook_id}
/
deliveries
Listar entregas de un webhook
curl --request GET \
--url https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries \
--header 'x-api: <api-key>'import requests
url = "https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries"
headers = {"x-api": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api': '<api-key>'}};
fetch('https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries', 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://api.ipsofactura.com/webhooks/{webhook_id}/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries")
.header("x-api", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ipsofactura.com/webhooks/{webhook_id}/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"deliveries": [
{
"attemptCount": 123,
"createdAt": "<string>",
"event": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastAttemptAt": "<string>",
"lastError": "<string>",
"lastStatusCode": 123,
"nextAttemptAt": "<string>",
"status": "<string>"
}
],
"pagination": {
"has_next": true,
"has_prev": true,
"next_page": 123,
"page": 123,
"per_page": 123,
"prev_page": 123,
"total_items": 123,
"total_pages": 123
}
}{
"deliveries": [
{
"attemptCount": 123,
"createdAt": "<string>",
"event": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastAttemptAt": "<string>",
"lastError": "<string>",
"lastStatusCode": 123,
"nextAttemptAt": "<string>",
"status": "<string>"
}
],
"pagination": {
"has_next": true,
"has_prev": true,
"next_page": 123,
"page": 123,
"per_page": 123,
"prev_page": 123,
"total_items": 123,
"total_pages": 123
}
}{
"code": "VALIDATION_ERROR",
"id": "<string>",
"idempotencyKey": "<string>",
"message": "CFDI40147: El RFC del receptor no se encuentra en la lista de contribuyentes inscritos no cancelados del SAT",
"retryAfter": 123,
"sat_code": "CFDI40147"
}{
"code": "VALIDATION_ERROR",
"id": "<string>",
"idempotencyKey": "<string>",
"message": "CFDI40147: El RFC del receptor no se encuentra en la lista de contribuyentes inscritos no cancelados del SAT",
"retryAfter": 123,
"sat_code": "CFDI40147"
}{
"deliveries": [
{
"attemptCount": 123,
"createdAt": "<string>",
"event": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastAttemptAt": "<string>",
"lastError": "<string>",
"lastStatusCode": 123,
"nextAttemptAt": "<string>",
"status": "<string>"
}
],
"pagination": {
"has_next": true,
"has_prev": true,
"next_page": 123,
"page": 123,
"per_page": 123,
"prev_page": 123,
"total_items": 123,
"total_pages": 123
}
}{
"code": "VALIDATION_ERROR",
"id": "<string>",
"idempotencyKey": "<string>",
"message": "CFDI40147: El RFC del receptor no se encuentra en la lista de contribuyentes inscritos no cancelados del SAT",
"retryAfter": 123,
"sat_code": "CFDI40147"
}Authorizations
API key emitida por Ipsofactura, enviada en el header x-api.