Don't forget to deal with errors gracefully when Operating with the PrestaShop API. Make sure to check the status code of the response and deal with any errors which might be returned. It is also a good idea to log error messages for debugging uses. Underneath is a non-exhaustive list https://www.hrms-systems.com