Skip to main content

Inventory API

The Inventory API provides endpoints for viewing inventory levels, analytics, channel-location ATP matrices, and managing cycle counts.
Scope: Tenant-scoped; requires authenticated org context
Availability: Not available in SuperAdmin

Authentication

All requests require authentication. Include your API key in the Authorization header:
See Authentication for details.

Base URL

Headers

All requests must include:

Endpoints

| GET | /cycle-count | List cycle count batches | | POST | /cycle-count | Create cycle count batch | | GET | /cycle-count/[batchId] | Get cycle count batch details | | POST | /cycle-count/resolve | Resolve cycle count discrepancies |

Example Requests

Get Channel × Location ATP Matrix

Response:

List Inventory Items

Response:

Get Inventory Analytics

Response:

Common Errors

401 Unauthorized

Cause: Missing or invalid API key. Solution: Include a valid API key in the Authorization header.

400 Bad Request

Cause: Required query parameter missing. Solution: Include all required query parameters in the request.

404 Not Found

Cause: Location doesn’t exist or isn’t accessible to your organization. Solution: Verify the location ID and ensure you have access to it.

500 Internal Server Error

Cause: Server error during ATP calculation or data retrieval. Solution: Retry the request. If the error persists, contact support.

Query Parameters

Channel-Location ATP

  • locationId (required): Location ID
  • search: Search by product name or SKU
  • channels: Comma-separated channel IDs to filter
  • page: Page number (default: 1)
  • limit: Page size (default: 50, max: 200)

List Inventory

  • locationId: Filter by location
  • productMasterId: Filter by product
  • lotId: Filter by lot
  • binId: Filter by bin
  • page: Page number (default: 1)
  • limit: Page size (default: 20, max: 100)

Inventory Analytics

  • locationId: Filter by location
  • fromDate: Start date (ISO string)
  • toDate: End date (ISO string)
  • categoryId: Filter by category

Request/Response Schemas

Channel ATP Cell

Inventory Item

Inventory Analytics



Permissions & Roles

Inventory API access requires inventory.read permission. Some endpoints may require additional permissions (e.g., inventory.cyclecount for cycle count endpoints).