Automate Uber with TypeScript

Growth plan or higher

Quote and request Uber Direct courier deliveries, update or cancel them, fetch proof of delivery, and manage stores and organizations. Start automations from signed delivery milestones, courier locations, and refund requests.

email-proof-of-delivery.automation.ts
import { automation, sendEmail, t } from "automate.ax"
import { uber } from "automate.ax/uber"

export default automation("Email proof of delivery", () => {
  const delivered = uber.onDeliveryDelivered({})

  const proof = uber.getProofOfDelivery({
    deliveryId: delivered.deliveryId,
    waypoint: "dropoff",
    type: "picture",
  })
  sendEmail({
    to: "*",
    subject: t`Delivered to ${delivered.delivery.dropoff.name}`,
    text: "Proof of delivery is attached.",
    attachments: [proof],
  })
})

What you can do

Actions

  • Quote, create, update, and cancel courier deliveries
  • Read deliveries and download proof-of-delivery images
  • Find stores that can serve a dropoff location
  • Manage organizations, members, and business locations

Triggers

  • Any delivery status change
  • Courier en route, arriving, picked up, and delivered milestones
  • Canceled and returned deliveries
  • Courier location updates and refund requests

Start automating with Uber today

Start building