Servd Agentic Ordering

Discover Servd venues, browse menus, validate carts, place confirmed orders, and track status.

Sollte ich dies verwenden

Qualität und Sicherheit

A
Qualität der Beschreibung
97%
Vollständigkeit des Schemas
91%
Qualität der Benennung
97%
Risiko der Vergiftung
100%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~9,357Tokens (Tool-Definitionen)
~15.5 KBTypische Antwortgröße
Erhebliche Auswirkung auf die Aufmerksamkeit (7.31% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

{
  "mcpServers": {
    "servd-agent-ordering": {
      "url": "https://app.getservd.me/api/v1/agent/mcp"
    }
  }
}

Remote-Endpunkte

https://app.getservd.me/api/v1/agent/mcpstreamable-http

Was es kann

Tool-Inventar

Tools (6)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢find_venues(query, limit)

Find restaurants on Servd. Returns each venue’s slug, name and city — the slug is what every other tool needs. Pass `query` to filter by name or city.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Optional name or city filter, case-insensitive."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 25
    }
  },
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "venues": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slug",
          "name",
          "city",
          "country"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  },
  "required": [
    "count",
    "venues"
  ],
  "additionalProperties": false
}
🟢get_venue(slug)

Get one venue’s opening hours, current open state, pickup and delivery availability, published policies, and available agent-order payment mode.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "The venue slug."
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code."
    },
    "phone": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "address": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "line1",
        "city",
        "country",
        "latitude",
        "longitude"
      ],
      "properties": {
        "line1": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "timezone": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "orderUrl": {
      "type": "string",
      "format": "uri"
    },
    "logoUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "coverUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "rating": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "value",
            "count"
          ],
          "properties": {
            "value": {
              "type": "number"
            },
            "count": {
              "type": "integer",
              "minimum": 0
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "openNow": {
      "type": "boolean"
    },
    "hours": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "day",
          "opens",
          "closes",
          "closed",
          "is24h"
        ],
        "properties": {
          "day": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "opens": {
            "type": [
              "string",
              "null"
            ]
          },
          "closes": {
            "type": [
              "string",
              "null"
            ]
          },
          "closed": {
            "type": "boolean"
          },
          "is24h": {
            "type": "boolean"
          }
        }
      }
    },
    "serviceModes": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "dineIn",
        "pickup",
        "delivery"
      ],
      "properties": {
        "dineIn": {
          "type": "boolean"
        },
        "pickup": {
          "type": "boolean"
        },
        "delivery": {
          "type": "boolean"
        }
      }
    },
    "acceptsReservations": {
      "type": "boolean"
    },
    "agentOrdering": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "enabled",
        "paymentMode",
        "sandbox"
      ],
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "paymentMode": {
          "type": "string",
          "enum": [
            "instant",
            "link",
            "none"
          ]
        },
        "sandbox": {
          "type": "boolean",
          "description": "True only for an explicit reviewer tenant. Confirmed creates are simulated and never reach payment or a kitchen."
        }
      }
    },
    "policies": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "url"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  },
  "required": [
    "id",
    "slug",
    "name",
    "currency",
    "phone",
    "email",
    "address",
    "timezone",
    "url",
    "orderUrl",
    "logoUrl",
    "coverUrl",
    "rating",
    "openNow",
    "hours",
    "serviceModes",
    "acceptsReservations",
    "agentOrdering",
    "policies"
  ],
  "additionalProperties": false
}
🟢get_menu(slug, branch_id, fulfillment)

Get a venue’s full live menu. Use item ids in validate_cart and place_order. Prices are major-unit decimal strings in the menu currency; required modifier groups declare min and max selections. promotions includes fixed-price combos, item alternatives, required and included modifier rules, and eligible offers. Use combo ids and component_modifiers in cart tools; amounts inside promotion rules are MINOR units. Keep branch_id and fulfillment consistent through menu, quote, and order.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "The venue slug."
    },
    "branch_id": {
      "type": "string",
      "format": "uuid"
    },
    "fulfillment": {
      "type": "string",
      "enum": [
        "pickup",
        "delivery"
      ]
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "venue": {
      "type": "string",
      "description": "Venue slug."
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code."
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "nameAr",
          "descriptionAr",
          "sortOrder",
          "imageUrl",
          "items"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nameAr": {
            "type": [
              "string",
              "null"
            ]
          },
          "descriptionAr": {
            "type": [
              "string",
              "null"
            ]
          },
          "sortOrder": {
            "type": "integer"
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "name",
                "nameAr",
                "description",
                "descriptionAr",
                "price",
                "salePrice",
                "currency",
                "available",
                "imageUrl",
                "tags",
                "modifierGroups",
                "quantity"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "nameAr": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": "string"
                },
                "descriptionAr": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "price": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]{2}$"
                },
                "salePrice": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "pattern": "^[0-9]+\\.[0-9]{2}$"
                },
                "currency": {
                  "type": "string"
                },
                "available": {
                  "type": "boolean"
                },
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "modifierGroups": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "name",
                      "nameAr",
                      "required",
                      "min",
                      "max",
                      "options"
                    ],
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "nameAr": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "required": {
                        "type": "boolean"
                      },
                      "min": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "max": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "options": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "name",
                            "nameAr",
                            "priceAdjustment"
                          ],
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "nameAr": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "priceAdjustment": {
                              "type": "string",
                              "pattern": "^-?[0-9]+\\.[0-9]{2}$"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "quantity": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "min",
                    "max",
                    "step"
                  ],
                  "properties": {
                    "min": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "max": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "step": {
                      "type": "integer",
                      "minimum": 1
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "promotions": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "discounts",
        "combos",
        "offers"
      ],
      "properties": {
        "discounts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "name_ar": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "active_from": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "active_until": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_active": {
                "type": "boolean"
              },
              "conditions": {
                "type": "object",
                "properties": {
                  "branch_ids": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "channels": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "qr_dine_in",
                        "pos_dine_in",
                        "web_pickup",
                        "whatsapp",
                        "delivery",
                        "pos"
                      ]
                    }
                  },
                  "order_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "dine_in",
                        "pickup",
                        "delivery",
                        "reservation"
                      ]
                    }
                  },
                  "days": {
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                  },
                  "timezone": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "scope": {
                "type": "string",
                "enum": [
                  "item",
                  "category"
                ]
              },
              "target_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "value_type": {
                "type": "string",
                "enum": [
                  "percent",
                  "fixed"
                ]
              },
              "value": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              "id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "required": [
              "name",
              "scope",
              "target_id",
              "value_type",
              "value",
              "id"
            ],
            "additionalProperties": true
          }
        },
        "combos": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "name_ar": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "active_from": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "active_until": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_active": {
                "type": "boolean"
              },
              "conditions": {
                "type": "object",
                "properties": {
                  "branch_ids": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "channels": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "qr_dine_in",
                        "pos_dine_in",
                        "web_pickup",
                        "whatsapp",
                        "delivery",
                        "pos"
                      ]
                    }
                  },
                  "order_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "dine_in",
                        "pickup",
                        "delivery",
                        "reservation"
                      ]
                    }
                  },
                  "days": {
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                  },
                  "timezone": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "description_ar": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "image_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "combo_price": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              "sort_order": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "max_per_order": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 99
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "items": {
                "minItems": 1,
                "maxItems": 50,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "menu_item_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "quantity": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 99
                    },
                    "sort_order": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "alternatives": {
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "required_modifiers": {
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "group": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          }
                        },
                        "required": [
                          "group",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "included_modifiers": {
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "group": {
                            "type": "string",
                            "minLength": 1
                          },
                          "names": {
                            "maxItems": 100,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "quantity": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 99
                          }
                        },
                        "required": [
                          "group",
                          "quantity"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "menu_item_id",
                    "quantity"
                  ],
                  "additionalProperties": false
                }
              },
              "id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "required": [
              "name",
              "combo_price",
              "items",
              "id"
            ],
            "additionalProperties": true
          }
        },
        "offers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "name_ar": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "active_from": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "active_until": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_active": {
                "type": "boolean"
              },
              "conditions": {
                "type": "object",
                "properties": {
                  "branch_ids": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "channels": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "qr_dine_in",
                        "pos_dine_in",
                        "web_pickup",
                        "whatsapp",
                        "delivery",
                        "pos"
                      ]
                    }
                  },
                  "order_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "dine_in",
                        "pickup",
                        "delivery",
                        "reservation"
                      ]
                    }
                  },
                  "days": {
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                  },
                  "timezone": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "kind": {
                "type": "string",
                "enum": [
                  "bogo",
                  "spend_save"
                ]
              },
              "image_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rule": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "buy_item_id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "buy_qty": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 99
                      },
                      "get_item_id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "get_qty": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 99
                      },
                      "get_discount_pct": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "buy_modifier": {
                        "type": "object",
                        "properties": {
                          "group": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          }
                        },
                        "required": [
                          "group",
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "get_modifier": {
                        "type": "object",
                        "properties": {
                          "group": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          }
                        },
                        "required": [
                          "group",
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "buy_item_ids": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      },
                      "get_item_ids": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      },
                      "max_applications": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 99
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "buy_item_id",
                      "buy_qty",
                      "get_item_id",
                      "get_qty",
                      "get_discount_pct"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "min_subtotal": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "value_type": {
                        "type": "string",
                        "enum": [
                          "percent",
                          "fixed"
                        ]
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "target": {
                        "type": "object",
                        "properties": {
                          "menu_item_id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "modifier": {
                            "type": "object",
                            "properties": {
                              "group": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200
                              }
                            },
                            "required": [
                              "group",
                              "name"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "menu_item_id"
                        ],
                        "additionalProperties": false
                      },
                      "quantity": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 99
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "max_discount": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1000000000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "min_subtotal",
                      "value_type",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "registered_only": {
                "type": "boolean"
              },
              "total_use_limit": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "per_customer_limit": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "priority": {
                "type": "integer",
                "minimum": 0,
                "maximum": 99
              },
              "stack_with_discounts": {
                "type": "boolean"
              },
              "id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "required": [
              "name",
              "kind",
              "rule",
              "id"
            ],
            "additionalProperties": true
          }
        }
      }
    }
  },
  "required": [
    "venue",
    "currency",
    "categories"
  ],
  "additionalProperties": false
}
🟢validate_cart(branch_id, slug, fulfillment, items, combos, ...)

Validate a proposed cart and calculate authoritative lines, discounts, fees, tax and total without creating an order. Call this immediately before asking the diner to confirm. Send only the minimum diner contact and fulfillment data required for this order.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "branch_id": {
      "type": "string",
      "format": "uuid",
      "description": "Branch used for menu discovery and quote; retain it through confirmation and order placement."
    },
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "description": "The venue slug returned by find_venues."
    },
    "fulfillment": {
      "type": "string",
      "enum": [
        "pickup",
        "delivery"
      ]
    },
    "items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "menu_item_id",
          "quantity"
        ],
        "properties": {
          "menu_item_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "The item id returned by get_menu."
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99
          },
          "selected_modifiers": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "group",
                "name"
              ],
              "properties": {
                "group": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "price_adj": {
                  "type": "number",
                  "description": "Informational major-unit amount from get_menu; the server recalculates it."
                }
              }
            }
          },
          "special_instructions": {
            "type": "string",
            "maxLength": 1000
          }
        }
      }
    },
    "combos": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "combo_id",
          "quantity"
        ],
        "properties": {
          "combo_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99
          },
          "component_modifiers": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "menu_item_id",
                "selected_modifiers"
              ],
              "properties": {
                "slot_index": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 49,
                  "description": "Zero-based combo item slot; required when an item occurs in multiple slots"
                },
                "menu_item_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "selected_modifiers": {
                  "type": "array",
                  "maxItems": 50,
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "group",
                      "name"
                    ],
                    "properties": {
                      "group": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "price_adj": {
                        "type": "number",
                        "description": "Informational major-unit amount from get_menu; the server recalculates it."
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "customer": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 200
        },
        "phone": {
          "type": "string",
          "maxLength": 64
        },
        "email": {
          "type": "string",
          "format": "email",
          "maxLength": 320
        }
      }
    },
    "delivery": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "street": {
          "type": "string",
          "maxLength": 500
        },
        "city": {
          "type": "string",
          "maxLength": 200
        },
        "building": {
          "type": "string",
          "maxLength": 200
        },
        "floor": {
          "type": "string",
          "maxLength": 200
        },
        "apartment": {
          "type": "string",
          "maxLength": 200
        },
        "latitude": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "longitude": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      }
    },
    "payment_method": {
      "type": "string",
      "enum": [
        "cash",
        "online"
      ],
      "default": "online"
    },
    "tip_amount": {
      "type": "number",
      "minimum": 0,
      "description": "Major currency units."
    }
  },
  "required": [
    "slug",
    "fulfillment"
  ],
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "items"
      ]
    },
    {
      "required": [
        "combos"
      ]
    }
  ]
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean",
      "const": true
    },
    "createsOrder": {
      "type": "boolean",
      "const": false
    },
    "venue": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "slug",
        "name",
        "currency",
        "sandbox"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "sandbox": {
          "type": "boolean"
        }
      }
    },
    "fulfillment": {
      "type": "string",
      "enum": [
        "pickup",
        "delivery"
      ]
    },
    "paymentMethod": {
      "type": "string",
      "enum": [
        "cash",
        "online"
      ]
    },
    "paymentMode": {
      "type": "string",
      "enum": [
        "instant",
        "link",
        "none"
      ]
    },
    "lines": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "menu_item_id",
          "item_name",
          "unit_price",
          "quantity",
          "line_total",
          "discount_amount",
          "combo_id",
          "selected_modifiers"
        ],
        "properties": {
          "menu_item_id": {
            "type": "string"
          },
          "item_name": {
            "type": "string"
          },
          "unit_price": {
            "type": "integer",
            "description": "Authoritative minor-unit price."
          },
          "quantity": {
            "type": "integer",
            "minimum": 1
          },
          "line_total": {
            "type": "integer",
            "description": "Authoritative minor-unit line total."
          },
          "discount_amount": {
            "type": "integer",
            "minimum": 0
          },
          "combo_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "selected_modifiers": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "group",
                "name",
                "price_adj"
              ],
              "properties": {
                "group": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "price_adj": {
                  "type": "integer",
                  "description": "Authoritative minor-unit adjustment."
                }
              }
            }
          }
        }
      }
    },
    "totals": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "currency",
        "subtotal",
        "discount",
        "tax",
        "serviceCharge",
        "deliveryFee",
        "tip",
        "total"
      ],
      "properties": {
        "currency": {
          "type": "string"
        },
        "subtotal": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "minor",
            "decimal"
          ],
          "properties": {
            "minor": {
              "type": "integer",
              "description": "Amount in the currency minor unit."
            },
            "decimal": {
              "type": "string",
              "pattern": "^-?[0-9]+\\.[0-9]{2}$"
            }
          }
        },
        "discount": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "minor",
            "decimal"
          ],
          "properties": {
            "minor": {
              "type": "integer",
              "description": "Amount in the currency minor unit."
            },
            "decimal": {
              "type": "string",
              "pattern": "^-?[0-9]+\\.[0-9]{2}$"
            }
          }
        },
        "tax": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "minor",
            "decimal"
          ],
          "properties": {
            "minor": {
              "type": "integer",
              "description": "Amount in the currency minor unit."
            },
            "decimal": {
              "type": "string",
              "pattern": "^-?[0-9]+\\.[0-9]{2}$"
            }
          }
        },
        "serviceCharge": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "minor",
            "decimal"
          ],
          "properties": {
            "minor": {
              "type": "integer",
              "description": "Amount in the currency minor unit."
            },
            "decimal": {
              "type": "string",
              "pattern": "^-?[0-9]+\\.[0-9]{2}$"
            }
          }
        },
        "deliveryFee": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "minor",
            "decimal"
          ],
          "properties": {
            "minor": {
              "type": "integer",
              "description": "Amount in the currency minor unit."
            },
            "decimal": {
              "type": "string",
              "pattern": "^-?[0-9]+\\.[0-9]{2}$"
            }
          }
        },
        "tip": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "minor",
            "decimal"
          ],
          "properties": {
            "minor": {
              "type": "integer",
              "description": "Amount in the currency minor unit."
            },
            "decimal": {
              "type": "string",
              "pattern": "^-?[0-9]+\\.[0-9]{2}$"
            }
          }
        },
        "total": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "minor",
            "decimal"
          ],
          "properties": {
            "minor": {
              "type": "integer",
              "description": "Amount in the currency minor unit."
            },
            "decimal": {
              "type": "string",
              "pattern": "^-?[0-9]+\\.[0-9]{2}$"
            }
          }
        }
      }
    },
    "confirmation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "token",
        "expiresAt",
        "idempotencyKey",
        "boundToLatestQuote"
      ],
      "properties": {
        "token": {
          "type": [
            "string",
            "null"
          ],
          "description": "Short-lived signed receipt for this exact cart and quote. Null until all required customer and fulfillment fields are present."
        },
        "expiresAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "idempotencyKey": {
          "type": [
            "string",
            "null"
          ],
          "description": "Use this exact value as place_order.idempotency_key. Null until the request is complete."
        },
        "boundToLatestQuote": {
          "type": "boolean",
          "const": true
        }
      }
    },
    "requirements": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "missing",
        "explicitConfirmationRequired",
        "createRequestMustSet",
        "confirmationTokenRequired",
        "idempotencyKeyRequired"
      ],
      "properties": {
        "missing": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "explicitConfirmationRequired": {
          "type": "boolean",
          "const": true
        },
        "createRequestMustSet": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "confirmed"
          ],
          "properties": {
            "confirmed": {
              "type": "boolean",
              "const": true
            }
          }
        },
        "confirmationTokenRequired": {
          "type": "boolean",
          "const": true
        },
        "idempotencyKeyRequired": {
          "type": "boolean",
          "const": true
        }
      }
    }
  },
  "required": [
    "valid",
    "createsOrder",
    "venue",
    "fulfillment",
    "paymentMethod",
    "paymentMode",
    "lines",
    "totals",
    "confirmation",
    "requirements"
  ],
  "additionalProperties": false
}
🔴place_order(branch_id, slug, fulfillment, items, combos, ...)

Create a REAL restaurant order only after showing the latest validate_cart result and receiving explicit diner confirmation. A venue explicitly marked agentOrdering.sandbox instead returns a no-charge, no-kitchen simulation with sandbox=true and createsProductionOrder=false. Pass that result’s confirmation.token so the server can prove the cart and live quote did not change. The server recalculates all prices. Use a unique idempotency key, show orderNumber and the labeled customerLinks, and poll check_order for payment and fulfillment status. Unpaid online orders expire after 30 minutes.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "branch_id": {
      "type": "string",
      "format": "uuid",
      "description": "Branch used for menu discovery and quote; retain it through confirmation and order placement."
    },
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "description": "The venue slug returned by find_venues."
    },
    "fulfillment": {
      "type": "string",
      "enum": [
        "pickup",
        "delivery"
      ]
    },
    "items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "menu_item_id",
          "quantity"
        ],
        "properties": {
          "menu_item_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "The item id returned by get_menu."
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99
          },
          "selected_modifiers": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "group",
                "name"
              ],
              "properties": {
                "group": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "price_adj": {
                  "type": "number",
                  "description": "Informational major-unit amount from get_menu; the server recalculates it."
                }
              }
            }
          },
          "special_instructions": {
            "type": "string",
            "maxLength": 1000
          }
        }
      }
    },
    "combos": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "combo_id",
          "quantity"
        ],
        "properties": {
          "combo_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99
          },
          "component_modifiers": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "menu_item_id",
                "selected_modifiers"
              ],
              "properties": {
                "slot_index": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 49,
                  "description": "Zero-based combo item slot; required when an item occurs in multiple slots"
                },
                "menu_item_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "selected_modifiers": {
                  "type": "array",
                  "maxItems": 50,
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "group",
                      "name"
                    ],
                    "properties": {
                      "group": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "price_adj": {
                        "type": "number",
                        "description": "Informational major-unit amount from get_menu; the server recalculates it."
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "customer": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 200
        },
        "phone": {
          "type": "string",
          "maxLength": 64
        },
        "email": {
          "type": "string",
          "format": "email",
          "maxLength": 320
        }
      },
      "required": [
        "name",
        "phone"
      ],
      "description": "The diner’s minimum contact details required by the venue."
    },
    "delivery": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "street": {
          "type": "string",
          "maxLength": 500
        },
        "city": {
          "type": "string",
          "maxLength": 200
        },
        "building": {
          "type": "string",
          "maxLength": 200
        },
        "floor": {
          "type": "string",
          "maxLength": 200
        },
        "apartment": {
          "type": "string",
          "maxLength": 200
        },
        "latitude": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "longitude": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      },
      "description": "For delivery, street is required and coordinates may be needed for fees/radius."
    },
    "payment_method": {
      "type": "string",
      "enum": [
        "cash",
        "online"
      ],
      "default": "online"
    },
    "tip_amount": {
      "type": "number",
      "minimum": 0,
      "description": "Major currency units."
    },
    "confirmed": {
      "type": "boolean",
      "const": true,
      "description": "Set true only after the diner explicitly confirms the latest validate_cart result."
    },
    "confirmation_token": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "The short-lived confirmation.token from the exact validate_cart result shown to the diner."
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Use validate_cart.confirmation.idempotencyKey exactly; reuse it for retries of this confirmed order."
    }
  },
  "required": [
    "slug",
    "fulfillment",
    "customer",
    "confirmed",
    "confirmation_token",
    "idempotency_key"
  ],
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "items"
      ]
    },
    {
      "required": [
        "combos"
      ]
    }
  ]
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "sandbox": {
      "type": "boolean"
    },
    "createsProductionOrder": {
      "type": "boolean",
      "description": "False for reviewer sandbox receipts. True only when a production order was created."
    },
    "orderId": {
      "type": "string",
      "description": "Machine-facing private id for check_order."
    },
    "orderNumber": {
      "type": "string",
      "description": "Customer-facing order number."
    },
    "friendlyId": {
      "type": "string"
    },
    "paymentRequired": {
      "type": "boolean"
    },
    "paymentMode": {
      "type": "string",
      "enum": [
        "instant",
        "link",
        "none"
      ]
    },
    "paymentProvider": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "trackingUrl": {
      "type": "string",
      "format": "uri"
    },
    "customerLinks": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "payment",
        "tracking"
      ],
      "properties": {
        "payment": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "label",
                "url"
              ],
              "properties": {
                "label": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "tracking": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "label",
            "url"
          ],
          "properties": {
            "label": {
              "type": "string"
            },
            "url": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      }
    },
    "checkoutUrl": {
      "type": "string",
      "format": "uri"
    },
    "trackUrl": {
      "type": "string",
      "format": "uri"
    },
    "statusUrl": {
      "type": "string",
      "format": "uri"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "paymentError": {
      "type": [
        "string",
        "null"
      ]
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "sandbox",
    "createsProductionOrder",
    "orderId",
    "orderNumber",
    "friendlyId",
    "paymentRequired",
    "paymentMode",
    "paymentProvider",
    "paymentUrl",
    "trackingUrl",
    "customerLinks",
    "checkoutUrl",
    "trackUrl",
    "statusUrl",
    "expiresAt",
    "paymentError",
    "message"
  ],
  "additionalProperties": false
}
🟢check_order(order_id)

Check payment and fulfillment state for an order created by place_order, or verify a signed sandbox simulation. The result intentionally omits diner contact, address, notes, and line items. Poll while state is awaiting_payment; stop when it becomes paid, preparing, ready, out_for_delivery, completed, cancelled, or expired.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "order_id": {
      "type": "string",
      "description": "The machine-facing orderId from place_order."
    }
  },
  "required": [
    "order_id"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "sandbox": {
      "type": "boolean"
    },
    "createsProductionOrder": {
      "type": "boolean"
    },
    "orderId": {
      "type": "string"
    },
    "orderNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "awaiting_payment",
        "expired",
        "paid",
        "preparing",
        "ready",
        "out_for_delivery",
        "completed",
        "cancelled"
      ]
    },
    "status": {
      "type": "string"
    },
    "paymentStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentMethod": {
      "type": [
        "string",
        "null"
      ]
    },
    "paid": {
      "type": "boolean"
    },
    "total": {
      "type": "integer",
      "description": "Total in minor currency units."
    },
    "currency": {
      "type": "string"
    },
    "venue": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "slug",
            "name"
          ],
          "properties": {
            "slug": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "placedAt": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "estimatedReadyMinutes": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "friendlyId": {
      "type": [
        "string",
        "null"
      ]
    },
    "trackingUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "trackUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "sandbox",
    "createsProductionOrder",
    "orderId",
    "orderNumber",
    "state",
    "status",
    "paymentStatus",
    "paymentMethod",
    "paid",
    "total",
    "currency",
    "venue",
    "placedAt",
    "expiresAt",
    "estimatedReadyMinutes",
    "friendlyId",
    "trackingUrl",
    "trackUrl",
    "message"
  ],
  "additionalProperties": false
}

Community

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet6 Tools
verifiziertVersion nicht aufgezeichnet6 Tools
verifiziertVersion nicht aufgezeichnet6 Tools
verifiziertVersion nicht aufgezeichnet6 Tools
verifiziertVersion nicht aufgezeichnet6 Tools
verifiziertVersion nicht aufgezeichnet6 Tools
verifiziertVersion nicht aufgezeichnet6 Tools