Revoke an Accounts-owned native registration
Default off. Accounts authorizes the current owner/admin of the exact existing Commerce workspace and signs a command. Core checks current Accounts JWKS and the SYNCED human workspace projection; no org, membership, merchant ADMIN key or Marketplace purchase is created. A command lease lasts at most 30 seconds, with at most 5 seconds future clock skew. JSON only; no query, Origin or Cookie. command_id has immutable semantic content; retries may refresh only issued_at and authorization_expires_at. No route executes a commerce or payment transaction. Requires current workspace owner/admin and the exact existing enrollment, connection and revision. No Microsoft login or provider access is needed. Removes READ permission, disconnects the sealed connection and advances revision. Exact retries do not increment again.
Authorization
AccountsNativeEnrollmentService Dedicated ACCOUNTS_NATIVE_ENROLLMENT_SERVICE_TOKEN plus a fresh Accounts Ed25519 command. Merchant runtime keys, product sessions and other service credentials do not authorize this route.
In: header
Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/internal/native-enrollments/revoke" \ -H "Content-Type: application/json" \ -d '{ "payload": { "version": "accounts-native-enrollment-v1", "account_org_id": "string", "account_workspace_id": "string", "product": "commerce", "workspace_environment": "sandbox", "command_id": "7d510d78-7444-4252-aeac-9e473949661e", "enrollment_id": "cd8e6b59-f5cf-4894-8850-4dc2dc1aaf8e", "purpose": "native_connection_enrollment", "account_user_id": "string", "role": "owner", "issued_at": "2019-08-24T14:15:22Z", "authorization_expires_at": "2019-08-24T14:15:22Z", "action": "revoke", "existing_connection": { "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9", "expected_revision": 1 } }, "evidence": { "algorithm": "Ed25519", "key_id": "string", "payload_sha256": "string", "signature": "string" } }'{ "version": "accounts-native-enrollment-v1", "account_org_id": "string", "account_workspace_id": "string", "product": "commerce", "workspace_environment": "sandbox", "command_id": "7d510d78-7444-4252-aeac-9e473949661e", "enrollment_id": "cd8e6b59-f5cf-4894-8850-4dc2dc1aaf8e", "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9", "connection_revision": 1, "platform": "D365_BC", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "environment_name": "string", "company_id": "b2e6a1c3-1a5e-44ae-a8fd-81f76fd715cf", "execution_available": false, "status": "revoked", "read_granted": false, "provider_read_observed_at": null, "guard_enabled": null, "guard_configured": null}Verify an Accounts-authorized native READ registration POST
Default off. Accounts authorizes the current owner/admin of the exact existing Commerce workspace and signs a command. Core checks current Accounts JWKS and the SYNCED human workspace projection; no org, membership, merchant ADMIN key or Marketplace purchase is created. A command lease lasts at most 30 seconds, with at most 5 seconds future clock skew. JSON only; no query, Origin or Cookie. command_id has immutable semantic content; retries may refresh only issued_at and authorization_expires_at. No route executes a commerce or payment transaction. Requires fresh Entra tenant identity plus an exact operator-managed assignment to this Accounts/Core workspace, tenant, BC environment and company. Provider proof must be verified within 10 minutes of command issue and outlive its lease. Core selects its managed application and reads only the exact company and native guardSettings. Configured/enabled guard state is observed separately from READ permission. Atomic activation records an Accounts enrollment grant with can_configure=false. Reverification pins the existing enrollment/connection/revision and increments the revision. A successful immutable retry returns the original receipt without another provider read.
Recover the current identity of an Accounts-owned enrollment POST
Default off. Accounts authorizes the current owner/admin of the exact existing Commerce workspace and signs a command. Core checks current Accounts JWKS and the SYNCED human workspace projection; no org, membership, merchant ADMIN key or Marketplace purchase is created. A command lease lasts at most 30 seconds, with at most 5 seconds future clock skew. JSON only; no query, Origin or Cookie. command_id has immutable semantic content; retries may refresh only issued_at and authorization_expires_at. No route executes a commerce or payment transaction. Requires current workspace owner/admin and exact retained enrollment_id, without an old Microsoft proof or known connection ID. Recovers pending, active or revoked records. Historical provider observation time/guard flags never become fresh evidence. read_granted is computed from current persisted enrollment/grant and managed assignment eligibility; unavailable assignment authority reports false. No permission is created or renewed.

