uber.onDeliveryCanceled takes no filters. It starts when the delivery is canceled by you, the customer, the courier, or Uber: status canceled.
automations/delivery-canceled.automation.ts
id, deliveryId, customerId, status, liveMode, created, and the full delivery with its courier, waypoints, ETAs, and fee. delivery.cancelationReason.secondaryReason is CUSTOMER_CANCEL, COURIER_CANCEL, MERCHANT_CANCEL, or UBER_CANCEL when Uber includes it. If Uber returns the order, the delivery later becomes returned.
Requires an Uber Direct connection with a webhook signing key and a dashboard webhook that sends event.delivery_status. See Connect Uber Direct.