All URIs are relative to https://partner-api.stg-myteksi.com/grabfood-sandbox
Method | HTTP request | Description |
---|---|---|
traceMenuSync | GET /partner/v1/merchant/menu/trace | Trace menu sync |
MenuSyncResponse traceMenuSync(authorization, merchantID)
Trace menu sync
// Import classes:
import com.grab.grabfood.client.ApiClient;
import com.grab.grabfood.client.ApiException;
import com.grab.grabfood.client.Configuration;
import com.grab.grabfood.client.models.*;
import com.grab.grabfood.client.api.TraceMenuSyncApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://partner-api.stg-myteksi.com/grabfood-sandbox");
TraceMenuSyncApi apiInstance = new TraceMenuSyncApi(defaultClient);
String authorization = "Bearer <ACCESS_TOKEN_HERE>"; // String | Specify the generated authorization token of the bearer type.
String merchantID = "1-CYNGRUNGSBCCC"; // String | The merchant's ID that is in GrabFood's database.
try {
MenuSyncResponse result = apiInstance.traceMenuSync(authorization, merchantID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TraceMenuSyncApi#traceMenuSync");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Specify the generated authorization token of the bearer type. | |
merchantID | String | The merchant's ID that is in GrabFood's database. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Sync success or fail | - |
4xx | Common error | - |