Wexlyn
Back to the docs

E-commerce

Connecting WooCommerce

Orders, refunds, customers. Where the credentials live, the connect steps, what becomes what in Wexlyn and how to check it.

WooCommerce is listed under Settings → Integrations → WooCommerce in Wexlyn. Orders, refunds, customers.

What Wexlyn reads

  • Orders as sales: total, currency, products, paid date
  • Refunds, full and partial
  • The customer's email, phone and name from the billing address
  • A wexlyn_visitor_id order meta value when your checkout stores it, for a click-level match

Before you start, in WooCommerce

  1. In WordPress open WooCommerce → Settings → Advanced → REST API and press Add key.
  2. Description Wexlyn, user: an administrator, permissions Read/Write (write is only used to create the webhooks).
  3. Press Generate API key and copy the Consumer key (ck_…) and Consumer secret (cs_…). WooCommerce shows the secret once.

Connect in Wexlyn

  1. Open Settings → Integrations → WooCommerce.
  2. Enter Store URL; Consumer key; Consumer secret. Press Connect. Wexlyn checks the credentials before saving them, encrypted.

In WooCommerce, after connecting

  • Wexlyn creates two webhooks on the store the moment you connect: order.created and order.updated, each signed with the connection's secret.
  • To check them, open WooCommerce → Settings → Advanced → Webhooks; both show as Active with Wexlyn's delivery URL. If the key had no write permission they are missing: delete the connection in Wexlyn, make the key Read/Write and connect again.

Events Wexlyn listens for: order.created, order.updated.

What becomes what

  • An order in status processing or completed becomes a sale dated when it was paid.
  • An order moved to refunded marks the sale refunded; partial refunds reduce it.
  • Pending, failed and cancelled orders are ignored until they are paid.
  • The customer becomes a person tagged !woocommerce, matched to their tracked visits by email or phone.

Check it works

Place a test order in the store (or mark an existing one completed). Within seconds it is listed under Recent deliveries on the WooCommerce page and under CRM → Sales. Press Sync now to import the last 60 days of paid orders.

If something is off

The integration page keeps the last deliveries it received with the event, whether it was processed or ignored, and the reason in plain words (no email or phone on the record, not a sale event, a signature that did not match). Failed deliveries can be replayed after the cause is fixed.

  • Nothing arrives: the URL or credentials in WooCommerce differ from the connection card, or the events are not enabled on that side. For connections Wexlyn registers itself, the card says if WooCommerce refused.
  • People without a source: the person never visited a page with the Universal Script. Their later visits and purchases are attributed once a tracked visit matches their email or phone.
  • Stages do not move: a tag, status or pipeline stage only moves a person when a rule under Settings → Lead stages names it (or, for GoHighLevel and HubSpot, a rule on the connection's own page).