> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://doc.common-services.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Scheduled Tasks - Amazon Marketplace Plus

## Modules > Amazon > Scheduled Tasks

To ensure the proper functioning of the Amazon Marketplace module, it is essential to correctly configure your scheduled tasks (cronjobs).

| Note: do not forget to configure the [cronjobs parameters](https://doc.common-services.com/en/article/configuring-cronjobs-parameters-amazon-marketplace-plus-1c19fyu/)

---

### ⚠️ Important Recommendation

**We no longer recommend using the "PrestaShop Cronjobs" module** available on Addons or GitHub. This module is **no longer maintained or supported by PrestaShop**, and may cause unexpected issues.

We recommend configuring your scheduled tasks directly on your **server** using `crontab`, or by using a **reliable external service** such as:

* [https://cron-job.org](https://cron-job.org)
* The scheduling system provided by your hosting provider (if available)

---

### Note – Amazon Marketplace **Plus (SaaS)**

If you are using the **Amazon Marketplace Plus (SaaS)** version, scheduled tasks are **already configured on our servers**.  
👉 You only need to **activate them** from the module's "Scheduled tasks" tab.

---

### List of Key Scheduled Tasks

Each Amazon marketplace configured in the module must have **its own scheduled tasks**.

#### Report Listing Inventory – URL to fetch & save data report listing inventory.

It records which offers already exist in your Amazon account.

This helps the module decide:

* If the offer already exists → the module simply updates it (price/stock).  
* If the offer does not exist and you have enabled the [Matching](https://doc.common-services.com/en/article/sending-syncing-offers-amazon-marketplace-plus-1pz0psa/#3-matching) option → the module tries to match it to an Amazon product using its EAN/UPC.  
* If a match is found → Amazon adds the offer to your account without creating a new product.  

||| If the scheduled task "Report Listing Inventory" is not executed, the module cannot synchronize offers. You will then see this error: [This SKU has not been listed on Amazon](https://doc.common-services.com/en/article/error-this-sku-has-not-been-listed-on-amazon-amazon-marketplace-plus-1cex9jk/) (From version 5.4.08).  

||| ⚠️ Important distinction: if matching is applied to an offer that already exists, Amazon may overwrite some product details (e.g. color, size).  
||| 👉 This cron is essential to prevent such issues: it allows the module to know whether an offer already exists and to choose the correct action (update vs matching).  

* **1 task per marketplace**  
* **Recommended frequency**: every **4 hours**  

![](https://storage.crisp.chat/users/helpdesk/website/-/3/f/a/8/3fa8ee645cd13200/screenshot676_3v0v8c.jpg)
![](https://storage.crisp.chat/users/helpdesk/website/-/3/f/a/8/3fa8ee645cd13200/screenshot677_1tn040o.jpg)
---

#### Synchronization – URL to sync offers

Updates **stock** and **price** on Amazon.

* **1 task per marketplace**
* **Recommended frequency**: every **hour**

---

#### Orders – URL to import orders

Imports new **Amazon orders** into PrestaShop.

* **1 task for unified Europe**, or **1 task per country** outside Europe
* **Recommended frequency**: every **hour**

⚠️ Warning: this process may be blocked if some products are out of stock. Check the pending order list regularly.

---

#### Orders – URL to send status

Updates **order statuses** (e.g., shipped) on Amazon.

* **1 task for unified Europe**, or **1 task per country** outside Europe
* **Recommended frequency**: every **4 hours**

---

## Testing a Scheduled Task

To verify that a script is working correctly:

1. Copy the URL provided by the module in the **Scheduled Tasks** tab
2. Paste the URL into your web browser’s address bar
3. Check that no error appears

Example:  
![Cron URL Example](https://storage.crisp.chat/users/helpdesk/website/-/3/f/a/8/3fa8ee645cd13200/prestashop-amazon-marketplace-_1vgpuj7.jpg)

> If a message such as “Error” appears, it means the script failed to execute properly.

---

## Best Practices

1. **Only a qualified person** (webmaster, IT provider, etc.) should configure these cronjobs. This type of setup **is not covered by module support**, as it depends on your server or third-party cron service.

2. **Set up cronjobs only after the module is fully functional** and tested. It is the final step of the setup process.

3. **Follow the recommended execution intervals**. Calling these scripts too frequently can disrupt the normal operation of the module, and Amazon applies request quotas (e.g., max requests per hour).
