Overview
- Learn how to integrate DHL Express Commerce with PrestaShop so you can import PrestaShop orders.
- Specify the status of the orders to be imported.
1. Create webservice access in PrestaShop
Enable PrestaShop's webservice
- Log in to your PrestaShop admin account.
- Under Configure, select Advanced Parameters, then select Webservice.
- Toggle Enable PrestaShop's webservice to YES, then click Save.
Create a new webservice account
- In the top right, click Add new webservice key.
- Click Generate! to generate a new key.
- For the resources listed in the table below, select the appropriate attribute: View (GET) or Modify (PUT). These are the necessary permissions required to import and update orders for the purpose of shipping.
- Click Save.
|
Resource |
View(Get) |
Modify(Put) |
Add(Post) |
Delete(Post) |
|
orders |
X |
X | ||
|
order_carriers |
X |
X | ||
|
currencies |
X |
|||
|
countries |
X | |||
|
states |
X | |||
|
carriers |
X | |||
|
order_details |
X | |||
|
customers |
X | |||
|
addresses |
X | |||
|
messages |
X |
2. Add your webservice in DHL Express Commerce
- In DHL Express Commerce, navigate to Settings > Integrations.
- Click Add a new integration, and select PrestaShop from the list.
- Tick Enable PrestaShop.
- Enter your PrestaShop Store URL.
- Copy and paste the webservice key from your PrestaShop admin page.
- Fill in other details as required.
- Click Save.
3. Map your DHL Express Commerce courier to the PrestaShop Courier ID
To enable order write-back, you'll need to map the couriers in your DHL Express Commerce account to the courier ID in PrestaShop. To do this:
- In DHL Express Commerce, navigate to Settings > Integrations > PrestaShop Settings.
- Click Add a new mapping.
- Enter the associated carrier ID from PrestaShop to the courier in DHL Express Commerce.
You can find the PrestaShop ID in your PrestaShop admin account > Shipping > Carriers. - Click Save, then click the tick icon to confirm.
4. Specify the Status to Import
In DHL Express Commerce, you can specify the status of the order to be imported. Go to your PrestaShop settings page in DHL Express Commerce and enter the status number in the Status to Import field. Add multiple statuses by separating them with a semicolon.
The most common statuses are:
- 3 = Processing
- 4 = Shipped
You can find a list of the different status ID's in your PrestaShop account:
- PrestaShop v1.6.x - Orders > Statuses.
- PrestaShop v1.7.x - Shop Parameters > Order Settings > Statuses.