Docs
Get an API key
Hotel webhooks

Replay a delivery

POST
/v1/hotel/webhook-subscriptions/{id}/deliveries/{delivery_id}/replay

You send the same event again with a fresh signature. You can replay a delivered or failed delivery, a delivery pending for more than one minute, or one published more than 2 hours 15 minutes ago without a result. Your subscription must be active. Your endpoint can receive the event again, so ignore repeats by event ID.

Authorization

x-api-key<token>

Your API key. Issued and revoked from the TrustPixel dashboard; the gateway resolves it to an owning organization on every request.

In: header

Path Parameters

id*string
Match^whs_[a-zA-Z0-9-]+$
Lengthlength <= 128
delivery_id*string
Match^dlv_[a-zA-Z0-9-]+$
Lengthlength <= 128

Header Parameters

x-request-id?string

Correlation id echoed to the upstream service and returned on the response. Generated as req_<uuid> when omitted.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/hotel/webhook-subscriptions/string/deliveries/string/replay"
{  "data": {    "id": "string",    "status": "PENDING",    "event": {      "id": "string",      "type": "string",      "created_at": "string",      "data": {        "booking": {          "property1": null,          "property2": null        }      }    },    "replay_count": 0,    "failure_reason": "retries_exhausted",    "attempts": [      {        "attempt_number": 0,        "response_status": 0,        "response_body": "string",        "created_at": "2019-08-24T14:15:22Z"      }    ],    "created_at": "2019-08-24T14:15:22Z",    "published_at": "2019-08-24T14:15:22Z",    "delivered_at": "2019-08-24T14:15:22Z",    "failed_at": "2019-08-24T14:15:22Z"  }}