Replay a delivery
curl --request POST \
--url https://api.printeasy.adfinite.com/v1/webhooks/deliveries/{id}/replay \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.printeasy.adfinite.com/v1/webhooks/deliveries/{id}/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.printeasy.adfinite.com/v1/webhooks/deliveries/{id}/replay"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"attempt": 123,
"createdAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"endpointId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "printjob.done",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nextAttemptAt": "2023-11-07T05:31:56Z",
"payload": {},
"responseBodyExcerpt": "<string>",
"responseCode": 123,
"status": "pending"
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}Webhooks
Replay a delivery
Sends the same event again as a new delivery with its own retry schedule. webhook-id stays the event id, so receivers that already processed it can skip it.
POST
/
v1
/
webhooks
/
deliveries
/
{id}
/
replay
Replay a delivery
curl --request POST \
--url https://api.printeasy.adfinite.com/v1/webhooks/deliveries/{id}/replay \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.printeasy.adfinite.com/v1/webhooks/deliveries/{id}/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.printeasy.adfinite.com/v1/webhooks/deliveries/{id}/replay"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"attempt": 123,
"createdAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"endpointId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "printjob.done",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nextAttemptAt": "2023-11-07T05:31:56Z",
"payload": {},
"responseBodyExcerpt": "<string>",
"responseCode": 123,
"status": "pending"
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}Authorizations
ApiKeyAuthBasicAuth
Send Authorization: Bearer <API key>. Use a pe_test_ key in the playground; it only reaches virtual test printers.
Path Parameters
Response
The new delivery, queued
Sends made so far, 0 before the first
Also sent as the webhook-id header
Available options:
printjob.queued, printjob.sent, printjob.received, printjob.printing, printjob.done, printjob.error, printjob.cancelled, printjob.expired, computer.online, computer.offline, printer.added, printer.removed, printer.online, printer.offline, printer.updated Example:
"printjob.done"
The exact envelope sent as the request body
Show child attributes
Show child attributes
First 2,048 characters of the last response body, or the network error
HTTP status of the last attempt; null when it got no response
Available options:
pending, retrying, succeeded, failed Was this page helpful?