Through REST or GraphQL APIs. The frontend makes API calls to fetch product data, manage carts, and process checkout. Spree Commerce uses a REST API with OpenAPI 3.0 specs and a TypeScript SDK, so frontend teams get type safety and autocomplete in their IDE. Mobile teams can generate Swift or Kotlin clients directly from the OpenAPI spec without writing API integration code manually.