# WakeMyCart integration reference — 1.1.24

Version 1.1.24 changes optional Free preview navigation; the integration contracts below are unchanged from 1.1.23. The matched current pair is Free and Pro 1.1.24; Pro requires Free 1.1.22 or later.

The current normal engine uses the v2 routes below. Legacy cloud shopper APIs are not for new integrations; migrated stores reject them.

Recovery in Free 0.13.0 and later runs entirely through the local WordPress API without a WakeMyCart account or monthly contact quota. Account endpoints below remain authenticated and serve optional account services and Pro licensing.

## Account service

| Route | Method | Access and behavior |
| --- | --- | --- |
| `/api/workspace` | GET | Account session. Local-mode account, registration, entitlements and coarse health. No shopper/cart records. Legacy compatibility responses may include grants or recorded aggregate usage; current Free and Pro plugins do not report contact usage. |
| `/api/stores` | POST | Verified owner. Register `{name,url}` and return a connection code. New registrations use the local engine. |
| `/api/stores/:id/registry` | PUT | Owner password/MFA. Edit name/URL; URL changes require reconnection. |
| `/api/stores/:id/connection-code` | POST | Owner password/MFA. Obtain the current connection code. |
| `/api/stores/:id/disconnect` / `reconnect` | POST | Owner password/MFA. Revoke/renew account connection. Local Free continues independently. Account-side disconnection revokes account-service access; it does not pause the WordPress sender or remove an already accepted local Pro activation. Use Disconnect inside WordPress to clear that activation and pause recovery. |
| `/api/stores/:id/delete` | POST | Owner password/MFA and exact name. Remove a disconnected registration while preserving issued capacity. Unexpired legacy compatibility blocks removal. |
| `/api/account/download/pro` | GET | Eligible paid account session. Private Pro ZIP; no public Pro static path. |
| `/api/control/allocations/:period` | PUT | Legacy compatibility only: Agency owner monthly allocation. Current Free and Pro do not request allocations; issued historical capacity cannot move mid-month. |

Account signup, verification, login, password/email change, MFA and billing endpoints retain their documented account authorization. Check the account and pricing pages for current registration and payment availability.

## Store control protocol

`POST /api/v2/pair` accepts the connection code, exact store URL, installation UUID, protocol and plugin versions. Subsequent requests bind HMAC-SHA256 to protocol, store, installation, key ID, HTTP method, exact path, timestamp, nonce and SHA-256 of raw JSON, joined with newlines. Send `X-WMC-Store`, `X-WMC-Installation`, `X-WMC-Key-ID`, `X-WMC-Time`, `X-WMC-Nonce`, and `X-WMC-Signature`. Replayed, stale, mismatched or disconnected requests are rejected.

| Suffix under `/api/v2/stores/:id/` | Method | Contract |
| --- | --- | --- |
| `entitlements` | GET | RSA publisher-signed plan, capabilities, store/installation/epoch and expiry; refreshing this document does not initially unlock Pro |
| `pro-activation` | POST | Explicit `{site_url,activation_request_id,confirm:true}`; checks eligible plan and registered site, then returns a short-lived publisher-signed activation receipt bound to this site, store, installation and epoch |
| `quota` | POST | Legacy compatibility only; current Free and Pro do not call this route. `{period,allocation_revision,unlimited_contacts?,free_unlimited_contacts?}`; signed grant with carried usage and additional capacity. Updated Free does not need a grant. |
| `usage` | PUT | Legacy compatibility only; current Free and Pro do not report aggregate contact usage. `{period,grant_id,report_seq,contacts_used}`; monotonic aggregate only |
| `health` | PUT | `{engine_protocol,plugin_versions,engine_state,attention_codes}`; fixed coarse codes only |
| `updates/free` / `updates/pro` | GET | Publisher-signed manifest; Pro requires an eligible plan |
| `download-ticket` | POST | `{edition,version}`; short-lived bearer ticket for the exact package path |
| `disconnect` | POST | Empty body; revoke this connection |
| `migration/prepare`, `manifest`, `page`, `refresh`, `ack` | POST | Reviewed legacy handover; bounded encrypted export pages and verified counts/digest |

`GET /api/v2/packages/:edition/:version` requires the ticket in `Authorization: Bearer …`. Package bytes must match the signed SHA-256; never put ticket secrets in URLs. Normal control payloads reject added shopper fields. Normal controls and migration page requests have separate per-store rate limits.

Updated clients advertise `X-WMC-Free-Unlimited: 1`. Pre-update Free clients keep their historical 100-contact compatibility grant; this negotiation never unlocks Pro. The retired hosted sender retains its historical cap until migration.

## Merchant WordPress REST

The local workspace uses `/wp-json/recoverkit/v2/ui/…` or equivalent `?rest_route=` paths. Every UI request requires the WordPress login, current `X-WP-Nonce`, and the appropriate local recovery capability. Free implements one complete reminder; the separate, initially activated Pro add-on implements multi-message sequences and premium routes. Free reminder settings and Pro sequence settings are independent. The shared safety setting `monthlyReminderLimit` accepts an integer from 1–100 and starts at 3 on new installations. It applies across a shopper’s carts in the store’s UTC calendar month, is not a paid contact quota, and does not expand previously recorded shopper permission.

| Suffix | Purpose |
| --- | --- |
| `workspace`, `capture`, `pause` | Local view and explicit capture/sending switches; workspace includes review-invitation eligibility and its public destination |
| `review-invitation` | POST `{action:"review"\|"later"\|"never"}` with the normal WordPress login, REST nonce and recovery view/edit permissions. Stores the current user’s invitation choice for this site, shared by Free and Pro |
| `pro/activate` | POST `{confirm:true}`. Initial Pro unlock requires a WordPress administrator with both `manage_options` and `update_plugins`, plus the normal login, REST nonce and recovery permission |
| `provider`, `test-email`, `email-branding` | Shared merchant sender and one-recipient test infrastructure; basic Free branding |
| `sequence` | PUT: Free accepts `{reminder,monthlyReminderLimit?}`. The separately installed Pro handler accepts `{steps,discountPercent?,monthlyReminderLimit?}`. See the distinct request shapes below |
| `email-design` | PUT: separate Pro designer/settings implementation; not a locked Free designer |
| `flows`, `flows/:id`, `flows/simulate`, `offers`, `coupon-safeguards` | Versioned flow edits, simulation and local offers |
| `carts/:id/details` | GET. Pro read-only retained cart decisions and current holds; no send/retry/configuration action |
| `reports/weekly-summary`, `reports/weekly-summary/request-code`, `reports/weekly-summary/verify` | Pro administrator summary status/disable and explicit self-profile email verification; off by default |
| `reports/flows`, `reports/orders`, `reports/products`, `reports/experiments`, `reports/client` | Detailed local reporting and Agency branded HTML download |
| `health`, `queue`, `queue/:id/resolve` | Guided checks and explicit uncertain-delivery review |
| `migration/…` | CartFlows settings preview and local-engine legacy import |
| `advanced-settings`, `connection`, `disconnect`, `refresh` | Compatibility allowlists, uninstall choice and account binding |
| `agency/…` | WordPress staff/client permissions, templates, target credentials and reviewed rollout |

`POST disconnect` clears the locally accepted Pro activation, pauses local recovery, removes local account credentials and cached current/future grants, and preserves usage/frequency/history even if the remote service is unavailable. Its `remoteCleanupConfirmed` and `message` fields distinguish successful remote removal from local-only detachment. Re-enabling Free remains an explicit merchant action. Reconnecting or refreshing alone does not unlock Pro; use `POST pro/activate` again.

The optional review invitation uses only local scheduled-reminder activity: at least 30 days since the first attempt and five attempts across three UTC days. Designer test emails and delivery or purchase outcomes do not determine eligibility. `later` postpones the invitation for 14 days; `review` and `never` dismiss it permanently for that WordPress user and site. A review click does not assert that a review was submitted. The explicit destination is https://wakemycart.com/review/; the plugin does not poll WordPress.org or transmit usage counters.

`PUT sequence` retains its established route name but uses a genuine singular Free model. `reminder` contains only `delayHours` (integer 1–168), `subject` (1–140 characters without line breaks), `body` (1–4,000 characters) and optional `templateId` (`classic`, `minimal` or `friendly`; default `classic`). Unknown fields are rejected. The response is `{ok:true,reminder,monthlyReminderLimit}`. Saving a Free-shaped reminder while Pro is active leaves Pro sequence settings unchanged; saving a Pro sequence leaves the Free reminder unchanged. The monthly safety setting is shared.

```json
{
  "reminder": {
    "delayHours": 4,
    "subject": "Your cart at {{store}}",
    "body": "You can return to the items you saved when you are ready.",
    "templateId": "classic"
  },
  "monthlyReminderLimit": 3
}
```

Free `POST test-email` accepts `{reminder,design?,locale?,recipient?}` with the same singular reminder and basic branding fields. Pro’s own handler accepts `{step,design?,stepIndex?,locale?,recipient?}` for a selected sequence stage. Send only the shape appropriate to the editor; Free no longer accepts a dormant array of sequence steps. One optional `recipient` email address is allowed; when omitted it uses the current WordPress user’s profile email. Invalid or multiple addresses are rejected. Validated test requests are limited to one per minute per WordPress user, even if the later mail handoff fails. Tests use illustrative sample content and do not enroll a cart, change shopper permission or change the weekly-summary recipient. Use an inbox you control. Provider acceptance is not proof of inbox delivery.

`PUT email-branding` accepts only `logoUrl` (HTTPS or empty), `accentColor` (six-digit hex) and `useBrandColors` (boolean). The shared handler saves these basic Free branding fields. `PUT email-design` is implemented by the separate Pro add-on and saves its own advanced design settings. Free previews, tests and delivery use its basic designs; premium templates, language variants and design processing live in Pro.

Pro `PUT coupon-safeguards` validates ordinary decimal minimum subtotals and positive integer product IDs. Scientific-notation strings such as `"1e3"` and malformed IDs such as `"123oops"` are rejected, rather than silently coerced. Failed validation does not partially save safeguards. Pro flow enrollment reads current committed flow, experiment and assignment state under its existing synchronization; a conflicting or unverifiable state fails safely instead of creating a stale enrollment.

`/recoverkit/v2/email-webhook/:revision` verifies the provider signature over the raw request with that provider revision’s secret. `/recoverkit/v2/agency/flow` requires HTTPS, authenticated WordPress application-password access and local flow permission. Temporary `/recoverkit/v2/legacy-link` verifies the old shared secret, timestamp and single-use nonce. Public local recovery/unsubscribe links use opaque purpose-bound tokens and confirmation; they never require a paid license to unsubscribe.


## Browser account requests

Account actions require the signed-in user and the relevant store or owner permission. Mutations use the same HTTPS origin, JSON Content-Type and X-RecoverKit-Client: dashboard. Sensitive changes require password confirmation and MFA when enabled. Never place connection codes, session cookies, application passwords or download tickets in public scripts, URLs or support messages.

## Legacy integrations and troubleshooting

Older cloud installations can use signed v1 compatibility routes until migration is complete. Do not send shopper data to those routes from a new local installation. Follow https://wakemycart.com/docs/migration before changing an existing integration.

A failed authentication or integrity check must not be bypassed. Check the store connection, current plugin version and request timestamp. Contact support with the operation, time and redacted error; exclude shopper records and credentials. Protocol and data-flow guidance: https://wakemycart.com/docs/developer-api and https://wakemycart.com/docs/data-privacy.

## Pro activation continuity

Pro 1.1.22 needs matching Free 1.1.22 and one successful explicit initial activation on each installation. Old Pro 1.1.21 is incompatible with Free 1.1.22. The receipt must be valid when first accepted. After that, ordinary subscription expiry or a temporary account-service outage does not expire local Pro tools. A different site or installation must activate separately. Explicit Disconnect in WordPress clears the local receipt and pauses recovery while preserving saved work. Free recovery remains available without an account; activation does not enable capture, sending or discounts. Issued coupon validation, unsubscribe and privacy operations retain their independent safeguards.

## 1.1.22 setup and diagnostics

The plugin workspace includes a local setup guide and sender diagnostics. Account connection remains optional for Free. The sender test does not enroll a shopper or start recovery; inspect its result and the destination inbox separately. Capturing carts, enabling sending, connecting an account and activating Pro remain separate actions. Pause sending before a capture-only test: enabling capture does not change an already enabled sending switch. Recorded purchase, consent and pause checks cannot recall a message already accepted by a provider. Run tests against a disposable store and never submit real shopper details to the account protocol.

## Launch edition split
Free edits and sends one reminder per eligible opted-in recovery enrollment. It contains no multi-message sequence waiting for payment. Pro owns sequence validation, enrollment, timing and progression, while sharing the queue, transport, duplicate protection and shopper-safety infrastructure. Pro-handled carts do not also receive a competing Free reminder. Pro jobs stop safely if their handler is unavailable or incompatible; they are not converted to Free reminders. Basic results, sender tests, consent and unsubscribe stay Free. No paid contact-volume cap or Free trial expiry applies; provider limits and charges remain separate.

## Matched upgrade and retained history

Pause sending, take a current backup and have the matched private Pro ZIP available before replacing Free. Replace Free first, then Pro in a separate request, without uninstalling either plugin or bulk-updating them in one request. Older settings are preserved for review; migration can pause legacy multi-message or offer configurations. Review the saved reminder, Pro sequences, queue and any migration hold before explicitly resuming. Unknown legacy message ownership remains held rather than guessed. Do not restore a historical database or erase usage history to bypass a safety hold.

The Plugins.shop byline and optional More Plugins catalogue are presentation additions. The catalogue is bundled; opening it does not install plugins or change recovery settings. External product links leave the WordPress workspace only when selected.
