Update a webhook event by ID
PATCH {{baseUrl}}/{{version}}/event/:eventId
The only information you can update in an Event is the isDelivered property. This can be useful when, after experiencing server downtime on your side, you list all events with isDelivered=false, process them, and then set them as delivered to restabilize your operations.
Request Body
{"isDelivered"=>false}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"event":{"created":"2020-09-29T21:11:49.808286+00:00","id":"5417270989815808","isDelivered":true,"log":{"boleto":{"amount":100000,"barCode":"34195839800001000001091015522837307144464000","city":"São Paulo","created":"2020-09-29T21:11:48.497352+00:00","descriptions":[{"amount":123,"text":"product A"},{"amount":456,"text":"product B"},{"amount":789,"text":"product C"}],"discounts":[{"date":"2020-10-01T02:59:59.999999+00:00","percentage":5.0},{"date":"2020-10-02T02:59:59.999999+00:00","percentage":2.5}],"district":"Jardim Paulista","due":"2020-10-05T02:59:59.999999+00:00","fee":0,"fine":0.0,"id":"4699293495590912","interest":0.0,"line":"34191.09107 15522.837309 71444.640008 5 83980000100000","name":"Random Company","ourNumber":"10155228","overdueLimit":10,"receiverName":"Random Receiver","receiverTaxId":"123.456.789-09","stateCode":"SP","status":"registered","streetLine1":"Rua ABC","streetLine2":"Ap 123","tags":[],"taxId":"012.345.678-90","workspaceId":"6341320293482496","zipCode":"01234-567"},"created":"2020-09-29T21:11:48.994091+00:00","errors":[],"id":"4626681448890368","type":"registered"},"subscription":"boleto","workspaceId":"6341320293482496"},"message":"Event successfully patched"}