All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| driversAddDriverNotificationToken | POST /api/v1.0/drivers/token | |
| driversDeleteDriverProfileImage | DELETE /api/v1.0/drivers/profile/image | |
| driversDriverLogin | POST /api/v1.0/drivers/login | |
| driversDriverRequestLoginCodeSms | POST /api/v1.0/drivers/pin | |
| driversGetDriverProfile | GET /api/v1.0/drivers/profile | |
| driversGetStoresForDriver | GET /api/v1.0/drivers/assignedstores | |
| driversRemoveDriverNotificationToken | DELETE /api/v1.0/drivers/token | |
| driversSetDriverPresenceForStore | POST /api/v1.0/drivers/stores/{storeId}/presence/{presence} | |
| driversSetDriverProfileImage | POST /api/v1.0/drivers/profile/image | |
| driversUpdateDeliveryTrackingStatus | POST /api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus} | |
| driversUpdateDriverProfile | POST /api/v1.0/drivers/profile |
Object driversAddDriverNotificationToken(updateDriverToken)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
let updateDriverToken = new Flipdish.UpdateDriverNotificationToken(); // UpdateDriverNotificationToken |
apiInstance.driversAddDriverNotificationToken(updateDriverToken, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| updateDriverToken | UpdateDriverNotificationToken |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
Object driversDeleteDriverProfileImage()
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
apiInstance.driversDeleteDriverProfileImage((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});This endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
Object driversDriverLogin(driverLoginModel)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
let driverLoginModel = new Flipdish.DriverLoginModel(); // DriverLoginModel |
apiInstance.driversDriverLogin(driverLoginModel, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| driverLoginModel | DriverLoginModel |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
Object driversDriverRequestLoginCodeSms(driverRequestLoginPinModel)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
let driverRequestLoginPinModel = new Flipdish.DriverRequestLoginPinModel(); // DriverRequestLoginPinModel |
apiInstance.driversDriverRequestLoginCodeSms(driverRequestLoginPinModel, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| driverRequestLoginPinModel | DriverRequestLoginPinModel |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
Object driversGetDriverProfile()
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
apiInstance.driversGetDriverProfile((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});This endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
Object driversGetStoresForDriver()
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
apiInstance.driversGetStoresForDriver((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});This endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
Object driversRemoveDriverNotificationToken(removeDriverToken)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
let removeDriverToken = new Flipdish.UpdateDriverNotificationToken(); // UpdateDriverNotificationToken |
apiInstance.driversRemoveDriverNotificationToken(removeDriverToken, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| removeDriverToken | UpdateDriverNotificationToken |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
Object driversSetDriverPresenceForStore(storeId, presence)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
let storeId = 56; // Number |
let presence = "presence_example"; // String |
apiInstance.driversSetDriverPresenceForStore(storeId, presence, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Number | ||
| presence | String |
Object
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
Object driversSetDriverProfileImage()
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
apiInstance.driversSetDriverProfileImage((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});This endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
Object driversUpdateDeliveryTrackingStatus(orderId, deliveryTrackingStatus)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
let orderId = 56; // Number |
let deliveryTrackingStatus = "deliveryTrackingStatus_example"; // String |
apiInstance.driversUpdateDeliveryTrackingStatus(orderId, deliveryTrackingStatus, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| orderId | Number | ||
| deliveryTrackingStatus | String |
Object
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
Object driversUpdateDriverProfile(updateDriverProfile)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.DriversApi();
let updateDriverProfile = new Flipdish.UpdateDriverProfileModel(); // UpdateDriverProfileModel |
apiInstance.driversUpdateDriverProfile(updateDriverProfile, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| updateDriverProfile | UpdateDriverProfileModel |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml