Overview of the Centra Storefront Accelerator
# The code is hosted on GitHub
git clone https://github.com/centrahq/storefront-acceleratorwebsite·Indexed 30 days ago
https://internal-centra-dev-app.vercel.app/Technical documentation for Centra's suite of APIs, including the Storefront API for cart and checkout flows, the Integration API for PIM and B2B account management, and legacy Order, Checkout, and SOAP integration services. Covers GraphQL mutations and queries, payment integrations with Stripe and Adyen, and best practices for catalog imports and stock queries.
# The code is hosted on GitHub
git clone https://github.com/centrahq/storefront-acceleratorThe Storefront API automatically caches specific data types to ensure fast, real-time delivery. These are divided into two categories:
Configuration Data:
Product Catalog Data:
The Mailchimp E-commerce plugin in Centra acts as a mailtrigger to automate receipt emails for orders placed, shipped, or returned. It allows developers to connect marketing campaigns with sales to track conversions within Mailchimp.
Key flow steps:
POST /payment call to Centra.1. query expressCheckoutWidgets: Fetch Adyen config (client key, payment methods, environment).
2. query selection: Retrieve current cart state.
3. mutation addItem: (PDP flow only) Add item to selection on the fly.
4. mutation paymentInstructions(paymentInitiateOnly: true): Recalculate totals and shipping methods for the shopper's address.
5. mutation setShippingMethod: Persist the selected shipping option.
6. mutation paymentInstructions: Submit final payment with wallet data and addresses.
7. mutation paymentResult: Handle 3DS / additional details callback.
8. query order: Fetch the placed order for the confirmation screen.The Checkout API provides several core functionalities for e-commerce integration: