DriverDeliveryActioned
v1.0.0

An event that is raised whenever a driver actions on a delivery based on a customers request during a delivery hand-off.
DriverDeliveryActioned Schema (yml)
openapi: 3.0.0
info:
  version: "1.0.0"
  title: DriverDeliveryActioned
paths: {}
components:
  schemas:
    DriverDeliveryActioned:
      type: object
      required:
        - metadata
        - data
      properties:
        data:
          "$ref": "#/components/schemas/Data"
        metadata:
          "$ref": "#/components/schemas/Metadata"
    Data:
      type: object
      required:
        - customer
        - driver
        - delivery
        - action

      properties:
        customer:
          type: object
          required:
            - id
            - name
            - email
            - phoneNumber
            - lat
            - lng
          properties:
            id:
              type: string
            name:
              type: string
            email:
              type: string
            phoneNumber:
              type: string
            lat:
              type: number
            lng:
              type: number
        driver:
          type: object
          properties:
            name:
              type: string
        delivery:
          type: object
          properties:
            time:
              type: string
            kitchen:
              type: string
        action:
          type: object
          properties:
            type:
              "$ref": "#/components/schemas/ActionType"
            note:
              type: string
            newLocation:
              type: string
            createdAt:
              type: string

    Metadata:
      type: object
      required:
        - serviceFunction
        - version
      properties:
        serviceFunction:
          type: string
        version:
          type: string
    ActionType:
      type: string
      enum:
        - CUSTOMERS_NOT_ANSWERING
        - CUSTOMERS_REQUESTING_DELIVERY_CANCELLATIONS
        - CUSTOMERS_REQUESTING_LOGISTICS_CHANGES
        - CUSTOMERS_REQUESTING_A_CALL_FROM_CX
        - DRIVERS_REQUESTING_DELIVERY_LOCATION_UPDATES
Edit this pageLast updated on 2024/4/2