> For the complete documentation index, see [llms.txt](https://docs.dstnc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dstnc.com/integrations/prestashop.md).

# PrestaShop

## Enable Webservice <a href="#enable-the-webservice" id="enable-the-webservice"></a>

By default, the webservice feature is disabled on PrestaShop and needs to be switched on before the first use.

Via the user interface, go to the PrestaShop back office, open the “**Web service**” page under the “**Advanced Parameters**” menu, and then choose “**Yes**” for the “**Enable PrestaShop Webservice**” option.

<figure><img src="/files/LRlhSPnSy9xcbIFofwME" alt=""><figcaption></figcaption></figure>

## Inventory Sync <a href="#for-inventory-sync" id="for-inventory-sync"></a>

Pulling in your product catalog and syncing inventory updates, such as pricing, stock levels, and description, your will need to provide the following:

1. **Store domain**<br>

2. **Store URL:** You can find the correct store URL by clicking on “**View my store**” in your PrestaShop account and copying the URL from the top.<br>

3. **API key:** To generate an API key, you will need to navigate to **Advanced Parameters > Webservice > Add new webservice key** in your account.<br>

   <figure><img src="/files/I0D9pqgzQFEptxi9VIlc" alt=""><figcaption></figcaption></figure>

4. Click “**Generate**” next to key. This will generate a specific key.<br>

   <figure><img src="/files/bzn7PGO3hEpjOSWNNa5u" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Note!**

Before saving, you will need to allow this set of permissions: \
\
**addresses** (add, view), carts (add, view) \
**categories** (view) \
**combinations** (view) \
**countries** (view) \
**customers** (add, view) \
**images** (view) \
**orders** (add, view) \
**order\_carriers** (view) \
**order\_states** (view) \
**product\_option\_values** (view) \
**product\_options** (view) \
**products** (view) \
**specific\_prices** (view) \
**states** (view) \
**stock\_availables** (view) \
**tags** (view) \
**tax\_rules** (view) \
**taxes** (view) \
**weight\_ranges** (view)
{% endhint %}

Once the permissions have been set, you can click save and copy the API key.

If you have Multi Store enabled, you will need to provide the store ID, which can be found in **Advanced parameters > Multistores.**

Also, if the store is hosted in a subdirectory, **Api path** will need to be configured as **/subdirectory/api** where **subdirectory** is the folder where Prestashop is installed.

## Order Routing <a href="#for-order-routing" id="for-order-routing"></a>

Setting up automatic order routing means that you will be able to view and fulfill orders coming from DSTNC directly from your own PrestaShop store. To enable this, you will need to provide the following:

1. **API path:** (optional)<br>

2. **API key:** This is the same key that was generated for the inventory sync, that was described in the section above.<br>

3. **Language:** To find the language ID, you will need to navigate to **International** under the **Improve section > Localization > Languages.** The number displayed under the ID column of the preferred language is the one needed\
   .

4. **Currency:** The currency ID can also be found under **International > Localization > Currencies.** When clicking into the preferred currency, the URL will display a section, such as “`currencies/`**`1`**`/edit?...`”; the number (in this case 1), is the ID needed.<br>

5. **Carriers:** To find the carrier ID, you will need to navigate to **Shipping** > **Carrier** under the Improve section, and the ID number displayed next to the preferred carrier is the one needed.<br>

6. **Shop:** if you have multistore disabled in your account (**Shop parameters > General**), enter 1 in this field. If you have it enabled, you will need to provide the store ID, that can be found in **Advanced parameters > Multistores.**<br>

7. **Shop group:** Enter 1 here.

8. **Order status:** Order status ID can be found under **Shop parameters > Order settings > Statuses.** The ID number of the preferred status is needed.

9. **Payment module:** The payment module can be found by going to **Payment > Payment methods** and clicking on “**Configure**” next to the preferred method. The URL will display a section such as “`ps_checkpayment`”, this is what needs to be copied.<br>

10. **Payment message:** (Optional)

    <br>

    <br>

\ <br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dstnc.com/integrations/prestashop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
