Title: API Data Sync for WooCommerce
Author: berkux
Published: <strong>1 ianuarie 2025</strong>
Last modified: 4 septembrie 2026

---

Caută module

![](https://ps.w.org/api-data-sync-for-woocommerce/assets/banner-772x250.png?rev
=3215741)

![](https://ps.w.org/api-data-sync-for-woocommerce/assets/icon-128x128.png?rev=3215743)

# API Data Sync for WooCommerce

 De [berkux](https://profiles.wordpress.org/berkux/)

[Descarcă](https://downloads.wordpress.org/plugin/api-data-sync-for-woocommerce.1.0.zip)

 * [Detalii](https://ro.wordpress.org/plugins/api-data-sync-for-woocommerce/#description)
 * [Recenzii](https://ro.wordpress.org/plugins/api-data-sync-for-woocommerce/#reviews)
 *  [Instalare](https://ro.wordpress.org/plugins/api-data-sync-for-woocommerce/#installation)
 * [Dezvoltare](https://ro.wordpress.org/plugins/api-data-sync-for-woocommerce/#developers)

 [Suport](https://wordpress.org/support/plugin/api-data-sync-for-woocommerce/)

## Descriere

WooCommerce fires an action whenever an order is completed, its status changes, 
or a product is created or updated. This plugin lets you pick one of these events
and define a shortcode that is executed each time the event occurs.

The shortcode receives all relevant WooCommerce data (order, line items, SKUs, or
product details) as a URL-encoded JSON string via the placeholder `#orderdata#`.
Use it to push orders or products to another shop system, an ERP, a CRM, or any 
REST API – for example with the PRO version of the [JSON Content Importer](https://json-content-importer.com/)
or with a shortcode plugin of your own.

#### Features

 * **Event-based trigger** – choose one WooCommerce hook per site:
    - Order thank-you page (`woocommerce_thankyou`)
    - Order completed (`woocommerce_order_status_completed`)
    - Order status changed (`woocommerce_order_status_changed`)
    - Product created or updated (`woocommerce_update_product`)
 * **Shortcode execution** – the configured shortcode runs with the event data injected
   via `#orderdata#`.
 * **Duplicate protection** – orders are marked after a successful sync, so reloading
   the thank-you page does not trigger a second call.
 * **Multisite-aware SKU lookup** – if a product is not found on the current site,
   the other sites of the network are checked.
 * **Logging** – the last 20 events (event, order/product, shortcode result) are
   stored and shown in the admin, with links to the order or product.
 * **E-mail notification** – optionally receive a short e-mail per event with order
   number, event type and shortcode result.
 * **HPOS-compatible** – works with WooCommerce High-Performance Order Storage and
   the block-based Cart/Checkout.
 * **Clean uninstall** – all settings and log data are removed on deletion if you
   opt in.

#### Privacy

The plugin only processes data on your own site. Order and product data are handed
to the shortcode you configure; whether that shortcode sends data to a third party
is up to the shortcode plugin you use. The built-in log stores event type, order/
product ID and shortcode result – no customer names, addresses or e-mail addresses.
The optional notification e-mail contains the order number and the shortcode result,
not the order data itself.

## Instalare

 1. Install and activate WooCommerce.
 2. Install and activate this plugin.
 3. Install a plugin that provides the shortcode you want to run (e.g. JSON Content
    Importer PRO), or write your own.
 4. Go to **API Data Sync  Basic Settings**, choose the WooCommerce event and enter
    the shortcode. Use `#orderdata#` as the placeholder for the event data.
 5. Optionally enable logging and/or enter an e-mail address for notifications.
 6. Place a test order or save a product and check the log.

## Întrebări frecvente

### Which other plugins do I need?

WooCommerce, and a plugin that provides the shortcode to be executed. The JSON Content
Importer PRO plugin can do this out of the box; alternatively you can write a small
plugin yourself that registers a shortcode, reads the `param1` attribute and calls
your API.

### What data does the shortcode receive?

For order events: the complete order (as returned by `WC_Order::get_data()`), all
line items and the resolved SKU per item. For product events: ID, name, descriptions,
prices, SKU, stock status, categories and tags. For status changes: order ID, old
and new status. Everything is passed as one URL-encoded JSON string.

### An order was synced twice. Why?

Each event is only processed once per order. If you switched the trigger from „thank-
you page” to „order completed”, both events can fire for the same order once. Also
note that `woocommerce_order_status_changed` fires on every status change, including
the change to „completed”.

### Does the plugin work with HPOS?

Yes. Compatibility with High-Performance Order Storage and Cart/Checkout Blocks 
is declared, and all order access goes through the WooCommerce CRUD API.

### Where can I get help?

Open a topic in the plugin’s support forum on WordPress.org.

## Recenzii

Nu există nicio verificare pentru acest modul.

## Contributori și dezvoltatori

„API Data Sync for WooCommerce” este un software open-source. La acest modul au 
contribuit următoarele persoane.

Contributori

 *   [ berkux ](https://profiles.wordpress.org/berkux/)

[Tradu „API Data Sync for WooCommerce” în limba ta.](https://translate.wordpress.org/projects/wp-plugins/api-data-sync-for-woocommerce)

### Te interesează dezvoltarea?

[Răsfoiește codul](https://plugins.trac.wordpress.org/browser/api-data-sync-for-woocommerce/),
vezi [depozitarul SVN](https://plugins.svn.wordpress.org/api-data-sync-for-woocommerce/),
sau abonează-te la [jurnalul de dezvoltare](https://plugins.trac.wordpress.org/log/api-data-sync-for-woocommerce/)
prin [RSS](https://plugins.trac.wordpress.org/log/api-data-sync-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Istoric modificări

#### 1.0

 * Declared compatibility with WooCommerce High-Performance Order Storage (HPOS)
   and Cart/Checkout Blocks
 * Orders are now marked after sync to prevent duplicate calls on thank-you page
   reloads
 * Log and notification e-mails no longer contain customer data; log entries link
   to the order or product
 * Log option is no longer autoloaded
 * Admin capability changed from role name to `manage_woocommerce`
 * Simplified nonce handling on the settings page
 * Multisite SKU lookup checks the current site first and stops at the first match
 * Tested with WordPress 7.1, WooCommerce 11.1 and Plugin Check 2.1.0

#### 0.7

 * Tested with WordPress 7.0 and Plugin Check 1.9.0

#### 0.3

 * Initial version

## Meta

 *  Versiunea **1.0**
 *  Ultima actualizare **Acum 3 săptămâni**
 *  Instalări active: **Mai puțin de 10**
 *  Versiune WordPress ** 6.5 sau mai recentă **
 *  Testat până la **7.1.2**
 *  Versiune PHP ** 7.4 sau mai recentă **
 *  Limbă
 * [English (US)](https://wordpress.org/plugins/api-data-sync-for-woocommerce/)
 * Etichete
 * [api](https://ro.wordpress.org/plugins/tags/api/)[rest-api](https://ro.wordpress.org/plugins/tags/rest-api/)
   [sync](https://ro.wordpress.org/plugins/tags/sync/)[webhook](https://ro.wordpress.org/plugins/tags/webhook/)
   [woocommerce](https://ro.wordpress.org/plugins/tags/woocommerce/)
 *  [Vizualizare avansată](https://ro.wordpress.org/plugins/api-data-sync-for-woocommerce/advanced/)

## Evaluări

Nu a fost trimisă nicio recenzie până acum.

[Recenzia ta](https://wordpress.org/support/plugin/api-data-sync-for-woocommerce/reviews/#new-post)

[Vezi toate recenziile](https://wordpress.org/support/plugin/api-data-sync-for-woocommerce/reviews/)

## Contributori

 *   [ berkux ](https://profiles.wordpress.org/berkux/)

## Suport

Ai ceva de zis? Ai nevoie de ajutor?

 [Vezi forumul pentru suport](https://wordpress.org/support/plugin/api-data-sync-for-woocommerce/)