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

Does your productId start with gid://shopify/Product ?