For: Developers
AcceptDeliveryPayload
This is an "Object" type
Autogenerated return type of AcceptDelivery
{
"clientMutationId": "String",
"delivery": "Delivery"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| true | Delivery | Delivery that was accepted |
Address
This is an "Object" type
Delivery address object
{
"city": "String",
"coordinate": "Coordinate",
"id": "ID",
"instructions": "Instructions",
"locationName": "String",
"phone": "Phone",
"postalCode": "String",
"state": "String",
"street1": "String",
"street2": "String",
"street3": "String"
}
Fields
Name | Null | Type | Description |
| false | String | City of the address |
| false | Coordinate | Latitude and longitude of the address |
| false | ID | UUID of the address |
| true | Instructions | Delivery instructions for this address |
| true | String | Short name for the address ie. ezCater Office |
| false | Phone | The contact's phone number |
| false | String | Postal code of the address |
| false | String | Two-letter state abbreviation |
| false | String | Street1 of the address |
| true | String | Optional street2 of the address |
| true | String | Optional extended address |
AssignDriverPayload
This is an "Object" type
Autogenerated return type of AssignDriver
{
"clientMutationId": "String",
"delivery": "Delivery"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| true | Delivery | Delivery that the driver was assigned to |
CatererPickupVerification
This is an "Object" type
Verification from the caterer on the food that was prepared for a delivery before being pickup by the driver
{
"readyForPickupImageUrl": "Uri"
}
Fields
Name | Null | Type | Description |
| false | Uri | URL of a photo showing the food items prepared by the caterer. |
Coordinate
This is an "Object" type
A latitude/longitude coordinate
{
"latitude": "Float",
"longitude": "Float"
}
Fields
Name | Null | Type | Description |
| false | Float | Latitude as a float |
| false | Float | Longitude as a float |
CreateDriverPayload
This is an "Object" type
Autogenerated return type of CreateDriver
{
"clientMutationId": "String",
"driver": "Driver"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| true | Driver | Driver that was just created |
CreateDriverTrackingEventPayload
This is an "Object" type
Autogenerated return type of CreateDriverTrackingEvent
{
"clientMutationId": "String",
"success": "Boolean"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| false | Boolean | Returns whether or not the event was consumed |
Delivery
This is an "Object" type
Represents an ezCater delivery
{
"cancelled": "Boolean",
"catererPickupVerification": "CatererPickupVerification",
"distance": "String",
"driverAskFor": "String",
"drivers": "Driver",
"dropoffAddress": "Address",
"dropoffContacts": "DropoffContact",
"eventAt": "ISO8601DateTime",
"id": "ID",
"order": "Order",
"pickupAddress": "Address",
"pickupInstructions": "String",
"priority": "DeliveryPriority",
"requestedPickupAt": "ISO8601DateTime",
"status": "DeliveryStatus",
"timeZoneIdentifier": "String"
}
Fields
Name | Null | Type | Description |
| false | Boolean | Boolean if the delivery has been cancelled |
| true | CatererPickupVerification | Verification from the caterer on the food that was prepared for this delivery before being pickup by the driver. |
| false | String | Distance in miles between addresses ie. '5.75 miles' or 'not calculated' |
| true | String |
|
| false | Driver | Drivers assigned to the delivery |
| false | Address | Address to drop off the delivery at |
| true | DropoffContact | The drop-off point(s) of contact for the delivery, ordered by position of recommended contact details. |
| false | ISO8601DateTime | Timestamp of the event in iso8601 format |
| false | ID | UUID of the delivery |
| false | Order | Order object of the delivery |
| false | Address | Address to pick up the delivery from |
| true | String | Pickup instructions for delivery drivers, provided by the caterer. |
| false | DeliveryPriority | The priority level of the delivery. |
| true | ISO8601DateTime | Timestamp of when ezCater requests the delivery be picked up in ISO 8601 format. |
| false | DeliveryStatus | State of the delivery |
| false | String | Time zone of the eventAt timestamp |
Driver
This is an "Object" type
Represents a delivery driver
{
"externalId": "ID",
"firstName": "String",
"id": "ID",
"lastName": "String",
"phone": "Phone",
"vehicle": "Vehicle"
}
Fields
Name | Null | Type | Description |
| true | ID | An ID that you have associated with the driver |
| true | String | Driver's first name |
| false | ID | UUID of the driver |
| true | String | Driver's last name |
| false | Phone | Driver's unique phone number |
| true | Vehicle | Object for the driver's vehicle |
DriverDeliveryEventCreatePayload
This is an "Object" type
Autogenerated return type of DriverDeliveryEventCreate
{
"clientMutationId": "String",
"delivery": "Delivery",
"errors": "String"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| true | Delivery | Delivery that the event was created for |
| true | String | Returns an array containing error messages if any exist |
DriverDropoffVerificationCreatePayload
This is an "Object" type
Autogenerated return type of DriverDropoffVerificationCreate
{
"clientMutationId": "String",
"errors": "String",
"success": "Boolean"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| false | String | Returns an array containing error messages if any exist |
| false | Boolean | Returns whether or not the request was successful |
DriverPickupVerificationCreatePayload
This is an "Object" type
Autogenerated return type of DriverPickupVerificationCreate
{
"clientMutationId": "String",
"errors": "String",
"success": "Boolean"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| false | String | Returns an array containing error messages if any exist |
| false | Boolean | Returns whether or not the request was successful |
DriversAssignPayload
This is an "Object" type
Autogenerated return type of DriversAssign
{
"clientMutationId": "String",
"delivery": "Delivery"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| true | Delivery | The delivery that has been updated with the new driver assignments. |
DropoffContact
This is an "Object" type
{
"name": "String",
"phone": "String",
"phoneExtenstion": "String"
}
Fields
Name | Null | Type | Description |
| true | String | The name the driver should ask for at the drop-off location. |
| true | String | The contact's phone number. Formatted using E.164 Standard. For example +16175551236 |
| true | String | The contact's phone extension. |
Instructions
This is an "Object" type
Additional instructional information for the address
{
"text": "String"
}
Fields
Name | Null | Type | Description |
| true | String |
|
Order
This is an "Object" type
Represents the delivery specific ezCater order information
{
"forRelish": "Boolean",
"itemCount": "Int",
"orderItems": "OrderItem",
"orderNumber": "String",
"subtotal": "Float",
"tip": "Float"
}
Fields
Name | Null | Type | Description |
| false | Boolean | Indicates whether or not this is a Meal Program order |
| false | Int | The number of items in the order |
| false | OrderItem | List of items with name/count on the order |
| false | String | The ezCater order number ie. #ABC-123 |
| false | Float | The subtotal value of the order in dollars |
| false | Float | The tip value in dollars |
OrderItem
This is an "Object" type
Individual selections and quantities from the menu a customer purchased
{
"name": "String",
"quantity": "Int"
}
Fields
Name | Null | Type | Description |
| false | String | Name for this item in the cart |
| false | Int | Quantity for this item in the cart |
RejectDeliveryPayload
This is an "Object" type
Autogenerated return type of RejectDelivery
{
"clientMutationId": "String",
"delivery": "Delivery"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| true | Delivery | Delivery that was just rejected |
UnassignDriverPayload
This is an "Object" type
Autogenerated return type of UnassignDriver
{
"clientMutationId": "String",
"delivery": "Delivery"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| true | Delivery | Delivery that the driver was unassigned from |
UpdateDriverPayload
This is an "Object" type
Autogenerated return type of UpdateDriver
{
"clientMutationId": "String",
"driver": "Driver"
}
Fields
Name | Null | Type | Description |
| true | String | A unique identifier for the client performing the mutation. |
| true | Driver | Driver that was updated |
Vehicle
This is an "Object" type
Details for vehicles that drivers use
{
"color": "String",
"make": "String",
"model": "String"
}
Fields
Name | Null | Type | Description |
| false | String | Color of the driver's vehicle |
| false | String | Make of the driver's vehicle |
| true | String | Model of the driver's vehicle |
