Yeah as @jam_chan mentioned, it seems that the sku field has been forgotten from inventoryItem field in version 2024-04.
Topic summary
API change: In version 2024-07, the Product Variant sku becomes non-editable on the variant and instead mirrors (proxies) the SKU from its InventoryItem.
How to set a custom SKU when creating a variant:
- 2024-07: Use productVariantCreate with the inventoryItem field to provide the SKU via the InventoryItem (SKU is managed there, not directly on the variant).
- 2024-04: Although productVariantCreate already has an inventoryItem field, InventoryItemInput in this version does not include a sku field. Therefore, set SKU using the deprecated sku field on ProductVariantInput.
Clarifications and corrections:
- An initial suggestion that 2024-04’s inventoryItem supports SKU was corrected. In 2024-04, SKU on InventoryItemInput is missing, so you cannot set it there.
Outcome/status:
- Guidance is clear by version: use InventoryItem for SKU in 2024-07; use the deprecated variant sku in 2024-04. No further open questions were identified.
Notes:
- SKU = Stock Keeping Unit. An image was referenced but not essential to the resolution.