PlusWaseDevelopers

Authentication

Every catalog API call carries the connection's API key in the X-Api-Key header.

curl https://api.pluswase.com/api/v1/store \
  -H "X-Api-Key: plw_live_…"

The key belongs to one connection, so it reads only what is published to that site. There is no other kind of key in this version.

Keep the key on the server. Call the API from PHP (the plugin's plw_api_get() does it for you), never from JavaScript that runs in a shopper's browser. Anyone with the key can read the store's catalog and send orders.

Optional headers

The plugin sends these on every call; PlusWase shows them on the connection page and uses them for the Connect checks. Other clients may leave them out.

HeaderValue
X-PLW-PluginThe PlusWase Hub version, such as 0.2.0.
X-PLW-WCThe WooCommerce version.
X-PLW-CurrencyThe store currency; it must be USD to connect.
X-PLW-SiteThe site's address (home_url()).

Limits

Errors

Errors are JSON with one error field.

{ "error": "Invalid or missing API key." }
StatusMeaning
400The request is malformed (for example a push without JSON).
401The key is missing, wrong, revoked or deleted.
404The product, collection, brand or tag is not published to this site.
422A push was refused (an unknown variant, a number not reserved by this site, a currency other than USD).
429Too many requests; wait for Retry-After.
500, 503PlusWase had a problem; retry later and serve what you cached.