E-food.gr API Integration

Hey Guys,

Is there any updates on e-food.gr Intergration on Samba.

api accepted order on efood in greece. any help.

Regards

Manos

The repo you linked seems to be for sending orders to the service, not receiving.

If they have an open API you can access to retrieve orders, everything you will need to integrate you will find in the forums.

It would be great if you could help me where to start to connect

EFood.Session class

Usage:

import * as EFood from ‘efoodgr’;

let session = new EFood.Session();

(async function main() {

await session.login('your.email@efood.gr', 'your-password-or-pat');

let addresses = await session.getUserAddresses();

await session.setAddress(addresses[0].id);

let nearbyStores = await session.getStores({
    latitude: address.latitude,
    longitude: address.longitude,
    onlyOpen: true
});

await session.setStore(nearbyStores[0].id);

let menu = await session.getStore();

let menuItem = menu[0];

// @todo Document the rest of this process...
// ... add items with session.addToCart(itemOptions)
// See how it's done in src/commands/addcart.ts

await session.validateOrder();

let orderId = await session.submitOrder();

// Do this a couple of times until it is
// accepted or rejected
await session.getOrderStatus(orderId);

})();

That API is for the customers, not the restaurant.

The first step would be to get access to the order API.

we can find something from here

As I said before, that repo does not get orders from efood, it creates an order on gfood. You need to contact efood and ask them if there is an API available for you to get orders that have been placed to be able to integrate with SambaPOS.

1 Like

Once again, that API is for the customers, not for the restaurant. You need to find the API for restaurants, not consumers.