Contents
List Import Sources - Plugixa Extra Product Options
GET /plugixa-epo/v1/importers
Each plugin the Switch from… dialog can read, with what it holds. A plugin whose data is not on the site counts 0. See Switch from another plugin.
Needs a user with the plugixa_epo_manage capability (signed in with an Application Password, or the login cookie with an X-WP-Nonce header). Administrators and shop managers hold it; see Permissions. Pro only: on the free plugin this route answers 404 rest_no_route.
Request
GET https://your-store.example/wp-json/plugixa-epo/v1/importers
Responses
200 OK.
{
"success": true,
"data": [
{
"id": "woocommerce-product-addons",
"label": "WooCommerce Product Add-Ons",
"groups": 0,
"fields": 0
},
{
"id": "yith-product-add-ons",
"label": "YITH WooCommerce Product Add-Ons",
"groups": 12,
"fields": 47
},
{
"id": "ppom",
"label": "PPOM for WooCommerce",
"groups": 0,
"fields": 0
}
]
}
| Field | Type | Meaning |
|---|---|---|
id |
string |
Source id, for Run Import |
label |
string |
Plugin name |
groups |
integer |
Sets of options found |
fields |
integer |
Fields found |
Errors
| Status | Code | When |
|---|---|---|
401 / 403 |
plugixa_epo_forbidden |
The caller lacks the capability: You are not allowed to do that. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-store.example/wp-json/plugixa-epo/v1/importers" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-store.example/wp-json/plugixa-epo/v1/importers');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-store.example/wp-json/plugixa-epo/v1/importers', {
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share