Rest API - product published but not created

Hi,

when creating a product via the REST API I encountered a problem: from the activity log the product appears to be published but not created which is rather strange because I don’t think it is possible to publish a product without first having created it.
I extracted the activity logs with Matrixify and the output is as follows:

"Custom App created a new product: <a href=""https://admin.shopify.com/store/store-handle/admin/products/123123123"">Product A</a>.";2024-02-26 12:03:08 +0100;Product;123123123;create;Custom App;Product A|api_client_id|459459459;https://store-handle.myshopify.com/admin/products/123123123
"Custom App included a product on Online Store: <a href=""https://admin.shopify.com/store/store-handle/admin/products/123123123"">Product A</a>.";2024-02-26 12:03:08 +0100;Product;123123123;published;Custom App;Product A|api_client_id|459459459;https://store-handle.myshopify.com/admin/products/123123123
"Custom App included a product on Point of Sale: <a href=""https://admin.shopify.com/store/store-handle/admin/products/123123123"">Product A</a>.";2024-02-26 12:03:09 +0100;Product;123123123;published;Custom App;Product A|api_client_id|459459459;https://store-handle.myshopify.com/admin/products/123123123
Custom App included a product on Point of Sale: Product B.;2024-02-26 12:03:09 +0100;Product;678678678;published;Custom App;Product B|api_client_id|459459459;https://store-handle.myshopify.com/admin/products/678678678

(I changed the references to the store and the product and app ids)
From the log there is no link to the product admin page but I see the product ID which however does not appear to be valid.
Any idea where the problem might be?
During the creation phase I have no exceptions and the published log makes me think that there were none

When you create a product via the REST API, the response should include the product’s ID and other details. Ensure that the API call to create the product is successful and returns a valid response and the CORRECT product ID. If the product creation is successful, you should receive a 201 status code along with the product details in the response.