Connect WooCommerce
curl --request POST \
--url https://api.meum.io/v1/integration/woocommerce/connect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook_url": "https://shop.example.com/wp-json/meum/v1/webhook",
"site_url": "https://shop.example.com",
"plugin_version": "1.2.0",
"wordpress_version": "6.5",
"woocommerce_version": "8.9"
}
'import requests
url = "https://api.meum.io/v1/integration/woocommerce/connect"
payload = {
"webhook_url": "https://shop.example.com/wp-json/meum/v1/webhook",
"site_url": "https://shop.example.com",
"plugin_version": "1.2.0",
"wordpress_version": "6.5",
"woocommerce_version": "8.9"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
webhook_url: 'https://shop.example.com/wp-json/meum/v1/webhook',
site_url: 'https://shop.example.com',
plugin_version: '1.2.0',
wordpress_version: '6.5',
woocommerce_version: '8.9'
})
};
fetch('https://api.meum.io/v1/integration/woocommerce/connect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meum.io/v1/integration/woocommerce/connect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'webhook_url' => 'https://shop.example.com/wp-json/meum/v1/webhook',
'site_url' => 'https://shop.example.com',
'plugin_version' => '1.2.0',
'wordpress_version' => '6.5',
'woocommerce_version' => '8.9'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meum.io/v1/integration/woocommerce/connect"
payload := strings.NewReader("{\n \"webhook_url\": \"https://shop.example.com/wp-json/meum/v1/webhook\",\n \"site_url\": \"https://shop.example.com\",\n \"plugin_version\": \"1.2.0\",\n \"wordpress_version\": \"6.5\",\n \"woocommerce_version\": \"8.9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.meum.io/v1/integration/woocommerce/connect")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"https://shop.example.com/wp-json/meum/v1/webhook\",\n \"site_url\": \"https://shop.example.com\",\n \"plugin_version\": \"1.2.0\",\n \"wordpress_version\": \"6.5\",\n \"woocommerce_version\": \"8.9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meum.io/v1/integration/woocommerce/connect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"webhook_url\": \"https://shop.example.com/wp-json/meum/v1/webhook\",\n \"site_url\": \"https://shop.example.com\",\n \"plugin_version\": \"1.2.0\",\n \"wordpress_version\": \"6.5\",\n \"woocommerce_version\": \"8.9\"\n}"
response = http.request(request)
puts response.read_body{
"store_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_name": "Demo Store",
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"installation_id": "inst_a1b2c3d4e5f678901234",
"site_url": "<string>",
"api_key": "sk_live_EXAMPLE_DO_NOT_USE",
"webhook_secret": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"webhook_url": "<string>",
"webhook_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "ACTIVE",
"credentials_rotated": true,
"payout_configured": true,
"checkout_base_url": "https://pay.meum.io",
"warning": "<string>"
}{
"error": "Payout wallet not configured",
"code": "EXTERNAL_ORDER_INTEGRATION_CONFLICT",
"details": {}
}{
"error": "Payout wallet not configured",
"code": "EXTERNAL_ORDER_INTEGRATION_CONFLICT",
"details": {}
}{
"error": "Payout wallet not configured",
"code": "EXTERNAL_ORDER_INTEGRATION_CONFLICT",
"details": {}
}{
"error": "Payout wallet not configured",
"code": "EXTERNAL_ORDER_INTEGRATION_CONFLICT",
"details": {}
}WooCommerce
Connect WooCommerce
Registers or reconnects a WooCommerce store. Returns a dedicated API key and webhook secret. Uses legacy error shape on some failures.
POST
/
v1
/
integration
/
woocommerce
/
connect
Connect WooCommerce
curl --request POST \
--url https://api.meum.io/v1/integration/woocommerce/connect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook_url": "https://shop.example.com/wp-json/meum/v1/webhook",
"site_url": "https://shop.example.com",
"plugin_version": "1.2.0",
"wordpress_version": "6.5",
"woocommerce_version": "8.9"
}
'import requests
url = "https://api.meum.io/v1/integration/woocommerce/connect"
payload = {
"webhook_url": "https://shop.example.com/wp-json/meum/v1/webhook",
"site_url": "https://shop.example.com",
"plugin_version": "1.2.0",
"wordpress_version": "6.5",
"woocommerce_version": "8.9"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
webhook_url: 'https://shop.example.com/wp-json/meum/v1/webhook',
site_url: 'https://shop.example.com',
plugin_version: '1.2.0',
wordpress_version: '6.5',
woocommerce_version: '8.9'
})
};
fetch('https://api.meum.io/v1/integration/woocommerce/connect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meum.io/v1/integration/woocommerce/connect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'webhook_url' => 'https://shop.example.com/wp-json/meum/v1/webhook',
'site_url' => 'https://shop.example.com',
'plugin_version' => '1.2.0',
'wordpress_version' => '6.5',
'woocommerce_version' => '8.9'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meum.io/v1/integration/woocommerce/connect"
payload := strings.NewReader("{\n \"webhook_url\": \"https://shop.example.com/wp-json/meum/v1/webhook\",\n \"site_url\": \"https://shop.example.com\",\n \"plugin_version\": \"1.2.0\",\n \"wordpress_version\": \"6.5\",\n \"woocommerce_version\": \"8.9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.meum.io/v1/integration/woocommerce/connect")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"https://shop.example.com/wp-json/meum/v1/webhook\",\n \"site_url\": \"https://shop.example.com\",\n \"plugin_version\": \"1.2.0\",\n \"wordpress_version\": \"6.5\",\n \"woocommerce_version\": \"8.9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meum.io/v1/integration/woocommerce/connect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"webhook_url\": \"https://shop.example.com/wp-json/meum/v1/webhook\",\n \"site_url\": \"https://shop.example.com\",\n \"plugin_version\": \"1.2.0\",\n \"wordpress_version\": \"6.5\",\n \"woocommerce_version\": \"8.9\"\n}"
response = http.request(request)
puts response.read_body{
"store_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_name": "Demo Store",
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"installation_id": "inst_a1b2c3d4e5f678901234",
"site_url": "<string>",
"api_key": "sk_live_EXAMPLE_DO_NOT_USE",
"webhook_secret": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"webhook_url": "<string>",
"webhook_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "ACTIVE",
"credentials_rotated": true,
"payout_configured": true,
"checkout_base_url": "https://pay.meum.io",
"warning": "<string>"
}{
"error": "Payout wallet not configured",
"code": "EXTERNAL_ORDER_INTEGRATION_CONFLICT",
"details": {}
}{
"error": "Payout wallet not configured",
"code": "EXTERNAL_ORDER_INTEGRATION_CONFLICT",
"details": {}
}{
"error": "Payout wallet not configured",
"code": "EXTERNAL_ORDER_INTEGRATION_CONFLICT",
"details": {}
}{
"error": "Payout wallet not configured",
"code": "EXTERNAL_ORDER_INTEGRATION_CONFLICT",
"details": {}
}Authorizations
Body
application/json
Response
WooCommerce connected
Credentials returned after a successful WooCommerce connection handshake.