Skip to main content

Errors

The shape of every error response and the stable codes your program can branch on.

Every error answers { "error", "message" }: error is a stable code in English for your program to branch on, and message is a text in Spanish that you can show as is. 401 and 403 responses add docs with the URL of this documentation, for anyone who reaches the API without having read it.

HTTPerrorWhen
400VALIDATIONA field is missing or has an invalid format. `issues` says which one.
401UNAUTHORIZEDThe key is missing, does not exist or was revoked.
402NOT_PREMIUMThe restaurant has no active subscription or trial.
403FORBIDDENThe key lacks the permission the endpoint requires.
404NOT_FOUNDThe restaurant is not in your account, or the product or category does not exist in it.
409CONFLICTDuplicate category name, identifier already taken, or category that still has products.
422LIMITA limit was reached.
500INTERNALSomething failed on our side. Try again in a moment.

Developers