commercetools-api

Production-tested patterns for commercetools cart/checkout, orders, payments, B2B, promotions, extensions, and subscriptions from a Platinum partner with 50+ live implementations.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "commercetools-api" with this command: npx skills add ariessolutionsio/composable-skills/ariessolutionsio-composable-skills-commercetools-api

commercetools API Development

Progressive loading — only load what you need:

  • Setting up the SDK or client? Load references/sdk-setup.md
  • Building cart or checkout? Load references/cart-checkout.md
  • Working with orders? Load references/order-management.md
  • Managing customers? Load references/customer-management.md
  • Setting up extensions or subscriptions? Load references/extensions-subscriptions.md
  • Implementing discounts? Load references/promotions-pricing.md
  • Building B2B features? Load references/b2b-patterns.md
  • Implementing search? Load references/search-discovery.md
  • Optimizing performance? Load references/performance.md
  • Code review or debugging? Load references/anti-patterns.md

MUST load the relevant reference file before writing commercetools API code. For SDK client setup, always start with references/sdk-setup.md.

CRITICAL Priority

PatternFileImpact
Optimistic concurrency & version handlingreferences/sdk-setup.mdEvery update/delete fails without correct version tracking
Cart lifecycle & freeze before paymentreferences/cart-checkout.mdPrice changes during checkout cause order failures
Payment flow — never reuse/delete Paymentsreferences/cart-checkout.mdLost audit trail, double charges, PSP inconsistencies
Extension timeout constraints (2s / 10s)references/extensions-subscriptions.mdEntire API call fails on timeout — affects all clients
Discount stacking & sort orderreferences/promotions-pricing.mdUnexpected pricing, revenue loss, customer complaints
Direct Discounts block Discount Codesreferences/promotions-pricing.mdCodes silently stop working when Direct Discounts exist

HIGH Priority

PatternFileImpact
Client setup & auth flowsreferences/sdk-setup.mdWrong setup causes auth failures and token leaks
Order state machines & returnsreferences/order-management.mdInvalid state transitions, incomplete fulfillment
Customer auth & email verificationreferences/customer-management.mdBroken sign-up/login, unverified accounts
Subscription idempotency & orderingreferences/extensions-subscriptions.mdDuplicate side effects, stale data overwrites
Business unit hierarchies & permissionsreferences/b2b-patterns.mdSecurity gaps, broken approval workflows
Product Search API vs Query APIreferences/search-discovery.md10-100x slower queries on large catalogs
N+1 queries & reference expansionreferences/performance.mdCascading latency on listing pages

MEDIUM Priority

PatternFileImpact
Tax mode configurationreferences/cart-checkout.mdFailed order creation from incomplete tax data
Approval rules & quote lifecyclereferences/b2b-patterns.mdBlocked B2B purchasing workflows
Connect application patternsreferences/extensions-subscriptions.mdDeployment failures, resource constraint issues
Pagination & query optimizationreferences/performance.mdSlow page loads, unnecessary API load
Customer groups & address managementreferences/customer-management.mdWrong pricing tiers, address data issues
Faceting & search performancereferences/search-discovery.mdSlow search responses, poor relevance

Common Anti-Patterns (Quick Reference)

Anti-PatternFileConsequence
Creating a client per requestreferences/anti-patterns.mdMemory leaks, token exhaustion
Not batching update actionsreferences/anti-patterns.mdVersion conflicts under load
Using /products instead of /product-projectionsreferences/anti-patterns.md2x response payload size
Polling instead of Subscriptionsreferences/anti-patterns.mdWasted API quota, delayed detection
Ignoring ConcurrentModification errorsreferences/anti-patterns.mdSilent data loss, corrupt state
Expanding all references "just in case"references/anti-patterns.mdBloated responses, slow queries
Creating empty carts for every visitorreferences/anti-patterns.mdMillions of unused cart resources
Not monitoring Subscription healthreferences/anti-patterns.mdSilent notification failures for 7 days

MCP Complement

Use this skill to understand the right pattern, then use the Developer MCP to look up exact field names and schemas, and the Commerce MCP for CRUD operations.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

commercetools-data

No summary provided by upstream source.

Repository SourceNeeds Review
General

commercetools-merchant-center

No summary provided by upstream source.

Repository SourceNeeds Review
General

commercetools-frontend

No summary provided by upstream source.

Repository SourceNeeds Review