pizzahut_delivery_estimate
Verify Pizza Hut delivery serviceability to an address and get the estimated delivery fee, including pickup/dropoff times.
Instructions
Check Pizza Hut delivery serviceability and estimated fee for one store and address. Checks whether a Pizza Hut restaurant's delivery integration can deliver to a given address and, when it can, the estimated delivery fee (broken down by fee line item) and pickup/dropoff time. This reads the same checkout-time estimate Pizza Hut's own site calls -- it does not add an item to a cart or place an order, and takes no payment or account information. serviceable is true only when the upstream returned a real estimate; a false value with reason populated covers every other case seen live, such as the requested delivery_provider not being enabled at that store. For the default INTERNAL provider, a serviceable result does not by itself confirm the address is within a real deliverable radius -- see this endpoint's markdown doc for the caveat. order_subtotal materially affects the fee estimate, so it is required rather than defaulted. pickup_at defaults to 30 minutes from now (an "order now" style estimate) when omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | Delivery address city | |
| state | Yes | Delivery address state, two-letter code | |
| address1 | Yes | Delivery address line 1 | |
| address2 | No | Delivery address line 2 | |
| latitude | Yes | Delivery address latitude | |
| longitude | Yes | Delivery address longitude | |
| pickup_at | No | RFC3339 pickup time (default 30 minutes from now) | |
| postal_code | Yes | Delivery address postal code | |
| country_code | No | Delivery address country code (default US) | |
| store_number | Yes | Pizza Hut's store number, from /pizzahut/stores | |
| order_subtotal | Yes | Order subtotal before fees, in dollars | |
| delivery_provider | No | Delivery provider to check (default INTERNAL) |