ErrorType
Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThis page lists potential error types that can occur during an order process, categorized by enums.\u003c/p\u003e\n"],["\u003cp\u003eErrors can relate to entities like items, fulfillment options, and promotions, often requiring entity IDs for resolution.\u003c/p\u003e\n"],["\u003cp\u003eSeveral errors address availability, pricing discrepancies, and order constraints, including minimum basket size or service capacity.\u003c/p\u003e\n"],["\u003cp\u003eSpecific errors pertain to promo code failures, user eligibility, and delivery limitations like service area restrictions.\u003c/p\u003e\n"],["\u003cp\u003ePayment issues, merchant unavailability, and account linking problems are also encompassed in the error types.\u003c/p\u003e\n"]]],["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"],null,["# ErrorType\n\nPossible error types.\n\n| Enums ||\n|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `ERROR_TYPE_UNSPECIFIED` | Unknown error |\n| `NOT_FOUND` | Entity not found, could be Item, FulfillmentOption, Promotion. Entity ID required. |\n| `INVALID` | Entity data not valid. could be Item, FulfillmentOption, Promotion. Entity ID required. |\n| `AVAILABILITY_CHANGED` | Item unavailable, or insufficient items to fulfill the request. Entity ID required. |\n| `PRICE_CHANGED` | Item price different from price in Item entity. Entity ID and updated price required. |\n| `INCORRECT_PRICE` | Price errors in Fees, Total. Entity ID and updated price required. |\n| `REQUIREMENTS_NOT_MET` | Constraints for accepting order not met - minimum basket size etc.,. |\n| `TOO_LATE` | FulfillmentOption expired. |\n| `NO_CAPACITY` | No available service capacity. |\n| `INELIGIBLE` | User in-eligible to place order (blacklisted). |\n| `OUT_OF_SERVICE_AREA` | Unable to deliver to requested address due to border rules etc. |\n| `CLOSED` | Restaurant is closed for business at ordering time. |\n| `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. |\n| `PROMO_NOT_RECOGNIZED` | The coupon code was not recognized by partner. Add promo code as Entity Id. |\n| `PROMO_EXPIRED` | Could not apply as promotion expired. Add promo code as Entity Id. |\n| `PROMO_USER_INELIGIBLE` | The current user is not eligible for this coupon. Add promo code as Entity Id. |\n| `PROMO_ORDER_INELIGIBLE` | The current order is not eligible for this coupon. Add promo code as Entity Id. |\n| `UNAVAILABLE_SLOT` | The order ahead slot is unavailable. |\n| `FAILED_PRECONDITION` | Constraints for accepting order not met - minimum basket size etc. |\n| `PAYMENT_DECLINED` | Invalid payment. |\n| `MERCHANT_UNREACHABLE` | Merchant is not reachable. This helps when a partner is an aggregator and could not reach merchant. |\n| `ACCOUNT_LINKING_FAILED` | Merchant tried to link user google account to an account in their system but encountered an error while doing so. |"]]