{
  "api_version": "v1",
  "endpoints": {
    "menu_by_id": {
      "method": "GET",
      "path": "/api/v1/menus/{menu_id}",
      "fixtures": {
        "published_menu": {
          "request": {
            "path": "/api/v1/menus/0b389055-7488-4b31-b4ed-c0376214d95a"
          },
          "response": {
            "status": 200,
            "headers": {
              "Access-Control-Allow-Origin": "*",
              "Access-Control-Expose-Headers": "ETag, X-Menpub-Environment",
              "Cache-Control": "public",
              "ETag": "\"26946680afbddfa9ccb81d765e6cfc7c7\"",
              "X-Menpub-Environment": "sandbox",
              "Content-Type": "application/json; charset=utf-8"
            },
            "body": {
              "menu": {
                "id": "0b389055-7488-4b31-b4ed-c0376214d95a",
                "version_id": "published_8f0a148946a95b8b69d20c6ce0bc805b332d1cb74278858004aed5b93de42d66",
                "schema_version": "2026-08-12",
                "name": "Drinks",
                "description": "Coffee menu",
                "currency": "USD",
                "locale": "en-US",
                "source_updated_at": "2026-11-20T20:30:00Z",
                "business": {
                  "name": "Example Café"
                },
                "locations": [
                  {
                    "id": "LOCATION_CAFE",
                    "name": "Example Café",
                    "status": "ACTIVE",
                    "type": "PHYSICAL",
                    "timezone": "America/Los_Angeles"
                  }
                ],
                "hours_groups": [],
                "sections": [
                  {
                    "id": "coffee",
                    "name": "Coffee",
                    "description": null,
                    "items": [
                      {
                        "id": "latte",
                        "name": "Latte",
                        "description": "Espresso and milk",
                        "image": {},
                        "price": {
                          "amount_cents": 325,
                          "currency": "USD",
                          "formatted": "$3.25"
                        },
                        "variations": [
                          {
                            "id": "latte-12oz",
                            "name": "12 oz",
                            "price": {
                              "amount_cents": 325,
                              "currency": "USD",
                              "formatted": "$3.25"
                            },
                            "available": true,
                            "metadata": {
                              "source_provider": "square",
                              "source_id": "ITEM_LATTE_12OZ"
                            }
                          }
                        ],
                        "modifier_groups": [],
                        "labels": [],
                        "available": true,
                        "metadata": {
                          "source_provider": "square",
                          "source_id": "ITEM_LATTE"
                        }
                      }
                    ],
                    "sections": [],
                    "metadata": {}
                  }
                ],
                "menu_roots": [
                  {
                    "id": "drinks",
                    "name": "Drinks",
                    "description": null,
                    "items": [],
                    "sections": [
                      {
                        "id": "coffee",
                        "name": "Coffee",
                        "description": null,
                        "items": [
                          {
                            "id": "latte",
                            "name": "Latte",
                            "description": "Espresso and milk",
                            "image": {},
                            "price": {
                              "amount_cents": 325,
                              "currency": "USD",
                              "formatted": "$3.25"
                            },
                            "variations": [
                              {
                                "id": "latte-12oz",
                                "name": "12 oz",
                                "price": {
                                  "amount_cents": 325,
                                  "currency": "USD",
                                  "formatted": "$3.25"
                                },
                                "available": true,
                                "metadata": {
                                  "source_provider": "square",
                                  "source_id": "ITEM_LATTE_12OZ"
                                }
                              }
                            ],
                            "modifier_groups": [],
                            "labels": [],
                            "available": true,
                            "metadata": {
                              "source_provider": "square",
                              "source_id": "ITEM_LATTE"
                            }
                          }
                        ],
                        "sections": [],
                        "metadata": {}
                      }
                    ],
                    "metadata": {}
                  }
                ],
                "metadata": {
                  "integrations": {
                    "source_provider": "square"
                  }
                }
              },
              "environment": "sandbox"
            }
          }
        },
        "not_modified": {
          "request": {
            "path": "/api/v1/menus/0b389055-7488-4b31-b4ed-c0376214d95a",
            "headers": {
              "If-None-Match": "\"26946680afbddfa9ccb81d765e6cfc7c7\""
            }
          },
          "response": {
            "status": 304,
            "headers": {
              "Access-Control-Allow-Origin": "*",
              "Access-Control-Expose-Headers": "ETag, X-Menpub-Environment",
              "Cache-Control": "public",
              "ETag": "\"26946680afbddfa9ccb81d765e6cfc7c7\"",
              "X-Menpub-Environment": "sandbox"
            },
            "body": null
          }
        }
      },
      "error_fixtures": [
        "menu_not_found",
        "api_not_connected",
        "menu_environment_changed",
        "production_menu_environment_changed",
        "menu_unavailable",
        "menu_fetch_failed_bad_gateway",
        "menu_fetch_failed_service_unavailable"
      ]
    },
    "menu_by_slug": {
      "method": "GET",
      "path": "/api/v1/menus/{client_slug}/{menu_slug}",
      "fixtures": {
        "published_menu": {
          "request": {
            "path": "/api/v1/menus/example-cafe/drinks"
          },
          "response": {
            "status": 200,
            "headers": {
              "Access-Control-Allow-Origin": "*",
              "Access-Control-Expose-Headers": "ETag, X-Menpub-Environment",
              "Cache-Control": "public",
              "ETag": "\"26946680afbddfa9ccb81d765e6cfc7c7\"",
              "X-Menpub-Environment": "sandbox",
              "Content-Type": "application/json; charset=utf-8"
            },
            "body": {
              "menu": {
                "id": "0b389055-7488-4b31-b4ed-c0376214d95a",
                "version_id": "published_8f0a148946a95b8b69d20c6ce0bc805b332d1cb74278858004aed5b93de42d66",
                "schema_version": "2026-08-12",
                "name": "Drinks",
                "description": "Coffee menu",
                "currency": "USD",
                "locale": "en-US",
                "source_updated_at": "2026-11-20T20:30:00Z",
                "business": {
                  "name": "Example Café"
                },
                "locations": [
                  {
                    "id": "LOCATION_CAFE",
                    "name": "Example Café",
                    "status": "ACTIVE",
                    "type": "PHYSICAL",
                    "timezone": "America/Los_Angeles"
                  }
                ],
                "hours_groups": [],
                "sections": [
                  {
                    "id": "coffee",
                    "name": "Coffee",
                    "description": null,
                    "items": [
                      {
                        "id": "latte",
                        "name": "Latte",
                        "description": "Espresso and milk",
                        "image": {},
                        "price": {
                          "amount_cents": 325,
                          "currency": "USD",
                          "formatted": "$3.25"
                        },
                        "variations": [
                          {
                            "id": "latte-12oz",
                            "name": "12 oz",
                            "price": {
                              "amount_cents": 325,
                              "currency": "USD",
                              "formatted": "$3.25"
                            },
                            "available": true,
                            "metadata": {
                              "source_provider": "square",
                              "source_id": "ITEM_LATTE_12OZ"
                            }
                          }
                        ],
                        "modifier_groups": [],
                        "labels": [],
                        "available": true,
                        "metadata": {
                          "source_provider": "square",
                          "source_id": "ITEM_LATTE"
                        }
                      }
                    ],
                    "sections": [],
                    "metadata": {}
                  }
                ],
                "menu_roots": [
                  {
                    "id": "drinks",
                    "name": "Drinks",
                    "description": null,
                    "items": [],
                    "sections": [
                      {
                        "id": "coffee",
                        "name": "Coffee",
                        "description": null,
                        "items": [
                          {
                            "id": "latte",
                            "name": "Latte",
                            "description": "Espresso and milk",
                            "image": {},
                            "price": {
                              "amount_cents": 325,
                              "currency": "USD",
                              "formatted": "$3.25"
                            },
                            "variations": [
                              {
                                "id": "latte-12oz",
                                "name": "12 oz",
                                "price": {
                                  "amount_cents": 325,
                                  "currency": "USD",
                                  "formatted": "$3.25"
                                },
                                "available": true,
                                "metadata": {
                                  "source_provider": "square",
                                  "source_id": "ITEM_LATTE_12OZ"
                                }
                              }
                            ],
                            "modifier_groups": [],
                            "labels": [],
                            "available": true,
                            "metadata": {
                              "source_provider": "square",
                              "source_id": "ITEM_LATTE"
                            }
                          }
                        ],
                        "sections": [],
                        "metadata": {}
                      }
                    ],
                    "metadata": {}
                  }
                ],
                "metadata": {
                  "integrations": {
                    "source_provider": "square"
                  }
                }
              },
              "environment": "sandbox"
            }
          }
        },
        "not_modified": {
          "request": {
            "path": "/api/v1/menus/example-cafe/drinks",
            "headers": {
              "If-None-Match": "\"26946680afbddfa9ccb81d765e6cfc7c7\""
            }
          },
          "response": {
            "status": 304,
            "headers": {
              "Access-Control-Allow-Origin": "*",
              "Access-Control-Expose-Headers": "ETag, X-Menpub-Environment",
              "Cache-Control": "public",
              "ETag": "\"26946680afbddfa9ccb81d765e6cfc7c7\"",
              "X-Menpub-Environment": "sandbox"
            },
            "body": null
          }
        }
      },
      "error_fixtures": [
        "menu_not_found",
        "api_not_connected",
        "menu_environment_changed",
        "production_menu_environment_changed",
        "menu_unavailable",
        "menu_fetch_failed_bad_gateway",
        "menu_fetch_failed_service_unavailable"
      ]
    },
    "create_checkout": {
      "method": "POST",
      "path": "/api/v1/menus/{menu_id}/checkouts",
      "fixtures": {
        "checkout_created": {
          "request": {
            "path": "/api/v1/menus/0b389055-7488-4b31-b4ed-c0376214d95a/checkouts",
            "headers": {
              "Origin": "https://cafe.example",
              "Content-Type": "application/json"
            },
            "body": {
              "pickup_name": "Alex",
              "idempotency_key": "checkout-689a4730b5434c56",
              "cart": {
                "schema_version": 1,
                "menu_id": "0b389055-7488-4b31-b4ed-c0376214d95a",
                "menu_version": "published_8f0a148946a95b8b69d20c6ce0bc805b332d1cb74278858004aed5b93de42d66",
                "location_id": "LOCATION_CAFE",
                "line_items": [
                  {
                    "uid": "item-1",
                    "item_id": "ITEM_LATTE",
                    "variation_id": "ITEM_LATTE_12OZ",
                    "quantity": 2,
                    "modifiers": [],
                    "note": ""
                  }
                ]
              }
            }
          },
          "response": {
            "status": 201,
            "headers": {
              "Access-Control-Allow-Origin": "https://cafe.example",
              "Access-Control-Expose-Headers": "X-Menpub-Environment",
              "Cache-Control": "no-store",
              "Vary": "Origin",
              "X-Menpub-Environment": "sandbox",
              "Content-Type": "application/json; charset=utf-8"
            },
            "body": {
              "id": "3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn",
              "status": "pending",
              "environment": "sandbox",
              "order_id": "ORDER_EXAMPLE",
              "total_cents": 720,
              "currency": "USD",
              "fulfillment_state": null,
              "checked_at": null,
              "checkout_url": "https://sandbox.square.link/u/example-fixture",
              "status_url": "https://menpub.example/api/v1/checkouts/3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn",
              "receipt_url": "https://cafe.example/order-confirmation?menpub_checkout=3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn"
            }
          }
        }
      },
      "error_fixtures": [
        "menu_not_found",
        "origin_not_allowed",
        "square_unavailable",
        "invalid_square_response",
        "square_request_rejected",
        "orders_api_not_connected",
        "square_source_not_connected",
        "reauthorization_required",
        "checkout_environment_changed",
        "invalid_idempotency_key",
        "pickup_name_required",
        "invalid_cart",
        "unsupported_total",
        "checkout_changed",
        "invalid_payment_link",
        "schedule_unavailable",
        "outside_hours",
        "unavailable_at_location",
        "invalid_shape",
        "unsupported_version",
        "wrong_menu",
        "menu_changed",
        "invalid_location",
        "duplicate_line",
        "invalid_id",
        "unsupported_configuration",
        "invalid_note",
        "duplicate_modifier",
        "quantity_not_allowed",
        "selection_limit",
        "price_unavailable",
        "invalid_quantity",
        "unavailable",
        "unknown_selection"
      ]
    },
    "checkout_preflight": {
      "method": "OPTIONS",
      "path": "/api/v1/menus/{menu_id}/checkouts",
      "fixtures": {
        "allowed": {
          "request": {
            "path": "/api/v1/menus/0b389055-7488-4b31-b4ed-c0376214d95a/checkouts",
            "headers": {
              "Origin": "https://cafe.example",
              "Access-Control-Request-Method": "POST",
              "Access-Control-Request-Headers": "content-type"
            }
          },
          "response": {
            "status": 204,
            "headers": {
              "Access-Control-Allow-Origin": "https://cafe.example",
              "Access-Control-Expose-Headers": "X-Menpub-Environment",
              "Cache-Control": "no-store",
              "Vary": "Origin",
              "X-Menpub-Environment": "sandbox",
              "Access-Control-Allow-Methods": "POST, OPTIONS",
              "Access-Control-Allow-Headers": "Content-Type"
            },
            "body": null
          }
        },
        "denied_origin": {
          "request": {
            "path": "/api/v1/menus/0b389055-7488-4b31-b4ed-c0376214d95a/checkouts",
            "headers": {
              "Origin": "https://other.example",
              "Access-Control-Request-Method": "POST",
              "Access-Control-Request-Headers": "content-type"
            }
          },
          "response": {
            "status": 403,
            "headers": {
              "Cache-Control": "no-store",
              "X-Menpub-Environment": "unknown",
              "Content-Type": "application/json; charset=utf-8"
            },
            "body": {
              "error": "origin_not_allowed",
              "message": "This website is not registered for checkout on this menu. Use its registered website or Menpub.",
              "environment": "unknown"
            }
          }
        },
        "unknown_menu": {
          "request": {
            "path": "/api/v1/menus/00000000-0000-4000-8000-000000000000/checkouts",
            "headers": {
              "Origin": "https://cafe.example",
              "Access-Control-Request-Method": "POST",
              "Access-Control-Request-Headers": "content-type"
            }
          },
          "response": {
            "status": 404,
            "headers": {
              "Cache-Control": "no-store",
              "X-Menpub-Environment": "unknown",
              "Content-Type": "application/json; charset=utf-8"
            },
            "body": {
              "error": "menu_not_found",
              "message": "This menu could not be found.",
              "environment": "unknown"
            }
          }
        }
      },
      "error_fixtures": [
        "origin_not_allowed",
        "menu_not_found"
      ]
    },
    "checkout_status": {
      "method": "GET",
      "path": "/api/v1/checkouts/{checkout_id}",
      "fixtures": {
        "pending": {
          "request": {
            "path": "/api/v1/checkouts/3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn"
          },
          "response": {
            "status": 200,
            "headers": {
              "Access-Control-Allow-Origin": "*",
              "Access-Control-Expose-Headers": "X-Menpub-Environment",
              "Cache-Control": "no-store",
              "X-Menpub-Environment": "sandbox",
              "Content-Type": "application/json; charset=utf-8"
            },
            "body": {
              "id": "3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn",
              "status": "pending",
              "environment": "sandbox",
              "order_id": "ORDER_EXAMPLE",
              "total_cents": 720,
              "currency": "USD",
              "fulfillment_state": "PROPOSED",
              "checked_at": "2026-11-20T20:36:00Z"
            }
          }
        },
        "paid": {
          "request": {
            "path": "/api/v1/checkouts/3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn"
          },
          "response": {
            "status": 200,
            "headers": {
              "Access-Control-Allow-Origin": "*",
              "Access-Control-Expose-Headers": "X-Menpub-Environment",
              "Cache-Control": "no-store",
              "X-Menpub-Environment": "sandbox",
              "Content-Type": "application/json; charset=utf-8"
            },
            "body": {
              "id": "3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn",
              "status": "paid",
              "environment": "sandbox",
              "order_id": "ORDER_EXAMPLE",
              "total_cents": 720,
              "currency": "USD",
              "fulfillment_state": "PROPOSED",
              "checked_at": "2026-11-20T20:36:00Z"
            }
          }
        },
        "refunded": {
          "request": {
            "path": "/api/v1/checkouts/3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn"
          },
          "response": {
            "status": 200,
            "headers": {
              "Access-Control-Allow-Origin": "*",
              "Access-Control-Expose-Headers": "X-Menpub-Environment",
              "Cache-Control": "no-store",
              "X-Menpub-Environment": "sandbox",
              "Content-Type": "application/json; charset=utf-8"
            },
            "body": {
              "id": "3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn",
              "status": "refunded",
              "environment": "sandbox",
              "order_id": "ORDER_EXAMPLE",
              "total_cents": 720,
              "currency": "USD",
              "fulfillment_state": "PROPOSED",
              "checked_at": "2026-11-20T20:36:00Z"
            }
          }
        },
        "canceled": {
          "request": {
            "path": "/api/v1/checkouts/3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn"
          },
          "response": {
            "status": 200,
            "headers": {
              "Access-Control-Allow-Origin": "*",
              "Access-Control-Expose-Headers": "X-Menpub-Environment",
              "Cache-Control": "no-store",
              "X-Menpub-Environment": "sandbox",
              "Content-Type": "application/json; charset=utf-8"
            },
            "body": {
              "id": "3iCTfAXmBPFTUTN9RyW6RaFMWuXfRHGn",
              "status": "canceled",
              "environment": "sandbox",
              "order_id": "ORDER_EXAMPLE",
              "total_cents": 720,
              "currency": "USD",
              "fulfillment_state": "CANCELED",
              "checked_at": "2026-11-20T20:36:00Z"
            }
          }
        }
      },
      "error_fixtures": [
        "checkout_not_found",
        "status_unavailable",
        "connection_changed",
        "order_mismatch",
        "payment_mismatch"
      ]
    }
  },
  "errors": {
    "menu_not_found": {
      "status": 404,
      "headers": {
        "X-Menpub-Environment": "unknown",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "menu_not_found",
        "message": "This menu could not be found.",
        "environment": "unknown"
      }
    },
    "api_not_connected": {
      "status": 403,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "api_not_connected",
        "message": "Menu API is disconnected for this menu.",
        "environment": "sandbox"
      }
    },
    "production_menu_environment_changed": {
      "status": 409,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "menu_environment_changed",
        "message": "Production menu data is unavailable while this menu uses Sandbox. Switch to Production to resume.",
        "environment": "sandbox"
      }
    },
    "menu_environment_changed": {
      "status": 409,
      "headers": {
        "X-Menpub-Environment": "production",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "menu_environment_changed",
        "message": "This menu is no longer in Sandbox mode. Switch to Sandbox to resume testing.",
        "environment": "production"
      }
    },
    "menu_unavailable": {
      "status": 503,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "menu_unavailable",
        "message": "This menu is unavailable right now. Please try again later.",
        "environment": "sandbox"
      }
    },
    "menu_fetch_failed_bad_gateway": {
      "status": 502,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "menu_fetch_failed",
        "message": "The menu could not be refreshed. Please try again later.",
        "environment": "sandbox"
      }
    },
    "menu_fetch_failed_service_unavailable": {
      "status": 503,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "menu_fetch_failed",
        "message": "The menu could not be refreshed. Please try again later.",
        "environment": "sandbox"
      }
    },
    "origin_not_allowed": {
      "status": 403,
      "headers": {
        "X-Menpub-Environment": "unknown",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "origin_not_allowed",
        "message": "This website is not registered for checkout on this menu. Use its registered website or Menpub.",
        "environment": "unknown"
      }
    },
    "square_unavailable": {
      "status": 503,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "square_unavailable",
        "message": "Checkout is temporarily unavailable. Try again with the same cart.",
        "environment": "sandbox"
      }
    },
    "invalid_square_response": {
      "status": 502,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "invalid_square_response",
        "message": "The payment provider did not return a complete checkout. Try again with the same cart.",
        "environment": "sandbox"
      }
    },
    "square_request_rejected": {
      "status": 502,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "square_request_rejected",
        "message": "Square rejected the checkout request. Contact the restaurant if the problem continues.",
        "environment": "sandbox"
      }
    },
    "checkout_not_found": {
      "status": 404,
      "headers": {
        "X-Menpub-Environment": "unknown",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "checkout_not_found",
        "message": "This checkout could not be found.",
        "environment": "unknown"
      }
    },
    "status_unavailable": {
      "status": 503,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "status_unavailable",
        "message": "Payment has not been verified. Check again shortly.",
        "environment": "sandbox"
      }
    },
    "orders_api_not_connected": {
      "status": 403,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "orders_api_not_connected",
        "message": "Orders API is disconnected for this menu.",
        "environment": "sandbox"
      }
    },
    "square_source_not_connected": {
      "status": 403,
      "headers": {
        "X-Menpub-Environment": "unknown",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "square_source_not_connected",
        "message": "The menu owner must connect Square to this menu before checkout can start.",
        "environment": "unknown"
      }
    },
    "reauthorization_required": {
      "status": 403,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "reauthorization_required",
        "message": "The menu owner must reconnect Square and authorize Orders API before checkout can start.",
        "environment": "sandbox"
      }
    },
    "checkout_environment_changed": {
      "status": 409,
      "headers": {
        "X-Menpub-Environment": "production",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "checkout_environment_changed",
        "message": "Checkout mode changed. Reload the restaurant menu and review your cart.",
        "environment": "production"
      }
    },
    "invalid_idempotency_key": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "invalid_idempotency_key",
        "message": "Supply a unique checkout key and reuse it when retrying.",
        "environment": "sandbox"
      }
    },
    "pickup_name_required": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "pickup_name_required",
        "message": "Enter a pickup name of up to 100 characters.",
        "environment": "sandbox"
      }
    },
    "invalid_cart": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "invalid_cart",
        "message": "Supply a cart object.",
        "environment": "sandbox"
      }
    },
    "unsupported_total": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "unsupported_total",
        "message": "Checkout requires a positive total in the menu currency.",
        "environment": "sandbox"
      }
    },
    "checkout_changed": {
      "status": 409,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "checkout_changed",
        "message": "This checkout key belongs to another cart or Square connection. Review the cart and start again.",
        "environment": "sandbox"
      }
    },
    "invalid_payment_link": {
      "status": 502,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "invalid_payment_link",
        "message": "The payment provider did not return a valid checkout link.",
        "environment": "sandbox"
      }
    },
    "schedule_unavailable": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "schedule_unavailable",
        "message": "The source schedule could not be verified.",
        "environment": "sandbox"
      }
    },
    "outside_hours": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "outside_hours",
        "message": "Pickup ordering is closed for this location or menu right now.",
        "environment": "sandbox"
      }
    },
    "unavailable_at_location": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "unavailable_at_location",
        "message": "A cart selection is unavailable at this pickup location. Review your cart.",
        "environment": "sandbox"
      }
    },
    "connection_changed": {
      "status": 503,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "connection_changed",
        "message": "Payment status cannot be checked until the original Square connection is available.",
        "environment": "sandbox"
      }
    },
    "order_mismatch": {
      "status": 502,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "order_mismatch",
        "message": "Square returned an unexpected order.",
        "environment": "sandbox"
      }
    },
    "payment_mismatch": {
      "status": 502,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "payment_mismatch",
        "message": "Square returned an unexpected payment.",
        "environment": "sandbox"
      }
    },
    "invalid_shape": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "invalid_shape",
        "message": "Supply between 1 and 100 cart items",
        "path": "line_items",
        "environment": "sandbox"
      }
    },
    "unsupported_version": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "unsupported_version",
        "message": "Unsupported cart format",
        "path": "schema_version",
        "environment": "sandbox"
      }
    },
    "wrong_menu": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "wrong_menu",
        "message": "This cart belongs to another menu",
        "path": "menu_id",
        "environment": "sandbox"
      }
    },
    "menu_changed": {
      "status": 409,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "menu_changed",
        "message": "The menu has changed; review your cart",
        "path": "menu_version",
        "environment": "sandbox"
      }
    },
    "invalid_location": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "invalid_location",
        "message": "Choose an active pickup location",
        "path": "location_id",
        "environment": "sandbox"
      }
    },
    "duplicate_line": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "duplicate_line",
        "message": "Cart item identifiers must be unique",
        "path": "line_items",
        "environment": "sandbox"
      }
    },
    "invalid_id": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "invalid_id",
        "message": "Supply a unique cart item identifier",
        "path": "line_items.0.uid",
        "environment": "sandbox"
      }
    },
    "unsupported_configuration": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "unsupported_configuration",
        "message": "Text-based item options are not supported yet",
        "path": "line_items.0",
        "environment": "sandbox"
      }
    },
    "invalid_note": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "invalid_note",
        "message": "Notes must be text of at most 500 characters",
        "path": "line_items.0.note",
        "environment": "sandbox"
      }
    },
    "duplicate_modifier": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "duplicate_modifier",
        "message": "Combine repeated options into one quantity",
        "path": "line_items.0.modifiers.1",
        "environment": "sandbox"
      }
    },
    "quantity_not_allowed": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "quantity_not_allowed",
        "message": "This option can only be selected once",
        "path": "line_items.0.modifiers.0.quantity",
        "environment": "sandbox"
      }
    },
    "selection_limit": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "selection_limit",
        "message": "Check selections for Milk",
        "path": "line_items.0.modifiers",
        "environment": "sandbox"
      }
    },
    "price_unavailable": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "price_unavailable",
        "message": "A current price in the menu currency is required",
        "path": "line_items.0.variation_id",
        "environment": "sandbox"
      }
    },
    "invalid_quantity": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "invalid_quantity",
        "message": "Quantity must be a whole number from 1 to 99",
        "path": "line_items.0.quantity",
        "environment": "sandbox"
      }
    },
    "unavailable": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "unavailable",
        "message": "This selection is unavailable",
        "path": "line_items.0.item_id",
        "environment": "sandbox"
      }
    },
    "unknown_selection": {
      "status": 422,
      "headers": {
        "X-Menpub-Environment": "sandbox",
        "Content-Type": "application/json; charset=utf-8"
      },
      "body": {
        "error": "unknown_selection",
        "message": "This selection is not on the current menu",
        "path": "line_items.0.item_id",
        "environment": "sandbox"
      }
    }
  }
}
