Public API
Delivery API
Courier Image Create
7min
creating delivery images upon completion of a delivery, providing an image of the food having securely arrived at the delivery site is important delivery images allow both customer(s) and partner(s) to confirm that everything that was ordered arrived safely, and provides a rough indication of where the courier delivered the food and in what state it arrived if you already had a courier assigned to a delivery and are now assigning a new courier, we automatically take care of un assigning the previous courier mutation mutation mutation courierimagescreate($input courierimagescreateinput!) { courierimagescreate(input $input) { clientmutationid usererrors { on deliveryvalidationerror { message path } } } } variables variables { "input" { "clientmutationid" "your mutation id", "courier" { "id" "your courier id", "firstname" "test", "lastname" "courier", "phone" "+15555555555", "vehicle" { "make" "your vehicle make", "model" "your vehicle model", "color" "your vehicle color" } }, "deliveryid" "ezcater delivery id", "imageurls" \["https //your courier company com/your courier id delivery jpg"] } } arguments argument name description input courier image create docid 3ekot5kw3kmh9s1x3o hy the input object for creating a new menu return type returns a courier schema reference docid 7gv344rnwmuoknj9u4rw7 success responses response { "data" { "courierimagescreate" { "clientmutationid" "your mutation id", "usererrors" \[] } } } failure responses 400 bad request when the courierimagescreate mutation fails due to bad user input, such as an invalid field, you can expect a http 400 bad request and the response payload to look like response { "errors" \[ { "message" "variable \\"$input\\" got invalid value { clientmutationid \\"your mutation id\\", coordinates { latitude 42 360081, longitude 71 058884 }, courier { id \\"your courier id\\", firstname \\"test\\", lastname \\"courier\\", phone \\"+15555555555\\", vehicle \[object] }, deliveryid \\"your ezcater delivery id\\", eventtype \\"picked up\\", occurredat \\"2025 05 07t19 52 32 841z\\" }; field \\"eventtype\\" is not defined by type \\"couriertrackingeventcreateinput\\" ", "extensions" { "code" "bad user input" } } ] } response { "errors" \[ { "message" "variable \\"$input\\" got invalid value null at \\"input imageurls\\"; expected non nullable type \\"\[string!]!\\" not to be null ", "extensions" { "code" "bad user input" } } ] }