# Ecommerce API

Unlock the full potential of your e-commerce platform with Flexito's OmniAI API. Effortlessly manage orders, products, and store details without writing a single line of code. Our intuitive interface simplifies complex tasks, making it easy for anyone to enhance their online store's functionality.

## Effortless Access to E-commerce API

For many users, accessing e-commerce data or utilising the Flexito OmniAI API through coding can be challenging. However, our straightforward approach allows you to use API endpoints without any coding skills.

### How to Access API Endpoints

Go to the Flow Builder, select an action block, and choose "Ecommerce." Here, you can explore the "E-commerce API" options.

### Actions You Can Perform

- Orders: Search Orders, Get Order, Delete Order
- Products: List Products, Get Product
- Product Tags: List Product Tags, Get Product Tag, Create Product Tag, Update Product Tag, Delete Product Tag
- Product Types: List Product Types, Get Product Type, Create Product Type, Update Product Type, Delete Product Type
- Product Vendors: List Product Vendors, Get Product Vendor, Create Product Vendor, Update Product Vendor, Delete Product Vendor
- Discount Codes: List Discount Codes, Get Discount Code, Get Discount Code By Id, Delete Discount Code, Delete Discount Code By Id
- Store Locations: List Store Locations, Find Nearby Store Locations, Get Store Location Details

- Orders (#EcommerceAPI-Orders)
- Products (#EcommerceAPI-Products)
- Product Tags (#EcommerceAPI-ProductTags)
- Product Types (#EcommerceAPI-ProductTypes)
- Product Vendors (#EcommerceAPI-ProductVendors)
- Discount Codes (#EcommerceAPI-DiscountCodes)
- Store Locations (#EcommerceAPI-StoreLocations)

## In-Depth Action Descriptions

### Managing Orders

| **Action** | **Function** | **Note** |
| --- | --- | --- |
| Search Orders | Search for orders using user\_ns for testing purposes or a specific order | When the order ID value is empty, it shows all orders; when it has a value, it shows a specific one |
| Get Order | Retrieve order details | Provide the order ID to retrieve the order details |
| Delete Order | Delete a specific order | Provide the order ID to delete the order |

### Handling Products

| **Action** | **Function** | **Note** |
| --- | --- | --- |
| List Products | Get the list of products | Search by Name, Product Id, Product Type Id, or Product Vendor Id |
| Get Product | Retrieve product details | Provide the Product ID to get product details |

### Working with Product Tags

| **Action** | **Function** | **Note** |
| --- | --- | --- |
| List Product Tags | Get all product tags | Search by name |
| Get Product Tag | Retrieve the name of a product tag | Provide the tag ID |
| Create Product Tag | Create a new product tag | Provide the Name of the tag to create it and get the tag ID |
| Update Product Tag | Update an existing product tag | Provide the ID and Name of the tag to update it |
| Delete Product Tag | Delete a specific product tag | Provide the tag Id to delete it |

### Managing Product Types

| **Action** | **Function** | **Note** |
| --- | --- | --- |
| List Product Types | Get a list of all product types | Search by name |
| Get Product Type | Retrieve the name of a product type | Provide the Type ID |
| Create Product Type | Create a new product type | Provide the Name of the type to create it and get the type ID |
| Update Product Type | Update an existing product type | Provide the ID and Name of the type to update it |
| Delete Product Type | Delete a specific product type | Provide the type ID to delete it |

### Handling Product Vendors

| **Action** | **Function** | **Note** |
| --- | --- | --- |
| List Product Vendors | Get a list of all product Vendor | Search by name |
| Get Product Vendor | Retrieve the name of a product Vendor | Provide the VendorID |
| Create Product Vendor | Create a new product Vendor | Provide the Name of the Vendor to create it and get the Vendor ID |
| Update Product Vendor | Update an existing product Vendor | Provide the ID and Name of the Vendor to update it |
| Delete Product Vendor | Delete a specific product Vendor | Provide the Vendor ID to delete it |

### Using Discount Codes

| **Action** | **Function** | **Note** |
| --- | --- | --- |
| List Discount Codes | Get a list of all discount codes | Search by Discount Code |
| Get Discount Code | Retrieve a discount code |  |
| Get Discount Code By Id | Retrieve a discount code using its ID |  |
| Delete Discount Code | Delete a specific discount code |  |
| Delete Discount Code By Id | Delete a specific discount code using its ID |  |

### Managing Store Locations

| **Action** | **Function** | **Note** |
| --- | --- | --- |
| List Store Locations | Get a list of all store locations | Search by name; if the name is empty, it gets all locations |
| Find Nearby Store Locations | Find nearby store locations by latitude and longitude, and select the distance (KM, Meter, Mile) |  |
| Get Store Location Details | Retrieve details of a store location | Provide the location Id |

## Watch Our Video Tutorial
