Appearance
Delivery lifecycle
Every delivery moves through a normalized status model. Your integration should key off status on API responses and eventType on webhooks.
Status definitions
| Status | Terminal? | Description |
|---|---|---|
accepted | No | Created; waiting for OnPoint to assign a driver |
dispatch_failed | No* | No driver assigned — may recover or expire |
scheduled | No | Waiting for scheduled window |
reassigning | No | The assigned driver dropped the delivery, possibly after pickup; another is being assigned |
driver_assigned | No | Driver assigned |
driver_enroute_to_pickup | No | Driver en route to pickup |
driver_at_pickup | No | Driver at pickup location |
pickup_complete | No | Items picked up |
driver_enroute_to_dropoff | No | Driver en route to customer |
driver_at_dropoff | No | Driver at customer location |
delivered | Yes | Successfully completed |
failed | Yes | Delivery failed |
return_in_progress | No | Returning to store |
returned | Yes | Returned to store |
cancelled | Yes | Cancelled by client or operations |
expired | Yes | Timed out without completion |
* dispatch_failed becomes terminal only if followed by expired or cancelled.
What production looks like (Walmart baseline, 90d)
Rates below are from read-only carrier discovery on current Walmart volume. Sandbox POST /deliveries/{id}/simulate can replay each pattern with scenario (see OpenAPI).
| Pattern | Approx. rate | Sandbox scenario |
|---|---|---|
Skips pickup_complete (inferred before dropoff) | ~43% | skipped_pickup_scan |
Driver drop → reassigning | ~12% | driver_dropped |
Store-side cancel (canceled_by_merchant) | ~3% | store_cancelled |
| Carrier free-text failure label | common | failed_with_label + carrierLabel |
| No driver / window expiry | rare | no_driver_found, window_expired |
| Shared route (batched job) | ~68% of packages | batched_route + pairedDeliveryId |
Treat statusHistory[].inferred: true as normal. Do not require pickup_complete before driver_enroute_to_dropoff. Store-side cancels are not the same as your API cancel reason.
Dispatch vs expiry: Walmart production saw job_autodispatch_failure tags but almost no carrier-reported expired. Treat deliveries still in accepted, scheduled, or reassigning past the dropoff window as expiring via OnPoint expired (after grace), not only via dispatch_failed. New creates can recover from dispatch_failed; expiry is terminal and cancels the open carrier job.
Why a delivery ended that way
status tells you what happened; statusReasonCode tells you why, in a form you can branch on. It accompanies failed, cancelled, dispatch_failed, expired, and return_in_progress, plus partial_delivery on delivered. The prose statusReason is for humans and may change without notice.
The codes worth handling explicitly:
| Group | Codes |
|---|---|
| Recipient | recipient_unavailable, recipient_refused, recipient_not_at_cq |
| Address | address_not_found, address_inaccessible, unsupported_destination_type |
| Installation access | denied_at_gate, credential_expired, credential_not_valid_for_installation, gate_closed, fpcon_elevated, escort_unavailable |
| Verification | verification_failed, age_verification_failed, photography_prohibited_no_substitute |
| Package | package_damaged, package_not_ready |
| Dispatch | no_carrier_available, outside_service_area, quote_expired |
| Cancellation attribution | cancelled_by_merchant, cancelled_by_recipient, cancelled_by_carrier, cancelled_by_onpoint |
| External | weather_or_road_closure |
| Partial delivery | partial_delivery (on delivered) |
A partial delivery is still delivered. The driver handed over the order with some items missing — out of stock at pick time, or refused at the door. Branch on statusReasonCode: partial_delivery to refund or reship the rest; statusReason carries the counts when the carrier reported its pick, e.g. "Partially delivered: 3 of 5 items."
Treat the access codes differently from recipient_unavailable. A driver turned away at a gate is not a customer who missed the door: the package never reached the destination, the recipient did nothing wrong, and the fix is credential or scheduling work rather than a redelivery attempt. Most delivery APIs collapse both into one "delivery attempt failed" bucket, which makes the failure rate uninterpretable and gives support nothing to route on. Retrying a denied_at_gate order unchanged will simply fail again.
Cancellation attribution matters for the same reason — cancelled_by_carrier is an OnPoint problem, cancelled_by_recipient is not, and only one of them should count against your fulfillment metrics.
Typical happy path
accepted
→ driver_assigned
→ driver_enroute_to_pickup
→ driver_at_pickup
→ pickup_complete
→ driver_enroute_to_dropoff
→ driver_at_dropoff
→ deliveredOnPoint guarantees that a delivery reaching delivered has passed through the intermediate driver milestones in order. If a driver skips a milestone, OnPoint infers it before emitting webhooks.
Inferred milestones
Drivers do not always tap every step. The most common gap is pickup_complete: a driver leaves the store and the next thing OnPoint hears is arrival at the dropoff. When that happens OnPoint emits the skipped milestone, in order, before the one that revealed it, and marks it in statusHistory with "inferred": true:
json
"statusHistory": [
{ "status": "driver_at_pickup", "occurredAt": "2026-07-26T21:24:00Z" },
{ "status": "pickup_complete", "occurredAt": "2026-07-26T21:39:10Z", "inferred": true },
{ "status": "driver_at_dropoff", "occurredAt": "2026-07-26T21:39:10Z" }
]An inferred entry's occurredAt is the time of the milestone that revealed it, not an observed time. Do not use it for timing metrics such as dwell time at the store; filter on inferred first.
Special cases
Reassigning
reassigning means the delivery is still live: the assigned driver dropped it and OnPoint is assigning another. A new driver_assigned follows. Do not mark the order cancelled or create a replacement delivery unless your business rules require it.
Reassignment can happen after pickup_complete, when the package is already in a vehicle. Proof captured so far stays in proofOfDelivery, and the new driver collects the package before continuing. Expect driver.* fields and etas to change when the new driver is assigned.
Shared routes
One driver often carries several of your deliveries on the same route. Each delivery keeps its own status and webhooks, but you will see them move together: assignment and pickup events for every delivery on the route arrive within seconds of each other, and each delivery's etas.dropoff reflects its position in the stop order. Do not treat simultaneous events for different deliveries as duplicates; deduplicate on eventId only.
Deliveries on the same route share a routeId, and stopSequence gives each one's position on it, starting at 1. Both appear once the route is planned. driver.vehicle.plateLast4 helps the recipient pick out the car.
ETA updates
etas is absent until a driver is assigned. Afterwards, delivery.eta_updated fires whenever an ETA moves materially, including when the driver reports a delay. Some driver devices do not report position, so etas can stay absent for an entire delivery; fall back to the time windows you requested.
Dispatch failed
The delivery record exists. You may:
- Wait for automatic retry (if configured for your account)
- Call
PATCH /deliveries/{deliveryId}to update and trigger re-dispatch - Cancel via
POST /deliveries/{deliveryId}/cancel
Returns
When capabilities.returns is true, failed or refused drop-offs may enter:
failed or driver_at_dropoff
→ return_in_progress
→ returnedWhat the driver is asked to do
Every verification step you request becomes a hard requirement for the driver, so preferred is enforced as required. resolvedVerification on the delivery shows exactly what was sent, including any check added because of package.contains. Anything the carrier network can't enforce returns 422 UNSUPPORTED_REQUIREMENT with the field named, rather than being dropped.
| You send | The driver must |
|---|---|
verification.pickup.photo / .signature | Photograph the package / collect a signature at pickup |
verification.pickup.barcode (mode: scan) | Scan one of values at pickup |
verification.pickup.barcode (mode: display) | Show a code for store staff to scan |
verification.dropoff.photo / .signature | Photograph the drop / collect the recipient's signature |
verification.dropoff.barcode (mode: scan) | Scan one of values at dropoff |
verification.dropoff.pinCode (source: onpoint_generated) | Enter the PIN the recipient was texted |
verification.dropoff.identity without minimumAge | Check a government-issued photo ID |
verification.dropoff.identity with minimumAge: 21 | Check ID and that the recipient is at least 21 |
verification.return.barcode (mode: scan) | Scan the package when returning it |
package.contains with alcohol or tobacco | Check ID for age 21 (added for you; listed in resolvedVerification.derived) |
handling.handoff: hand_to_recipient | Meet the recipient and hand the package over |
handling.twoPersonTeam: true | Arrive as a two-person team |
handling.handoff other than hand_to_recipient, undeliverableAction, fallbackHandoff | Read them as a line ahead of dropoff.instructions, e.g. "Handoff: CQ desk. If undeliverable: take to visitor center" |
dropoff.unit | Read the building, floor, room and handoff point, shown ahead of dropoff.instructions |
verification.pickup.parkingCheckIn or verification.dropoff.parkingCheckIn | Check in from the parking lot and report where they parked |
package.contains with perishable_cold_chain | Carry chilled goods (only drivers equipped for it are offered the order) |
orderType: grocery | Be set up for grocery orders |
orderType: b2b | Be set up for business deliveries |
customTags | Belong to a fleet carrying every tag (agreed with OnPoint; an unknown tag leaves the order undispatched) |
Some accounts also carry default requirements set by OnPoint, such as parking check-in on every order. They apply on top of what you send.
These return 422 UNSUPPORTED_REQUIREMENT: a PIN or identity check at pickup, a PIN with a source other than onpoint_generated, a minimumAge other than 21, acceptedDocuments, matchRecipientName: true, collectSignerName or collectSignerRelationship, barcode symbologies, a display barcode at dropoff or on the return leg, return-leg barcode values, and any return-leg check other than a barcode scan. photo.substituteWhenProhibited is accepted but has no effect: no stop the carrier network serves prohibits photography today.
Recipient texts
The carrier network texts the recipient at dropoff.contactPhone as the delivery moves: when it's picked up, when the driver is on the way, and when it's delivered. If the recipient has opted out, create the delivery with dropoff.notifications: { "sms": false } and those texts aren't sent. The driver still has the number to call on arrival, and a PIN you asked for (verification.dropoff.pinCode) is still texted, because the recipient needs it to receive the delivery.
Set it at create, including on a PUT /deliveries that creates. It can't change afterward: an update that sends a different value returns 422 on dropoff.notifications, and one that repeats it is accepted. The delivery shows dropoff.notifications only when texts are off. A redelivery keeps the setting.
Tracking link
When capabilities.trackingPage is true, each delivery and its webhooks carry a trackingUrl you can send the recipient. Deliveries created before tracking links launched have none. The page shows the status, the store name, the ETA, and how far away the driver is while they're on the way. It never shows an address, a name, a phone number or the driver's position. The link needs no login: its random token is the only thing gating access, so send it only to the recipient. A redelivery gets its own link.
Drivers
When capabilities.drivers is true, GET /drivers lists the OnPoint fleet drivers who have carried your deliveries, most recent first, and GET /drivers/{driverId} returns one. driver.id on a delivery is the same id. Names are first name and last initial. Drivers from partner carriers aren't listed, and a delivery they carry shows its driver without an id. driver.created and driver.updated webhooks report new and changed profiles; see Webhooks.
Update eligibility
| Lifecycle stage | Updatable fields |
|---|---|
Before pickup_complete | All create fields (pickup, dropoff, windows, package, verification, handling, tip, metadata) except dropoff.notifications |
After pickup_complete, before delivered | dropoff.instructions, dropoff.contactPhone, tipAmountCents |
After delivered | None — returns 409 |
verification merges a stop at a time and handling a field at a time: sending verification.dropoff.photo keeps verification.dropoff.signature. Set a check's level to none to remove it. A check that package.contains requires is added back on every update — to drop the age check, remove alcohol or tobacco from package.contains.
The update reaches the carrier a moment after the 200. If the carrier refuses it, the delivery keeps the requirements it had at the carrier; resolvedVerification shows what was last requested.
Sending the whole order by your reference
PUT /deliveries takes the same body as a create and finds the delivery by its clientOrderReference. It creates the delivery (201) the first time and updates it (200) after that, so a system that resends its full order on every change needs no deliveryId. Updates follow the table above, with one difference: after pickup_complete the call returns 409, because a full order can't be applied any more. Use PATCH for the fields still allowed.
Redelivery
When a delivery ends failed, returned or cancelled and the order should go out again, call POST /deliveries/{deliveryId}/redeliver. It creates a new delivery with the same clientOrderReference, store, dropoff, package and requirements, dispatches it, and leaves the original unchanged. Send timeWindows if the original's have passed.
A delivery that ended delivered with statusReasonCode partial_delivery can be redelivered too. Send package.items with the SKUs (or line positions) still to deliver; quantities must not exceed the original line. Omit package.items on other redeliveries to clone the full package. The API does not record which items were short; you choose the remaining SKUs.
| Field | Original | Redelivery |
|---|---|---|
deliveryId | del_A | del_B (new) |
clientOrderReference | ORDER-1 | ORDER-1 |
attempt | 1 | 2 |
redeliveryOf | — | del_A |
Each delivery can be redelivered once; to try a third time, redeliver del_B. GET /deliveries?clientOrderReference=ORDER-1 lists every attempt. Webhooks for the redelivery carry its own deliveryId, and PUT /deliveries with ORDER-1 updates the latest attempt.
Cancellation eligibility
Cancellations are accepted until the delivery reaches a terminal state. Cancellation fees (when supported) appear in pricing.cancellationFeeCents on the response.
Polling vs webhooks
| Use case | Recommendation |
|---|---|
| Live order tracking UI | Webhooks + occasional GET for reconciliation |
| Checkout serviceability | POST /serviceability |
| Checkout quote | POST /quotes |
| Recovery after a webhook outage | GET /events?delivered=false&since= |
| Recovery after your own outage | GET /deliveries?from={lastSeenTimestamp} |
| Look up one order by your own ID | GET /deliveries?clientOrderReference={ref} |
| Nightly reconciliation | GET /deliveries?from=&to= |
Prefer GET /events?delivered=false for webhook gaps. It returns exactly the events your endpoint never received, in order, with payloads identical to the originals — so you replay them through the same handler instead of diffing delivery state and inferring what you missed.