Possible error types.
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. |