For: Developers
AcceptDeliveryInput
This is an "Input object" type
Autogenerated input type of AcceptDelivery
{
"clientMutationId": "String",
"deliveryId": "ID",
"padding": "Int"
}Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| true | ID | ID of the delivery |
| false | Int | The time padding in minutes before the event time when the food will be picked up |
AssignDriverInput
This is an "Input object" type
Autogenerated input type of AssignDriver
{
"clientMutationId": "String",
"allowMultipleDrivers": "Boolean",
"deliveryId": "ID",
"driverId": "ID",
"maskedPhoneNumber": "Phone"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| false | Boolean | When true, the provided driverId will be added to the delivery's existing assigned drivers without removing any current assignments. When false or omitted, any pre-existing driver assignments for the delivery will be replaced by the provided driverId. |
| true | ID | ID of the delivery to be assigned to |
| true | ID | External ID of the driver being assigned |
| false | Phone | Optional phone number that masks the driver's real phone number |
CoordinateInput
This is an "Input object" type
Latitude and longitude coordinates
{
"latitude": "Float",
"longitude": "Float"
}
Input Fields
Name | Required | Type | Description |
| true | Float | Latitude as a float |
| true | Float | Longitude as a float |
CreateDriverInput
This is an "Input object" type
Autogenerated input type of CreateDriver
{
"clientMutationId": "String",
"driver": "DriverInput"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| true | DriverInput | Input object for creating a driver |
CreateDriverTrackingEventInput
This is an "Input object" type
Autogenerated input type of CreateDriverTrackingEvent
{
"clientMutationId": "String",
"coordinate": "CoordinateInput",
"deliveryId": "ID",
"driverId": "ID",
"timestamp": "ISO8601DateTime"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| true | CoordinateInput | Latitude and longitude of the driver's location. |
| true | ID | ID of the delivery. |
| false | ID | ID of the driver that created the event. Accepts your externalId value or an ezCater driverId. PLEASE NOTE: This input is optional now, but it will become required after all API partners have updated their integrations. Until then the argument is only required if there's multiple drivers assigned to the delivery. |
| true | ISO8601DateTime | Timestamp of event in ISO 8601 format. Provided value must be in the UTC timezone. |
DriverAssignmentInput
This is an "Input object" type
The input fields for a delivery driver assignment
{
"id": "ID",
"maskedPhoneNumber": "Phone"
}
Input Fields
Name | Required | Type | Description |
| true | ID | ID of the driver being assigned. Accepts your externalId value or an ezCater driverId. |
| false | Phone | An optional masked phone number for the driver. This number will be used for communication related to the delivery, protecting the driver's personal phone number. |
DriverDeliveryEventCreateInput
This is an "Input object" type
Autogenerated input type of DriverDeliveryEventCreate
{
"clientMutationId": "String",
"coordinate": "CoordinateInput",
"deliveryId": "ID",
"driverId": "ID",
"eventType": "DriverDeliveryEvent",
"timestamp": "ISO8601DateTime"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| false | CoordinateInput | Latitude and longitude of the driver's location. |
| true | ID | ID of the delivery. |
| true | ID | ID of the driver that created the event. Accepts your externalId value or an ezCater driverId. |
| true | DriverDeliveryEvent | The event types expected to be passed by our delivery partners |
| true | ISO8601DateTime | Timestamp of event in ISO 8601 format. Provided value must be in the UTC timezone. |
DriverDropoffVerificationCreateInput
This is an "Input object" type
Autogenerated input type of DriverDropoffVerificationCreate
{
"clientMutationId": "String",
"deliveryId": "ID",
"driverId": "ID",
"proofOfDropoffImageUrl": "Uri"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| true | ID | ID of the delivery. |
| true | ID | ID of the driver assigned to the delivery. Accepts your externalId value or an ezCater driverId. |
| true | Uri | URL of a photo showing the food items picked up by the driver. The image should clearly display all items included in the delivery to verify order completeness. The image URL must respond to an HTTP HEAD request with a 2xx status code and an image Content-Type header. |
DriverInput
This is an "Input object" type
The input fields for creating or updating a delivery driver
{
"externalId": "ID",
"firstName": "String",
"lastName": "String",
"phone": "Phone",
"vehicle": "VehicleInput"
}
Input Fields
Name | Required | Type | Description |
| false | ID | Any ID that you want to associate with the driver |
| false | String | Driver's first name |
| true | String | Driver's last name |
| true | Phone | Driver's unique phone number |
| false | VehicleInput | Input object for the driver's vehicle |
DriverPickupVerificationCreateInput
This is an "Input object" type
Autogenerated input type of DriverPickupVerificationCreate
{
"clientMutationId": "String",
"deliveryId": "ID",
"driverId": "ID",
"numberOfPackages": "Int",
"proofOfPickupImageUrl": "Uri"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| true | ID | ID of the delivery. |
| true | ID | ID of the driver assigned to the delivery. Accepts your externalId value or an ezCater driverId. |
| false | Int | The number of packages the driver received during pickup. |
| true | Uri | URL of a photo showing the food items picked up by the driver. The image should clearly display all items included in the pickup to verify order completeness. The image URL must respond to an HTTP HEAD request with a 2xx status code and an image Content-Type header |
DriversAssignInput
This is an "Input object" type
Autogenerated input type of DriversAssign
{
"clientMutationId": "String",
"deliveryId": "ID",
"drivers": "DriverAssignmentInput"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| true | ID | ID of the delivery. |
| true | DriverAssignmentInput | A list of drivers to be assigned to the delivery. Any existing assigned drivers will be replaced with this list. When a driver is present in both the existing assignments and this list then they can be updated with any new attributes. Providing an empty array will unassign all existing drivers from the delivery. |
RejectDeliveryInput
This is an "Input object" type
Autogenerated input type of RejectDelivery
{
"clientMutationId": "String",
"deliveryId": "ID"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| true | ID | ID of the delivery that is getting rejected |
UnassignDriverInput
This is an "Input object" type
Autogenerated input type of UnassignDriver
{
"clientMutationId": "String",
"deliveryId": "ID",
"driverId": "ID"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| true | ID | ID of the delivery to unassign from |
| true | ID | ID of the driver to unassign. Accepts your externalId value or an ezCater driverId. |
UpdateDriverInput
This is an "Input object" type
Autogenerated input type of UpdateDriver
{
"clientMutationId": "String",
"driver": "DriverInput",
"driverId": "ID"
}
Input Fields
Name | Required | Type | Description |
| false | String | A unique identifier for the client performing the mutation. |
| true | DriverInput | Input object for updating a driver |
| true | ID | ID of the driver to update. Accepts your externalId value or an ezCater driverId. |
VehicleInput
This is an "Input object" type
The input fields for specifying a delivery driver's vehicle
{
"color": "String",
"make": "String",
"model": "String"
}
Input Fields
Name | Required | Type | Description |
| true | String | Color of the vehicle |
| true | String | Make of the vehicle |
| false | String | Model of the vehicle |
