Beispiel für eine GET-Speisekartenantwort (vom Partner bereitgestellt)
Marketplace APIs are limited access
Unsere Pipeline für Marktplatz-Integration ist derzeit ausgelastet. Wir nehmen im Moment keine neuen Partner an, sind aber dabei, Self-Service-Tools für das Onboarding von Anbietern zu entwickeln. Bitte fülle das Formular für Interessenten der Marktplatz-Integration aus, um mit DoorDash in Kontakt zu treten, bevor du deine Integration erstellst.
Das folgende JSON-Objekt stellt die GET-Speisekartenantwort dar, die der Partner an DoorDash senden sollte. Diese Anfragen sollten ein Array von Speisekarten zurückgeben, auch wenn nur eine Speisekarte übergeben wird:
Im obigen Modell findest du eine Definition der Felder.
{
  "store": {
    "merchant_supplied_id": "location1",
    "provider_type": "provider_a"
  },
  "menus": [
    {
      "id": "string",
      "reference": "string",
      "open_hours": [
        {
          "day_index": "MON",
          "start_time": "00:00",
          "end_time": "23:59"
        }
      ],
      "special_hours": [
        {
          "date": "2000-01-01",
          "closed": true,
          "start_time": "00:00",
          "end_time": "23:59"
        }
      ],
      "menu": {
        "name": "string",
        "subtitle": "string",
        "merchant_supplied_id": "string",
        "active": true,
        "categories": [
          {
            "name": "string",
            "subtitle": "string",
            "merchant_supplied_id": "string",
            "active": true,
            "sort_id": 0,
            "items": [
              {
                "name": "string",
                "description": "string",
                "merchant_supplied_id": "string",
                "active": true,
                "is_alcohol": true,
                "is_bike_friendly": true,
                "sort_id": 0,
                "price": 0,
                "tax_rate": "float",
                "extras": [
                  {
                    "name": "string",
                    "description": "string",
                    "merchant_supplied_id": "string",
                    "active": true,
                    "sort_id": 0,
                    "min_num_options": 0,
                    "max_num_options": 0,
                    "num_free_options": 0,
                    "min_option_choice_quantity": 0,
                    "max_option_choice_quantity": 0,
                    "min_aggregate_options_quantity": 0,
                    "max_aggregate_options_quantity": 0,
                    "options": [
                      {
                        "name": "string",
                        "description": "string",
                        "merchant_supplied_id": "string",
                        "active": true,
                        "price": 0,
                        "default": true,
                        "sort_id": 0,
                        "tax_rate": "float",
                        "extras": []
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  ]
}