Product creation with a single variant that tracks inventory using 2024-04 API

I ran into this today as well. Here is the solution:

  1. Do a productCreate

  2. Do a productVariantBulkCreate with one single variant and strategy REMOVE_STANDALONE_VARIANT

Works like a charm