# Megaventory API Documentation

This is the complete API documentation for connecting to the Megaventory API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Megaventory connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/megaventory/actions/{actionSlug}/run
```

## Megaventory actions

- PUT `bulk-update-purchase-orders` Bulk Update Purchase Orders
- PUT `bulk-update-sales-orders` Bulk Update Sales Orders
- PUT `bulk-update-sales-quotes` Bulk Update Sales Quotes
- PUT `cancel-purchase-order` Cancel Purchase Order
- PUT `cancel-sales-order` Cancel Sales Order
- GET `get-product-pricing` Get Product Pricing
- GET `list-contact-persons` List Contact Persons
- GET `list-inventory-levels` List Inventory Levels
- GET `list-inventory-locations` List Inventory Locations
- GET `list-product-categories` List Product Categories
- GET `list-product-clients` List Product Clients
- GET `list-product-suppliers` List Product Suppliers
- GET `list-products` List Products
- GET `list-purchase-orders` List Purchase Orders
- GET `list-sales-orders` List Sales Orders
- GET `list-sales-quotes` List Sales Quotes
- GET `list-supplier-stock` List Supplier Stock
- GET `list-suppliers-and-clients` List Suppliers and Clients
- PUT `update-contact-person` Update Contact Person
- PUT `update-inventory-levels` Update Inventory Levels
- PUT `update-inventory-location` Update Inventory Location
- PUT `update-product` Update Product
- PUT `update-product-category` Update Product Category
- PUT `update-product-client` Update Product Client
- PUT `update-product-supplier` Update Product Supplier
- PUT `update-purchase-order` Update Purchase Order
- PUT `update-sales-order` Update Sales Order
- PUT `update-sales-quote` Update Sales Quote
- PUT `update-supplier-or-client` Update Supplier or Client
- PUT `update-supplier-stock` Update Supplier Stock
