Upsert Recipient and Create Task
A 4-step recipe with Onfleet. We can help you get access.
Recipe · 4 steps
Upsert Recipient and Create Task
with Onfleet · Last-Mile Delivery Operations Management
Resolve a recipient by phone (create if absent) and create a delivery task.
- Look up an existing recipient by their E.164 phone number.
- Create a new recipient because none matched the supplied phone number.
- Create a dropoff task for the recipient that already existed.
- Create a dropoff task for the newly created recipient.
What you'll need to have ready
- recipientPhone: The recipient phone number in E.164 format to look up or create.
- recipientName: The recipient name used when a new recipient must be created.
- unparsedAddress: A single-line street address Onfleet will geocode for the task.
- completeBefore: Latest completion time in Unix milliseconds.
- taskNotes: Optional notes shown to the assigned worker.
For your developer
Arazzo workflow onfleet:upsert-recipient-and-create-task, 4 operations: getRecipientByPhone → createRecipient → createTask → createTask. Specs on APIs.io.