Skip to main content

Prestashop API errors

Option 1 :

Troubleshooting Prestashop services aren'tChannelDock enabled
Connection Issues

SometimesIf thosePrestashop is not connecting with ChannelDock, it’s usually caused by one of the following issues:

Prestashop may block third-party connections if the webservice settings aren'tare setnot toconfigured properly so prestashop won't authorize a 3rd party to connect to their servers.correctly.

  1. GoLog in to your Prestashop intoAdmin "advancedPanel.

    settings"
  2. ->
  3. "Webservice"

    Navigate andto makeAdvanced Settings → Webservice.

  4. Make sure both options are set onto "Yes".Yes:

    • TheEnable Prestashop’s webservice

    • Enable CGI optionfor isn'tPHP mandatory(optional – only if your server isn'tsupports compatible.it)

⚠️ The CGI option is not mandatory. If your server is not compatible, you can leave it disabled.

Option 2 :2: API key'sKey permissionsPermissions aren'tAre set
Not Configured

After creating a newEach API key in prestashop,Prestashop youmust needhave the correct permissions for ChannelDock to make sure it has all the permissions so that ChannelDock can access everything.your data.

  1. In orderGo to doAdvanced that,Settings go toWebservice.

    "advanced
  2. settings"
  3. -> "webservice" and select

    Select the API key you usedare using in ChannelDock.

    Then
  4. tick
  5. Tick all the permission boxes into thegrant permissionsfull andaccess.

    press
  6. save.
  7. Press Save.

Option 33: :HTAccess HTaccess authorisation
Authorization

Sometimes PrestashopPrestashop’s isn'API is blocked because the .htaccess file doesn’t set up to allow webexternal services to connect to the API.connections. To fix thatthis, you need to make sure thatensure your HTaccess.htaccess containsfile thisincludes instructionthe :following directive:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Once you’ve applied these settings, try reconnecting Prestashop to ChannelDock. If you’re still experiencing issues, please contact our support team.