v1

latestOpenAPI 3.0.32026-08-06150495.9 KB
Restaurant Details API

Get All Restaurant Details

Overview

This endpoint retrieves detailed information about all restaurants associated with a partner. It provides a comprehensive list of restaurant details, including their active delivery services and listing information.

HTTP Method

GET

URL

{{base-url}}/v1/partnerApi/restaurantDetails/getAllDetails

Request Parameters

This endpoint does not require any request body parameters.

Response

Summary

The response returns a JSON object containing the status of the request, a message, and the result which includes an array of restaurant details. Each restaurant detail includes information about the restaurant's name, brand, listing ID, and active delivery services.

Response Fields

FieldTypeDescription
statusbooleanIndicates if the request was successful.
statusCodeintegerCode representing the status of the response.
messagestringAdditional information about the request (if any).
resultobjectContains the details of the restaurants.
errorobjectContains error information if the request failed.

Detailed Breakdown of Result Field

Result Object

The result object may contain the following keys:

FieldTypeDescription
restaurantDetailsarrayAn array of objects containing details for each restaurant.

Restaurant Details Array

The restaurantDetails object may contain the following keys:

FieldTypeDescription
clientNamestringThe name of the client associated with the restaurant.
clientIdstringUnique identifier for the client.
listingDetailsarrayAn array of objects containing listing information for the restaurant.
Listing Details Array

The listingDetails object may contain the following keys:

FieldTypeDescription
restaurantNamestringThe name of the restaurant.
brandNamestringThe brand associated with the restaurant.
listingIdstringUnique identifier for the restaurant listing.
isDoordashActivebooleanIndicates if the restaurant is active on DoorDash.
isGrubhubActivebooleanIndicates if the restaurant is active on Grubhub.
isUbereatsActivebooleanIndicates if the restaurant is active on UberEats.
doordashStoreNamestringThe store name used on DoorDash.
ubereatsStoreNamestringThe store name used on UberEats.
grubhubStoreNamestringThe store name used on Grubhub.

Example Response

{
    "status": true,
    "statusCode": 200,
    "message": "All Restaurant details fetched successfully",
    "result": {
        "restaurantDetails": [
            {
                "clientName": "Chatmeter",
                "clientId": "CH4798",
                "listingDetails": [
                    {
                        "restaurantName": "Taco Bell - 35144",
                        "brandName": "Taco Bell",
                        "listingId": "P411",
                        "isDoordashActive": false,
                        "isGrubhubActive": false,
                        "isUbereatsActive": true,
                        "doordashStoreName": "",
                        "ubereatsStoreName": "Taco Bell (1209 N. Missouri St.)",
                        "grubhubStoreName": ""
                    },
                    {
                        "restaurantName": "Taco Bell - 039153",
                        "brandName": "Taco Bell",
                        "listingId": "P421",
                        "isDoordashActive": false,
                        "isGrubhubActive": true,
                        "isUbereatsActive": false,
                        "doordashStoreName": "",
                        "ubereatsStoreName": "",
                        "grubhubStoreName": "Taco Bell  - 039153"}
                ]
            }
        ]
    },
    "error": null
}

This structured documentation provides a clear understanding of the endpoint's purpose, request structure, and response format, enabling users to effectively integrate and utilize the API.

get/v1/partnerApi/restaurantDetails/getAllDetails

Headers

tokenstring
Example:{{access-token}}

Response

200

{"stackTrail":"paths:/v1/partnerApi/restaurantDetails/getAllDetails:get:responses:200:content:application/json:schema:properties:error","oasType":"schema","type":"unknown","example":null,"nullable":true}
messagestring
statusboolean
statusCodenumber

Example response

{
  "message": "All Restaurant details fetched successfully",
  "result": {
    "restaurantDetails": [
      {
        "clientId": "CH4798",
        "clientName": "Chatmeter",
        "listingDetails": [
          {
            "brandName": "Taco Bell",
            "doordashStoreName": "",
            "grubhubStoreName": "",
            "isDoordashActive": false,
            "isGrubhubActive": false,
            "isUbereatsActive": true,
            "listingId": "P411",
            "restaurantName": "Taco Bell - 35144",
            "ubereatsStoreName": "Taco Bell (1209 N. Missouri St.)"
          },
          {
            "brandName": "Taco Bell",
            "doordashStoreName": "",
            "grubhubStoreName": "Taco Bell  - 039153",
            "isDoordashActive": false,
            "isGrubhubActive": true,
            "isUbereatsActive": false,
            "listingId": "P421",
            "restaurantName": "Taco Bell - 039153",
            "ubereatsStoreName": ""
          }
        ]
      }
    ]
  },
  "status": true,
  "statusCode": 200
}