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. Files must stay within 32 levels of nesting and 100,000 total values and containers. 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.
Each JSON object must contain unique property names. Repeated keys are rejected even when written with equivalent Unicode escapes. Numeric values must be finite; integers outside the safe JavaScript range and nonzero numbers that would underflow to zero are rejected. Use strings for large identifiers and precision-sensitive values. Numeric metadata otherwise follows ordinary JavaScript number semantics; monetary calculations use validated decimal strings.
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; if non-empty, each must be a string of up to 200 characters. An empty string is treated as absent. Null, numbers, objects and whitespace-only values block the product. 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. When a field is added or removed,before_presentandafter_presentdistinguish a missing field from an explicitnull. Object key order alone is not a change; array order remains meaningful. - 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 free workspace remains file-based and local. The separate cloud report service provides a persistent order, a server-generated report, payment confirmation and authenticated download. Sign in at Your account to create a revocable API key for your own automation. There is no public 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.
Cloud report API
Send your account key as Authorization: Bearer smk_… over HTTPS. Never embed it in a URL or public frontend. API keys can access only their owner's orders and cannot create other API keys. Browser requests use platform sign-in and a CSRF token instead.
GET /api/commerce/status reports current availability, configured payment methods and prices. POST /api/commerce/orders accepts the JSON envelope below. The input field contains the original file as a string, up to 1 MiB; the complete request must fit 2 MiB. Limits are 5,000 input rows, 10 orders per account per UTC day, and 60 requests per account per minute. A service-wide daily cap also applies.
{
"tool": "margin",
"input": "{\"usage\":[{\"id\":\"u1\",\"customer_id\":\"c1\",\"cost_usd\":\"2.00\"}],\"revenue\":[{\"id\":\"r1\",\"customer_id\":\"c1\",\"amount_usd\":\"9.00\"}]}",
"idempotencyKey": "a5a53d6a-670b-40f0-a7cf-6e6f26d4a830",
"consent": true
}
Generate one UUID v4 per logical report and reuse it on retries with the same input. Reusing it with changed input returns a conflict. Use tool: "catalog" and an array encoded as the input string for catalog reports; optional maxAgeHours is an integer from 1 to 720. The server fixes prices and validates the report; customer-supplied amounts, destinations or payment statuses are rejected.
GET /api/commerce/orders lists recent orders. GET /api/commerce/orders/{id} retrieves one. POST /api/commerce/orders/{id}/paypal with {} returns an approval URL. After the payer approves, POST /api/commerce/orders/{id}/capture with {} confirms payment on the server. A return URL alone never proves payment.
For USDC, first call POST /api/commerce/orders/{id}/base-quote with {"senderAddress":"0x…"}. Send exactly the quoted six-decimal amount of native USDC on Base from that address before expiry. Then call POST /api/commerce/orders/{id}/base-verify with {"txHash":"0x…"}. The server locates the unique transfer matching the token, sender, recipient and exact amount. If several transfers match, supply the actual logIndex to identify one; ambiguous transfers are never credited automatically. The small quoted discount distinguishes concurrent orders. Verification requires a finalized canonical block; pending finalization returns a retryable error, not a second payment request.
GET /api/commerce/orders/{id}/download returns the report after a confirmed payment. The response includes its SHA-256 fingerprint. POST /api/commerce/orders/{id}/delete-artifact with {} removes the report when no payment is unresolved; order and payment metadata remain. A result is a completed report under the documented rules, including reports that identify problems, not guaranteed sales or positive financial returns. Payments may be unavailable until the operator finishes configuration.
All report types and input templates
The cloud service accepts up to 1 MiB per source file. Use your own SteadyMetric account or a scoped account API key. Each tool page explains its exact rules and provides a fictional input template. Cloud reports must be paid before private delivery.
- CatalogProof — tool ID
catalog; Product JSON; USD 9 per report. - MarginGuard — tool ID
margin; Revenue and usage JSON; USD 9 per report. - Invoice Check — tool ID
invoice; Invoice JSON or normalized CSV; USD 19 per report. - Agent Regression — tool ID
agent; Baseline and current test JSON; USD 39 per report. - USDC Match — tool ID
usdc; Invoices and transfer JSON; USD 39 per report. - Spec Clean — tool ID
spec; Structured product JSON; USD 29 per report. - Dependency Diff — tool ID
dependencies; Two CycloneDX JSON inventories; USD 39 per report. - Plan Delta — tool ID
plans; Before and after plan JSON; USD 19 per report. - Purchase Match — tool ID
purchase; Orders, receipts and invoice JSON; USD 39 per report. - Tender Delta — tool ID
tender; Two structured tender snapshots; USD 29 per report. - MeterMatch — tool ID
meter; Closed-period events, rates and billing JSON; USD 39 per report. - SeatTrim — tool ID
seats; Applications and seat activity JSON; USD 29 per report. - PayoutBridge — tool ID
payout; Payouts, ledger entries and deposits JSON; USD 29 per report. - RAG Score — tool ID
rag; Query IDs, relevance labels and ranked document IDs; USD 29 per report. - SLA Credit — tool ID
sla; Service period, incidents, exclusions and tiers JSON; USD 19 per report. - TokenPlan — tool ID
tokens; Workload attempts, model rates and budget JSON; USD 19 per report. - BatchPay Check — tool ID
batch; EVM beneficiaries, budgets and proposed payments JSON; USD 29 per report. - BalanceProof — tool ID
balance; Balance snapshots, transfers and fees JSON; USD 39 per report. - Treasury Stress — tool ID
treasury; Holdings, supplied valuations and issuer scenarios JSON; USD 39 per report. - Vesting Audit — tool ID
vesting; Linear grants and distribution records JSON; USD 29 per report.
Crypto tools never require a private key or seed phrase. Export base-unit quantities as strings. Finalized fields in uploaded files are assertions by the source; the tools do not prove onchain finality.