Compare bounded observed Walmart or Adobe history
Default off; only a dedicated commerceConnectedTransport credential is admitted. Enabled automatic onboarding additionally requires accountSourceAuthority:true with orgIds omitted. This is not a generic wildcard org key. Each handler independently verifies fresh Accounts signed authority, exact resource/source/plan/tenant/revision and the synced projection before disclosing any result. Generic fixed-orgIds service keys keep their existing permissions. Requires the transient source proof header and its exact supported marketplace source. Pure comparison of at most 100 documents over the previous 90 complete UTC dates against the exact policy digest. Evaluates only supported historical undercost, margin, discount stacking and price discrepancy facts; missing evidence is not_assessed. The report is unsigned, performs no full policy replay or external action, and is not a 90-day trial. Commerce owns source reads, report reservations and immutable persistence.
Authorization
CommerceConnectedTransport Dedicated service credential registered only for connected policy, comparison and human evidence transport. Requires a separate current signed source proof per call; never use a customer OAuth, refresh or product-session credential.
In: header
Header Parameters
Must equal the body/query organization and the independently verified Accounts source UUID.
uuidRequest Body
application/json
uuiduuiduuid-9007199254740991 <= value <= 9007199254740991Value in
- "walmart-marketplace"
- "adobe-commerce"
date-timeitems <= 1000 <= value <= 100items <= 11Response Body
application/json
curl -X POST "https://example.com/v1/internal/commerce/connected/history/compare" \ -H "x-org-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "x-commerce-source-authority: string" \ -H "Content-Type: application/json" \ -d '{ "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "assessment_id": "9f60a03f-b3de-4b19-9361-0380d9aa1e9e", "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9", "connection_revision": -9007199254740991, "source": "walmart-marketplace", "policy": { "bundle_id": "fc6f5a67-caa1-4339-9c14-a67826143b60", "version": "string", "policy_digest": "string", "floor_percent": 0, "max_concurrent_discounts": 0, "price_tolerance_percent": 0, "comparison": "observed_historical_commerce_checks", "full_policy_evaluated": false }, "window": { "days": 90, "start_date": "string", "end_date_exclusive": "string", "anchor": "server_utc_date" }, "observed_at": "2019-08-24T14:15:22Z", "records": [ { "record_id": "string", "transaction_date": "string", "date_precision": "day", "transaction_at": "2019-08-24T14:15:22Z", "currency": "string", "net_amount_excluding_tax": 0, "cost_basis": 0, "cost_currency": "string", "cost_provenance": "historical_document", "discount_count": 0, "discount_provenance": "historical_document", "expected_net_amount_excluding_tax": 0, "expected_price_currency": "string", "expected_price_provenance": "historical_contract", "lines_complete": true } ], "documents_scanned": 0, "truncated": true, "source_complete": true, "source_reasons": [ "document_limit" ] }'{ "version": "commerce-marketplace-history-v1", "status": "completed", "mode": "historical_only", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "assessment_id": "9f60a03f-b3de-4b19-9361-0380d9aa1e9e", "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9", "connection_revision": -9007199254740991, "source": "walmart-marketplace", "assessed_at": "2019-08-24T14:15:22Z", "observed_at": "2019-08-24T14:15:22Z", "window": { "days": 90, "start_date": "string", "end_date_exclusive": "string", "anchor": "server_utc_date" }, "policy": { "bundle_id": "fc6f5a67-caa1-4339-9c14-a67826143b60", "version": "string", "policy_digest": "string", "floor_percent": 0, "max_concurrent_discounts": 0, "price_tolerance_percent": 0, "price_reference": { "kind": "recorded_order_original_price", "max_markdown_percent": 0 }, "comparison": "observed_historical_commerce_checks", "full_policy_evaluated": false }, "cost_scope": "merchandise_margin", "summary": { "documents_scanned": 0, "documents_returned": 0, "records_with_findings": 0, "fully_assessed": 0, "partially_or_not_assessed": 0, "undercost": 0, "below_margin_floor": 0, "discount_stacking": 0, "price_discrepancy": 0, "missing_cost": 0, "missing_currency": 0, "missing_discounts": 0, "missing_price_reference": 0 }, "findings": [ { "record_id": "string", "transaction_date": "string", "date_precision": "day", "currency": "string", "checks": { "undercost": { "result": "finding", "reason": "UNDER_COST", "observed": 0, "threshold": 0, "basis": "recorded_order_original_price" }, "margin": { "result": "finding", "reason": "UNDER_COST", "observed": 0, "threshold": 0, "basis": "recorded_order_original_price" }, "discount_stacking": { "result": "finding", "reason": "UNDER_COST", "observed": 0, "threshold": 0, "basis": "recorded_order_original_price" }, "price_discrepancy": { "result": "finding", "reason": "UNDER_COST", "observed": 0, "threshold": 0, "basis": "recorded_order_original_price" } }, "proof_ref": null } ], "coverage": { "record_limit": 100, "complete": true, "truncated": true, "reasons": [ "document_limit" ] }, "proof_ref": null, "evidence_verification": "unsigned", "execution_available": false, "no_downstream_action_executed": true}Read the exact current historical comparison policy GET
Default off; only a dedicated commerceConnectedTransport credential is admitted. Enabled automatic onboarding additionally requires accountSourceAuthority:true with orgIds omitted. This is not a generic wildcard org key. Each handler independently verifies fresh Accounts signed authority, exact resource/source/plan/tenant/revision and the synced projection before disclosing any result. Generic fixed-orgIds service keys keep their existing permissions. Requires the transient source proof header, at least one approved Walmart or Adobe source and an explicit nonzero or null history allowance. Reads the selected exact version; never chooses a default or writes policy.
Revalidate a named human review's current source and dossier POST
Default off; only a dedicated commerceConnectedTransport credential is admitted. Enabled automatic onboarding additionally requires accountSourceAuthority:true with orgIds omitted. This is not a generic wildcard org key. Each handler independently verifies fresh Accounts signed authority, exact resource/source/plan/tenant/revision and the synced projection before disclosing any result. Generic fixed-orgIds service keys keep their existing permissions. The body authority is mandatory fresh Accounts accounts-commerce-human-review-v1 evidence with purpose commerce_human_review, bound to the exact case revision/context/action/dossier and expected source/workspace. A live product-session token is sent only to Accounts by the trusted BFF; this consumer accepts signed evidence only. It checks current source/policy/dossier and native company permissions. Commerce separately enforces named assignment, requester separation and the atomic human decision. No execution or stale OAuth extension is available.

