# General Guidance

This section contains guidance for functionality that applies across multiple B2C Commerce APIs (SCAPI). Use it as a starting point to find the cross-cutting topics most relevant to your implementation.

## Authentication & Authorization

- [Authorization Overview](/docs/commerce/b2c-commerce/guide/authorization.md) — How SCAPI client permissions work.
- [Authorization for Shopper APIs](/docs/commerce/b2c-commerce/guide/authorization-for-shopper-apis.md) — Set up SLAS clients for storefront access.
- [Authorization for Admin APIs](/docs/commerce/b2c-commerce/guide/authorization-for-admin-apis.md) — Set up Account Manager clients for backend access.
- [Authorization Scopes Catalog](/docs/commerce/b2c-commerce/guide/auth-z-scope-catalog.md) — Complete list of available scopes.
- [SLAS Overview](/docs/commerce/b2c-commerce/guide/slas.md) — Grant types, token types, and advanced SLAS topics.

## Extensibility

- [Customization with Hooks](/docs/commerce/b2c-commerce/guide/extensibility_via_hooks.md) — Alter and extend Shopper API behavior using the Script API.
- [Hook Method Details](/docs/commerce/b2c-commerce/guide/hook-method-details.md) — Available hooks with method signatures.
- [Custom APIs](/docs/commerce/b2c-commerce/guide/custom-apis.md) — Build custom REST endpoints under the SCAPI framework.

## Caching & Performance

- [SCAPI Caching](/docs/commerce/b2c-commerce/guide/server-side-web-tier-caching.md) — Which APIs are cached, TTLs, and personalization settings.
- [Shopper API Performance and Best Practices](/docs/commerce/b2c-commerce/guide/performance.md) — Optimize response times for hooks, Custom APIs, and catalog size.

## Personalization

- [Shopper Context](/docs/commerce/b2c-commerce/guide/shopper-context-api.md) — Set context information to retrieve personalized promotions, payment methods, and shipping methods.
- [Shopper Context Best Practices](/docs/commerce/b2c-commerce/guide/shopper-context-best-practices.md) — Guidelines for using Shopper Context effectively.

## Error Handling & Troubleshooting

- [HTTP Status Codes and Errors](/docs/commerce/b2c-commerce/guide/error-response-codes.md) — Common error messages, error response format, and best practices.
- [Timeouts and Limits](/docs/commerce/b2c-commerce/guide/timeouts-limits.md) — Default timeout values and request/response size constraints.
- [Load Shedding and Rate Limiting](/docs/commerce/b2c-commerce/guide/throttle-rates.md) — Rate limits per API family.
- [Troubleshoot Request Timeouts](/docs/commerce/b2c-commerce/guide/timeout-troubleshoot.md) — Diagnose and resolve timeout issues.
- [View SCAPI Logs and Track Requests](/docs/commerce/b2c-commerce/guide/scapi-logs-request-tracking.md) — Use correlation IDs and Log Center.

## Working with Baskets & Orders

- [Build Baskets and Place Orders](/docs/commerce/b2c-commerce/guide/work-with-baskets-orders.md) — End-to-end checkout flow with code examples.
- [Hybrid Storefront Best Practices for Working with Baskets](/docs/commerce/b2c-commerce/guide/hybrid-storefront-baskets.md) — Best practices for hybrid SFRA/headless deployments.
- [Coupons, Gift Certificates, and Bonus Products](/docs/commerce/b2c-commerce/guide/coupons-giftcerts-bonus-products.md) — Promotional features in basket flows.

## Request Formatting

- [Base URL and Request Formation](/docs/commerce/b2c-commerce/guide/base-url.md) — How to construct well-formed API requests.
- [Property Selection](/docs/commerce/b2c-commerce/guide/scapi-property-selection.md) — Select specific attributes of the response to return.
- [URL Encoding of Special Characters](/docs/commerce/b2c-commerce/guide/url-encode.md) — Double-encode special characters in resource identifiers.
- [Custom Properties](/docs/commerce/b2c-commerce/guide/custom-properties.md) — Read and write custom `c_` properties on business objects.

## Security & CORS

- [Security](/docs/commerce/b2c-commerce/guide/security.md) — Authentication, authorization, and the shared responsibility model.
- [CORS in SCAPI](/docs/commerce/b2c-commerce/guide/scapi-cors.md) — Configure cross-origin resource sharing for browser-based access.
