> ## 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).

# Cron / Scheduled tasks

**Cron / Scheduled tasks** tab: URLs to call automatically to sync offers and orders with Mirakl.

![PrestaShop Mirakl Scheduled Tasks](https://storage.crisp.chat/users/helpdesk/website/-/3/f/a/8/3fa8ee645cd13200/screencapture-ps8-common-servi_uglhb0.png)

One configuration (and set of URLs) **per marketplace**: [Multi-marketplace](https://doc.common-services.com/en/article/multi-marketplace-720rdi/).

**Note:** The crontab must be set up by your **host / webmaster**. Common-Services support covers whether the **script** runs (browser test), not server crontab setup.

---

### Step 1 — When to set up cron

Do this **last**, when manual use already works:

* [Export offers](https://doc.common-services.com/en/article/export-offers-7dacds/)
* [Import orders](https://doc.common-services.com/en/article/import-orders-1roj2fa/)
* [Orders](https://doc.common-services.com/en/article/orders-w2n36p/) (statuses)

Do not call scripts too often: follow recommended frequencies.

---

### Step 2 — Open the Cron tab

In Mirakl module configuration → **Cron** tab.

Two modes are shown:

* **PrestaShop Cronjobs (module)** — the native PrestaShop `cronjobs` module is **no longer maintained**. **Do not rely on it** in production. Prefer a real host crontab (or a reliable external scheduler) with **Manual Cron URLs**.
* **Manual Cron URLs** — **recommended**: copy URLs into your host crontab (or external service).



If you have **several shop IDs** on the same marketplace, the module shows **one URL per shop ID** (`selected-shop-id=…`). Configure **each** URL.

---

### Step 3 — Tasks

| Task (module label) | Role | Typical frequency |
| ---- | ---- | ---- |
| **Offers Update** | Updates offers (price / stock, etc.) | ~1 h (business hours) |
| **Offers Update Lite** | Light version: SKU + quantity only | ~1 h |
| **Offers Update - 24H** | Full (`all-offers=1`) | ~24 h |
| **Orders - Acceptation** | Accepts orders on Mirakl | ~1 h |
| **Orders - Import** | Imports accepted orders | ~1 h, ~20 min after acceptation |
| **Orders Status Update - 24H** | Pushes order status to Mirakl | ~24 h |
| **Sync Canceled Orders** | Syncs canceled / closed Mirakl orders | ~2 h |

**Note:** Accept and import may **skip** orders (e.g. out of stock). Also check manually under **Orders → Mirakl**.

Optional settings at the top of the tab (**Cronjobs parameters**) affect some tasks: save after changes.

---

### Step 4 — Test a URL

1. Copy a URL from **Manual Cron URLs**.
2. Paste it in the browser address bar.
3. A **JSON** response appears. Obvious error messages indicate a problem.

If the browser runs the script without a clear error, the next step is crontab setup (webmaster).

---

### Step 5 — Important points

1. Set up cron with someone qualified (host / agency).
2. Cron is the **final** step, after manual validation.
3. Do not over-call scripts (risk of issues).
4. Do not use the PrestaShop **Cronjobs** module as the main solution: it is unmaintained.

## Next

[Export offers](https://doc.common-services.com/en/article/export-offers-7dacds/), [Import orders](https://doc.common-services.com/en/article/import-orders-1roj2fa/), [Orders](https://doc.common-services.com/en/article/orders-w2n36p/), [Contact](https://doc.common-services.com/en/article/contact-yuxwdc/).