# Megaventory integrations: products

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

**Canonical page:** https://tray.ai/connectors/megaventory-integrations/
**Categories:** Supply chain
**Connects through:** HTTP Connector

## Overview

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.

## Use cases

### Products

Read, create, and delete products in Megaventory from any Tray.ai workflow. The Megaventory API covers calls such as get products and create or update a product.

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

### Sales orders

Read, create, and delete sales orders in Megaventory from any Tray.ai workflow. The Megaventory API covers calls such as get sales orders and create or update a sales order.

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

### Purchase orders

Read, create, and delete purchase orders in Megaventory from any Tray.ai workflow. The Megaventory API covers calls such as get purchase orders and create or update a purchase order.

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

### Suppliers and clients

Read, create, and delete suppliers and clients in Megaventory from any Tray.ai workflow. The Megaventory API covers calls such as get suppliers and clients and create or update a supplier.

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

### Inventory locations

Read and update inventory locations in Megaventory from any Tray.ai workflow. The Megaventory API covers calls such as get inventory locations and get location stock.

- Get inventory locations
- Get location stock
- Update product stock

## Challenges Tray.ai solves

### Keeping Megaventory credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Megaventory credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Megaventory API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Megaventory API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Megaventory?

Yes. Tray.ai connects to Megaventory through the HTTP Connector, which calls the Megaventory API directly. Any call the Megaventory API documents can run as a step in a Tray.ai workflow.

### 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.

### Can I get a dedicated Megaventory connector?

Megaventory runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Megaventory connector from the Megaventory API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
