Authentication
All API requests must be authenticated with an API key passed in the X-API-Key header. API keys are issued from your account dashboard under Settings → API Access.
https://api.meridian-supply.com/v2
curl -H "X-API-Key: msc_live_xxxxxxxxxxxxxxxx" \
-H "Accept: application/json" \
https://api.meridian-supply.com/v2/orders?customer_id=ACC-00412
Orders
Retrieve, search, and manage purchase orders associated with your account.
Returns a paginated list of orders. Requires customer_id. Results include order status, line items, and shipping information.
customer_id.
| Parameter | Type | Required | Description |
|---|---|---|---|
| customer_id | string | required | Account number (e.g., ACC-00412). Must match the authenticated account. |
| status | string | optional | Filter by status: pending, shipped, delivered, cancelled |
| from_date | string | optional | ISO 8601 date. Returns orders placed on or after this date. |
| limit | integer | optional | Results per page. Default: 25. Max: 100. |
| page | integer | optional | Page number. Default: 1. |
{
"orders": [
{
"order_id": "ORD-2024-091847",
"customer_id": "ACC-00412",
"status": "shipped",
"total": 842.60,
"items": 7,
"placed_at": "2024-09-14T14:22:00Z",
"tracking": "1Z999AA10123456784"
}
],
"total": 0,
"page": 1,
"customer_id": "",
"status": "ok"
}
Product Search
Search the Meridian catalog by keyword, SKU, category, or specification.
Returns a list of matching products. Supports fuzzy matching and SKU lookup.
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | required | Search query string. Max 200 characters. |
| category | string | optional | Limit results to a product category slug. |
| in_stock | boolean | optional | If true, return only items with available inventory. |
Returns the product listing page filtered by category. Use the category query parameter with a category slug.
Account & Authentication
Session management and account operations.
Accepts username and password form fields. Returns a session cookie on success, or HTTP 401 on invalid credentials.
| Field | Type | Required | Description |
|---|---|---|---|
| username | string | required | Email address or account number (ACC-XXXXX) |
| password | string | required | Account password. Min 8 characters. |
Reserved for Meridian Supply Co. internal administrators. Requires admin-level authentication and IP allowlist entry. Returns 403 Forbidden for all other requestors.
Returns basic system status information for internal monitoring. The exec parameter is reserved for future use by the infrastructure monitoring agent.
exec parameter for system commands is logged as a security event.
Rate Limits & Quotas
API access is subject to the following rate limits. Exceeding limits returns HTTP 429.
| Tier | Requests / minute | Requests / day | Notes |
|---|---|---|---|
| Public (unauthenticated) | 30 | 1,000 | Product search and catalog browsing only |
| Standard Account | 120 | 10,000 | Full API access excluding admin endpoints |
| Enterprise / EDI | 600 | 100,000 | Contact sales for EDI integration |