Skip to content

docs(stores): clarify optionChoiceNames is write-only and variant ID mapping is positional#151

Draft
hadarzaguri wants to merge 1 commit into
mainfrom
update-product-with-options-fix
Draft

docs(stores): clarify optionChoiceNames is write-only and variant ID mapping is positional#151
hadarzaguri wants to merge 1 commit into
mainfrom
update-product-with-options-fix

Conversation

@hadarzaguri
Copy link
Copy Markdown
Contributor

Summary

  • Clarifies that optionChoiceNames is for requests only — the API always returns optionChoiceIds in responses, not optionChoiceNames
  • Adds guidance that after a PATCH, variant IDs should be mapped to choices by position (response order matches request order), since optionChoiceIds don't expose an id field for reverse-mapping

Test plan

  • Review doc wording in context of the "Convert a Simple Product to Color Variants" and "Important Notes" sections

🤖 Generated with Claude Code

…mapping is positional

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant