Update an event by ID

PATCH {{baseInfraUrl}}/{{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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"event":{"created":"2022-05-17T20:14:23.385452+00:00","id":"6031404865421312","isDelivered":true,"log":{"errors":[],"id":"5017910737108992","note":{"amount":193461,"created":"2022-05-17T20:14:23.054318+00:00","documentId":"","expiration":"2022-08-05T07:00:00+00:00","externalId":"my_unique_id","id":"6425285620662272","interest":20.55,"invoices":[{"amount":234413,"descriptions":[],"discounts":[],"due":"2023-06-17T02:59:59.999999+00:00","expiration":5097600,"fine":3,"id":"","interest":1,"name":"Jamie Lannister","tags":[],"taxId":"012.345.678-90"}],"name":"Jamie Lannister","nominalAmount":200000,"payment":{"accountNumber":"5005482","accountType":"checking","amount":193461,"bankCode":"60701190","branchCode":"7248","id":"","name":"Jamie Lannister","scheduled":"2022-05-17T20:14:22.858881+00:00","status":"","tags":[],"taxId":"594.739.480-42"},"paymentType":"transfer","rebateAmount":0,"scheduled":"2022-06-07T07:00:00+00:00","signers":[{"contact":"jamie.lannister@gmail.com","method":"link","name":"Jamie Lannister"}],"status":"created","tags":[],"taxAmount":6539,"taxId":"012.345.678-90","templateId":"5707012469948416","transactionIds":[],"updated":"2022-05-17T20:14:23.073297+00:00","workspaceId":"6275127679385600"},"type":"created","updated":"2022-05-17T20:14:23.073303+00:00"},"subscription":"credit-note","workspaceId":"6275127679385600"},"message":"Event successfully patched"}