Skip to content
Megaventory logo

Connectors / Supply chain · HTTP Connector

Megaventory integration and API

Create or update a product, create or update a sales order and create or update a purchase order in Megaventory.

What can you do with Megaventory on Tray.ai?

Megaventory is cloud inventory and order management software that tracks stock across locations and handles sales orders, purchase orders and bills of materials for manufacturing. Tray.ai connects to Megaventory through the HTTP Connector, so your workflows can call the Megaventory API alongside the rest of your stack.

  • Create or update a sales order when a customer checks out in your online store.
  • Get location stock each morning and push available quantities to your online storefront.
  • Cancel a sales order when the customer's payment is refunded in your payment system.
  • Create or update a supplier when procurement approves a new vendor in your purchasing system.
Connects through
HTTP Connector
Authentication
An API key in the request body or an API key in the query string
Base URL
https://api.megaventory.com/v2017a

Set it up

Connect Megaventory to Tray.ai

Each step uses Megaventory's own API details, from its documentation.

Save Megaventory's API key

Save the key as a Tray.ai authentication and add it to the request body from $.auth, so it never sits in the workflow itself.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.megaventory.com/v2017a as the base URL. Or paste a cURL example from Megaventory's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “Get products”

It's one of 15 documented actions, under Products. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Create or update a product” and “Get sales orders” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Megaventory

Connect Megaventory with Shopify and NetSuite

Each one uses actions and events from Megaventory's own API documentation.

Send Shopify orders to Megaventory

When

An order is placed in Shopify

Then

  1. Create or update a sales order in Megaventory
  2. Get location stock to check the items are available

With Shopify

Sync Megaventory stock levels to Shopify

When

On a schedule

Then

  1. Get location stock in Megaventory
  2. Update inventory levels in Shopify

With Shopify

Copy Megaventory purchase orders to NetSuite

When

On a schedule

Then

  1. Get purchase orders in Megaventory
  2. Create a matching purchase order in NetSuite

With NetSuite

Apps you can build on Megaventory data

Internal tools your team can build with an AI assistant, each one using Megaventory calls from its API documentation.

Stock by location board

Shows product stock across each warehouse so an inventory lead can spot low stock and adjust counts.

Purchase order tracker

Lists open purchase orders by supplier so buyers can update quantities or cancel orders no longer needed.

Sales order desk

Lists sales orders with client and stock details so an order team can edit orders or cancel them.

Megaventory MCP server for AI agents

Build an MCP server on Megaventory in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Get products
  • Get sales orders
  • Get purchase orders
  • Get suppliers and clients
  • Get inventory locations
  • Create or update a product
  • Delete a product
  • Create or update a sales order

What the Megaventory API covers

5 resources and 15 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.

Products

  • Get products
  • Create or update a product
  • Delete a product

Sales orders

  • Get sales orders
  • Create or update a sales order
  • Cancel a sales order

Purchase orders

  • Get purchase orders
  • Create or update a purchase order
  • Cancel a purchase order

Suppliers and clients

  • Get suppliers and clients
  • Create or update a supplier
  • Delete a supplier or client

Inventory locations

  • Get inventory locations
  • Get location stock
  • Update product stock

Checked against Megaventory's own documentation on 2026-10-22

api.megaventory.com/v2017a/documentation/index.html

Frequently asked questions

What can a Tray.ai workflow do in Megaventory?

The Megaventory API documents 15 actions across 5 resources (Products, Sales orders, Purchase orders, Suppliers and clients, Inventory locations). For example: Get products; Get sales orders; Get purchase orders. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Megaventory?

The Megaventory API uses an API key in the request body and an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Megaventory working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.