409 Conflict Error when i create inapp purchase product

I can manually create the product from the apple connect dashboard in my in-app purchase tab. I want to use PHP and Symfony to add the product I have in my server created in the in-app purchase tab.

I am using the second version create inapp purchase API https://developer.apple.com/documentation/appstoreconnectapi/create_an_in-app_purchase

but i get the Conflict 409 message while i am posting it. i only have one other product and i am sure the id i am using for this new one is not being used before.

i can get the list of inapp purchase for my app using this api https://developer.apple.com/documentation/appstoreconnectapi/list_all_in-app_purchases_for_an_app i created the token successfuly and i am checking the existance of a product with that product id beforehand and i get no result.

here is a sample code.

$productData = [
            'data' => [
                'type' => 'inAppPurchases',
                'attributes' => [
                    'name' => $package->getName(),
                    'productId' => '34567876545678test',
                    'inAppPurchaseType' => 'CONSUMABLE',
                    'state' => 'READY_TO_SUBMIT',
                    'reviewNote' => $description,
                    'familySharable' => false
                ]
            ]
        ];

        $response = $this->client->request('POST', 'v2/inAppPurchases', [
            'headers' => [
                'Authorization' => "Bearer $token",
                'Content-Type' => 'application/json'
            ],
            'json' => $productData
        ]);

I faced the same issue did you solve it and how pleas?

409 Conflict Error when i create inapp purchase product
 
 
Q