Patch 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
{"message":"Event successfully patched","event":{"log":{"id":"5868895646777344","errors":[],"type":"paid","boleto":{"taxId":"20.018.183/0001-80","overdueLimit":59,"fine":2,"id":"6642467306733568","receiverName":"Winterfell S. A.","city":"São Paulo","fee":0,"streetLine2":"CJ 13","district":"Itaim Bibi","streetLine1":"Av. Faria Lima, 1844","due":"2020-10-01T02:59:59.999999+00:00","discounts":[{"date":"2020-09-26T02:59:59.999999+00:00","percentage":10},{"date":"2020-09-27T02:59:59.999999+00:00","percentage":9}],"workspaceId":"4888651368497152","interest":1.3,"status":"paid","tags":["war supply","invoice #1234"],"zipCode":"01500-000","line":"34191.09107 11410.957309 71444.640008 7 83940028000000","name":"Iron Bank S.A.","created":"2020-09-01T19:35:35.708298+00:00","receiverTaxId":"71.735.814/0001-12","barCode":"34197839400280000001091011410957307144464000","amount":28000000,"stateCode":"SP","descriptions":[{"text":"McDonnell Douglas F-15 Eagle","amount":27000000},{"text":"US Drone","amount":1000000}]},"created":"2020-09-01T20:00:06.282521+00:00"},"subscription":"boleto","isDelivered":true,"id":"5910858915905536","created":"2020-09-01T20:00:09.836460+00:00"}}