My stock dosen't change when I create an order with Api

Topic summary

A developer is experiencing an issue where creating orders via the PrestaShop API using Python succeeds, but product stock quantities are not updating automatically.

Key Details:

  • Orders are being created successfully through the API
  • Stock levels remain unchanged after order creation
  • The developer is using a trial account

Open Questions:

  • Whether trial accounts have permissions to modify stock via API
  • Potential code-related issues causing the stock update failure

The code snippet provided appears corrupted or reversed, making it difficult to identify specific implementation problems. The issue remains unresolved with no responses yet addressing whether this is a permissions limitation or a technical implementation error.

Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

Hello,

I am developing a tool that communicates with API (Prestashop API) using Python. When I try to create an order with a product, everything seems to work fine, but the quantity of the product does not change. I have tried everything, but nothing seems to work.

Details:
Order creation successful with the specified product Stock remains the same

As a trial account, am I able to modify stock through the API? Is there anything wrong with my code?


order_find = shopify.Order.find()
print(order_find)
if len(order_find) >= 1:
    for ord in order_find:
        if ord.source_identifier == order['increment_id']:
            print('La commande est déjà existante')
            break
        else:
            print('La commande vient d\'etre créer')
            response = orderS.save()
            print(response)
else:
    print('La commande vient d\'etre créer')
    response = orderS.save()
    print(response) 

Thank you