Redigera

Dela via


Headless commerce architecture

This article describes the architecture of the headless commerce (also known as Commerce Scale Unit). The headless commerce is an API-driven framework that enables extensible, personalized, friction-free commerce experiences, and integrated, optimized back-office operations.

Commerce Scale Unit architecture.

Omnichannel solution provided by the headless commerce

The commerce APIs of the headless commerce are consumed by Microsoft Dynamics 365 Commerce (back-office, in-store, call center, and e-commerce) and provide a complete omnichannel solution. The APIs can be consumed by third-party applications and Microsoft Power Platform connectors.

Commerce Scale Unit platform integration.

Components

The headless commerce contains these components:

  • Consumer APIs
  • Commerce runtime (CRT)
  • Channel database

Consumer APIs

The headless commerce exposes Open Data Protocol (OData) APIs for Dynamics 365 Commerce and third-party applications to consume. The API layer is built by using ASP.NET Core. It provides different authentication options so that the clients can consume the APIs. The APIs are a wrapper that exposes the business logic. For more information, see the following articles:

Commerce runtime

CRT is a collection of portable .NET libraries that contain the core commerce business logic. The consumer APIs expose the business logic for clients to consume. To add or modify business logic, customize CRT. For more information, see the following articles:

Channel database

The channel database holds transactional data and master data from one or more commerce channels, such as an online store or a brick-and-mortar store. Master data is pushed down from Commerce headquarters to the channel database by using Commerce Data Exchange (CDX). Transactional data that is stored in the channel database is pulled back to Commerce headquarters by using CDX. For more information, see Channel database extensions.

Headless Commerce Integration

Microsoft provides a set of sample implementations that are tailored to headless and composable commerce scenarios. These samples can help you kick-start and accelerate the development of custom storefronts by using Dynamics 365 Commerce headless engine (commonly referred to as headless commerce). The Headless Commerce Samples GitHub repository includes both technical guidance and hands-on code samples to help you quickly get started.

The samples serve as quick-start templates and reference implementations for partners, software development companies (formerly referred to as independent software vendors or ISVs), and customers. The samples cover core scenarios such as authentication, customer data, product data, pricing, cart, checkout, and order ingestion.

To learn more about each commerce API endpoint, and to read guidance for packaging, deploying, and operating headless commerce solutions, use the resources that are linked in the Components section of this article.