# Orderez

## Overview

OrderEZ is a centralised platform to streamline common time sinks for F\&B outlets using automation, real time data and integrations.

## \*\*API Information \*\*

The Base URL used for the OrderEZ connector depends on the sandbox environment specified during authentication. The sandbox environment and corresponding Base URLs are as follows:
\*\* - API URL - \*\*Base URL: [https://api-staging.orderez.co](https://api-staging.orderez.co/)
\*\* - Application URL - **Base URL: [https://app-staging.orderez.co](https://app-staging.orderez.co/)** \*\*

## Authentication

Within the builder, click on the OrderEZ connector to display the connector properties panel. Select the 'Auth' tab and click on the 'New authentication' button.
![order-auth](https://tray.ai/documentation/images/connectors/service/orderez/6gtT8xNVaxGLg8ZH1xhZbc_order-auth.png)
In the Tray.io authentication pop-up modal, name the authentication in a way that will quickly identify it within a potentially large list. For example, whether it is a Sandbox or Production auth, etc.
Consider who/ how many people will need access to this authentication when choosing where to create this authentication ('Personal' or 'Organisational').
The second page asks you for your 'API Key' and 'Sandbox environment'.
![OrderEZ authentication-two](https://tray.ai/documentation/images/connectors/service/orderez/3SAW9C6SQUMTrbWLCRs0am_order-auth-part-two.png)
To get these fields, more information can be found in the OrderEZ [documentation.](https://documenter.getpostman.com/view/3171682/UzXPww6n#authentication)
Once you have added these fields to your Tray.io authentication pop-up window, click the 'Create authentication' button. 
Your connector authentication setup should now be complete.

## Available Operations

The examples below show one or two of the available connector operations in use.
Please see the [Full Operations Reference](#operationsFull) at the end of this page for details on all available operations for this connector.

## Example Usage

> **Info:** **TRAY POTENTIAL:** Tray is extremely flexible. By design there is no fixed way of working with it - you can pull whatever data you need from other services and work with it using our core and helper connectors.

Below is an example of a way in which you could potentially use the OrderEZ connector, to list orders in your account, loop through orders and retrieve information regarding each order.
The overall logic of the workflow is:

1. Setup using a manual trigger and List orders
2. Add a Loop connector
3. Get order
   Your completed workflow should look similar to this:
   ![Order completed workflow](https://tray.ai/documentation/images/connectors/service/orderez/5nmd0dlfvqNqXqXShXqDGN_order-completed-wf.png)

### Step-by-step Explanation

### 1 - Manual trigger

The workflow is triggered by a Manual trigger.

### 2 - List orders

A OrderEZ connector step, using the 'List orders' operation, fetches all orders and provides you the opportunity to filter these orders by 'Outlet ID'.
![List orders ](https://tray.ai/documentation/images/connectors/service/orderez/1FP0ZZ1oHjZd75liiRPGnZ_step-2-list-orders.png)

### 3 - Loop orders

Loops through the orders received from the previous step.
![Loop orders](https://tray.ai/documentation/images/connectors/service/orderez/7ukFKnOilf3xth7SEvMzpe_step-3-loop-orders.png)

### 4 - Get order

Retrieves information on each order received through the loop.
![Get order](https://tray.ai/documentation/images/connectors/service/orderez/7JzCnDvVqktDTroKbogH1j_step-4-get-order.png)

> **Info:** \*\*BEST PRACTICES: \*\*Whenever you do decide to create your own workflow, be sure to check out some of our key articles such as:- [Using callable workflows](https://tray.ai/documentation/platform/automation-integration/building-workflows/composable-workflows/calling-other-workflows)
> - [Pagination](https://tray.ai/documentation/platform/automation-integration/advanced-use-cases/batching-queueing/pagination)
> - [Data transformation guide](https://tray.ai/documentation/platform/automation-integration/building-workflows/mapping-data/data-transformation-guide)
