ErrorType
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
The content provides a list of possible error types, each described by an enum and a brief explanation.
Errors can relate to various aspects including finding or validating entities, availability, pricing, and order requirements.
Other error types cover issues such as fulfillment options, capacity, user eligibility, service area, and merchant status.
Several error types specifically address issues with applying or validating promotional codes.
Additional errors include those related to unavailable time slots, payment problems, and account linking failures.
Enums
ERROR_TYPE_UNSPECIFIED
Unknown error
NOT_FOUND
Entity not found, could be Item, FulfillmentOption, Promotion. Entity ID required.
INVALID
Entity data not valid. could be Item, FulfillmentOption, Promotion. Entity ID required.
AVAILABILITY_CHANGED
Item unavailable, or insufficient items to fulfill the request. Entity ID required.
PRICE_CHANGED
Item price different from price in Item entity. Entity ID and updated price required.
INCORRECT_PRICE
Price errors in Fees, Total. Entity ID and updated price required.
REQUIREMENTS_NOT_MET
Constraints for accepting order not met - minimum basket size etc.,.
TOO_LATE
FulfillmentOption expired.
NO_CAPACITY
No available service capacity.
INELIGIBLE
User in-eligible to place order (blacklisted).
OUT_OF_SERVICE_AREA
Unable to deliver to requested address due to border rules etc.
CLOSED
Restaurant is closed for business at ordering time.
PROMO_NOT_APPLICABLE
Generic error code to catch all cases of failure to apply promo code, if none of the ones below fit. Add promo code as Entity Id.
PROMO_NOT_RECOGNIZED
The coupon code was not recognized by partner. Add promo code as Entity Id.
PROMO_EXPIRED
Could not apply as promotion expired. Add promo code as Entity Id.
PROMO_USER_INELIGIBLE
The current user is not eligible for this coupon. Add promo code as Entity Id.
PROMO_ORDER_INELIGIBLE
The current order is not eligible for this coupon. Add promo code as Entity Id.
UNAVAILABLE_SLOT
The order ahead slot is unavailable.
FAILED_PRECONDITION
Constraints for accepting order not met - minimum basket size etc.
PAYMENT_DECLINED
Invalid payment.
MERCHANT_UNREACHABLE
Merchant is not reachable. This helps when a partner is an aggregator and could not reach merchant.
ACCOUNT_LINKING_FAILED
Merchant tried to link user google account to an account in their system but encountered an error while doing so.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[],["The provided content details potential error types, categorized as enums, that can occur during order placement. These include: entity-related issues like `NOT_FOUND`, `INVALID`, or `PRICE_CHANGED`; availability problems such as `AVAILABILITY_CHANGED`, `NO_CAPACITY`, or `UNAVAILABLE_SLOT`; fulfillment errors including `TOO_LATE` or `OUT_OF_SERVICE_AREA`; user or order ineligibility, as indicated by `INELIGIBLE` or various `PROMO_*` errors; and general issues like `PAYMENT_DECLINED` or `MERCHANT_UNREACHABLE`. Each enum provides a specific error description.\n"]]