Developer documentation
Bring a file.
Get a result you can inspect.
Use these JSON formats to prepare catalog and margin data for the public browser tools. No API key or account is needed to run an analysis.
Before you import
Use a valid UTF-8 JSON file up to 2 MiB (2,097,152 bytes). A catalog can contain up to 5,000 products. A margin file can contain up to 5,000 rows across its two arrays. CSV is not accepted by these public browser tools.
Use strings for monetary values, including whole amounts: "25", "25.50" or "25.500000". Do not use currency symbols, thousands separators, exponent notation or more than six decimal places.
Catalog format
The top-level value is an array of product objects. This illustrative record shows the fields required for a basic check, plus a brand and manufacturer part number.
[
{
"id": "desk-lamp-01",
"title": "Arc desk lamp",
"description": "Illustrative adjustable desk lamp for a sample catalog.",
"price": "89.000000",
"currency": "USD",
"availability": "in_stock",
"url": "https://example.com/products/desk-lamp-01",
"image_url": "https://example.com/images/desk-lamp-01.jpg",
"updated_at": "2026-12-01T12:00:00Z",
"brand": "Sample Studio",
"mpn": "ARC-01"
}
]
The example timestamp is fixed to make the format clear. It will eventually fail freshness checks. For real products, use the actual observation time; do not refresh timestamps just to make older data pass.
| Field | Requirement |
|---|---|
id | Required. Non-empty string, up to 200 characters. Unique within the file. |
title | Required. A title of 3–500 characters. |
description | Required. Non-empty string, up to 10,000 characters. |
price | Required. Positive decimal string, up to six decimal places and a maximum value of 1,000,000,000. |
currency | Required. Supported uppercase ISO currency code, such as USD, EUR or MXN. Browser currency support is used; a smaller fallback list applies in older browsers. |
availability | Required. One of in_stock, out_of_stock, preorder or backorder. |
url, image_url | Required. HTTPS URLs without embedded credentials or whitespace, up to 2,048 characters. Destinations are not fetched. |
updated_at | Required. Valid ISO date-time with seconds and a timezone, such as 2026-12-01T12:00:00Z or 2026-12-01T06:00:00-06:00. |
gtin | Optional. If non-empty, a digit string of length 8, 12, 13 or 14 with a valid check digit. |
brand, mpn | Optional strings, up to 200 characters each. If neither a GTIN nor a complete brand/MPN pair is provided, the tool raises an identifier warning. |
Freshness defaults to 168 hours and can be set between 1 and 720 whole hours. Duplicate IDs and invalid required fields produce blocking errors. The report retains issues so you can review affected records; a missing identifier warning alone does not block export.
Margin format
The top-level value is an object with both usage and revenue arrays. Either array may be empty, but the file must contain at least one row overall.
{
"usage": [
{ "id": "usage-001", "customer_id": "studio-a", "cost_usd": "12.500000" },
{ "id": "usage-002", "customer_id": "studio-a", "cost_usd": "0.125000" }
],
"revenue": [
{ "id": "sale-001", "customer_id": "studio-a", "amount_usd": "49.000000" },
{ "id": "refund-001", "customer_id": "studio-a", "amount_usd": "-5.000000" }
]
}
This example has $44.00 in revenue and $12.625000 in imported usage costs, producing $31.375000 in contribution and a displayed margin of 71.31%. The values are illustrative.
| Field | Requirement |
|---|---|
id | Required in every row. Non-empty string, up to 200 characters. Unique within its array. A duplicate rejects the import. |
customer_id | Required. Non-empty string, up to 120 characters. The same identifier joins a customer's costs and revenue. |
cost_usd | Required in usage rows. Non-negative decimal string, up to six decimal places. |
amount_usd | Required in revenue rows. Signed decimal string, up to six decimal places. Negative amounts can represent refunds. |
currency | Optional. If supplied, it must be USD. No exchange-rate conversion is performed. |
Each monetary value must be within ±1,000,000,000,000 USD, with usage costs restricted to non-negative values. Use a consistent customer identifier in both arrays. Differently spelled identifiers are treated as separate customers.
All rows are included. Prepare one consistent reporting period and cost scope before importing; extra date fields do not create a date filter. The import is validated as a whole. Invalid input does not produce a partially imported report.
Results you can download
- Catalog audit report
- A JSON document with schema version
steadymetric-catalog-audit/1, the analysis time, freshness setting, totals, per-product issues and the products that passed the checks. - Catalog feed
- A JSON document with schema version
steadymetric-catalog-feed/1and the passing products. This is SteadyMetric's own format, not a submission format certified for a particular marketplace. - Catalog comparison
- After importing successive catalog files, you can compare versions and download a JSON document with schema version
steadymetric-catalog-diff/1. It records added and removed product IDs and changed fields. The workspace retains the current file and up to nine previous versions. - Margin report
- A JSON document with schema version
steadymetric-margin/1, totals and customer-level revenue, usage costs, contribution and margin percentages. Amounts are decimal strings with six decimal places. A percentage isnullwhen revenue is zero or negative.
Exported reports state their scope and limitations. Preserve the original source file alongside a report if you need to reproduce or independently review the calculation.
The interface previews up to 100 products or customers and up to 50 comparison rows. Downloaded JSON contains the full result, not just the visible preview.
Integration scope
The public release is file-based: prepare JSON, choose it in the workspace, inspect the result and download an export. There is no public HTTP API, API-key onboarding or hosted MCP endpoint in this release.
The development pilot's local API and connectors are not exposed through this website. The public tools do not automatically synchronise a Shopify store, connect to an AI provider's billing account, or initiate crypto payments.