Quotes
@archibald/commerce/quotes implements the @archibald/quotes contract against the SAP Commerce quote OCC API — the B2B request-for-quote flow (draft, submit, negotiate, accept). The shop template's portal platform is the reference consumer.
How to use
Register the QuotesModule with the commerce provider:
// src/{platform}/server/module/server.tsx
import { QuotesModule } from '@archibald/quotes';
import { CommerceQuotesProvider } from '@archibald/commerce/quotes';
new QuotesModule({ provider: new CommerceQuotesProvider() });
On the client, your components consume the @archibald/quotes hooks/client and type against the interfaces this subpath exports (CommerceQuote, CommerceQuoteActions).
API reference
| Export | Side | What it is |
|---|---|---|
CommerceQuote, CommerceQuoteActions | client | Typed quote shapes (states, entries, allowed actions) |
CommerceQuotesProvider | server | QuotesModule provider against OCC quotes |
CommerceQuotesService | server | The OCC quote operations the provider delegates to |
AggregatedQuotesService | server | Aggregates quote lists across sources/states |
PersistedQuotesService, QuoteKeyProvider | server | Persistence of quote drafts and the keying scheme |
| mapping helpers | server | OCC quote → storefront mapping |
Configuration
Reads the hybris block of the environment config; quote endpoints follow the configured OCC base.
Further documentation
- B2B — cost centers, org units and B2B carts that quote flows build on.
- SAP Commerce Integration