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 is a checkout-time estimate -- 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.
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/pizzahut/delivery-estimate
- Auth: API key in header x-api-key
Query parameters
Pizza Hut's store number, from /pizzahut/stores
Delivery address line 1
Delivery address line 2
Delivery address city
Delivery address state, two-letter code
Delivery address postal code
Delivery address country code (default US)
Delivery address latitude
Delivery address longitude
Order subtotal before fees, in dollars
RFC3339 pickup time (default 30 minutes from now)
Delivery provider to check (default INTERNAL)
Headers
API key required
Response
OK
Example response
{
"data": {
"delivery_provider": "INTERNAL",
"fee": {
"amount": 20.99,
"amount_cents": 2099,
"currency_code": "USD"
},
"fees": [
{
"amount": {
"amount": 20.99,
"amount_cents": 2099,
"currency_code": "USD"
},
"name": "Delivery fee",
"type": "DELIVERY_FEE"
}
],
"reason": "The requested StoreDeliveryProvider has not be enabled at this store",
"serviceable": true,
"store_number": "040937"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.