🍯
Integrating with honei
  • Getting Started
  • Authorization
  • Testing
  • Reference
    • API Reference
      • 📩Notifications
      • 🍔Importing catalog to honei
      • 🪑Importing tables to honei
      • 🛒Sending orders to POS
      • ✅Close order on POS
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Sending orders to POS

By directly integrating with your POS system, you'll be able to receive all the orders made via honei.

Once an order is completed through honei, you will receive a notification with the same structure previously explained, sent to your assigned callback URL with the following body:

For table orders:

{
    "": "send_order",
    "": 200,
    "": {
        "": "rcPwMsTPwe",
        "": 11.7,
        "": 10.53,
        "": 1.17,
        "": [
            {
                "": "6728c87c-e493-4c72-80a3-428e2fab49bc",
                "
                "": 1.7,
                "": 1,
                "": "",
                "": null,
                "": [
                    {
                        "": "6728c87c-e493-4c72-80a3-428e2fab49bf",
                        "": "With ice",
                        "": 1,
                        "": 0.2
                    },
                    {
                        "id": "6728c87c-e493-4c72-80a3-428e2fab49bf",
                        "name": "With lemon",
                        "quantity": 1,
                        "price": 0
                    }
                ]
            },
            {
              id: "",
              name: "Test Combo",
              price: 10,
              quantity: 1,
              comments: "",
              : [
                {
                  id: "combo-item-1",
                  name: "Artículo 1",
                  price: 0,
                  quantity: 1,
                  comments: "",
                  modifiers: [
                  ],
                  metadata: {
                    itemKey: "itemValue",
                    comboItemKey: "comboItemValue",
                    comboCategoryId: "6720a891197fdc865490aea0",
                  },
                },
                {
                  id: "combo-item-3",
                  name: "Artículo 3",
                  price: 0,
                  quantity: 1,
                  comments: "",
                  modifiers: [
                  ],
                  metadata: {
                    itemKey: "itemValue3",
                    comboItemKey: "comboItemValue3",
                    comboCategoryId: "6720a891197fdc865490aea3",
                  },
                },
              ],
              metadata: {
                key: "value",
                familyId: "6720a891197fdc865490aeb9",
              },
            }
        ],
        "": "table_ordering",
        "": {
            "": "6728c87c-e493-4c72-80a3-428e2fab42fx",
            "": "6728c87c-e493-4c72-80a3-428e2fab32f1"
        },
        "": {
            "": "John Doe",
            "": "johndoe@mail.com",
            "": "+34 666 666 666"
        },
        "": [{
            "": "1",
            "": "Terrace supplement",
            "": 0.66,
            "": 10,
            "": "percentage"
        }],
        "": [{
            "": "1",
            "": "5TY8FQ",
            "": 0.66,
            "": 10,
            "": "percentage"
        }],
        "":[{
            "":"honei",
            "":1.7,
            "":0
        }]
    }
}

For take-away orders:

{
    "event": "send_order",
    "status": 200,
    "data": {
        "orderId": "rcPwMsTPwe",
        "total": 1.7,
        "subtotal": 1.53,
        "taxTotal": 0.17,
        "items": [
            {
                "id": "6728c87c-e493-4c72-80a3-428e2fab49bc",
                "name": "Coke",
                "price": 1.7,
                "quantity": 1,
                "comments": "",
                "metadata": null,
                "modifiers": [
                    {
                        "id": "6728c87c-e493-4c72-80a3-428e2fab49bf",
                        "name": "With ice",
                        "quantity": 1,
                        "price": 0.2
                    },
                    {
                        "id": "6728c87c-e493-4c72-80a3-428e2fab49bf",
                        "name": "With lemon",
                        "quantity": 1,
                        "price": 0
                    }
                ]
            }
        ],
        "type": "take_away",
        "": {
            "": 1692699115000,
            "": 0
        },
        "customer": {
            "name": "John Doe",
            "email": "johndoe@mail.com",
            "phone": "+34 666 666 666"
        },
        "payments":[{
            "method":"honei",
            "amount":1.7,
            "tip":0
        }],
        "discounts": []
    }
}
PreviousImporting tables to honeiNextClose order on POS

Last updated 7 months ago

🛒