POST /wp-json/slswc/v1/connect

Connect a user’s account to the License Server API.  If using the client, this will allow the user’s purchases to be retrieved through the API and thus allowing the customer to download and install products directly from the client.

usernameString requiredusernameThe customer’s username as registered on the license server website. This must be a valid user/customer in WooCommerce.
consumer_keyString requiredsomelongalphanumericstringThe customer’s consumer key
consumer_secretString requiredcs_longalphanumericstringThe customer’s consumer secret.

For the request to be acknowledged and processed, all three parameters must have valid values as retrieved from the ‘My Account > API’ page. On the license server admin settings, the Connect API must be enabled by checking the ‘Enable API’ option under General settings.

Example failed response

    "code": "rest_forbidden",
    "message": "Sorry, you are not allowed to do that.",
    "data": {
        "status": 401

Example successful response

    "auth_user": {}, // auth_user is a WP_User object for the connected user account
    "connected": true,
    "status": "ok"
Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support
Scroll to Top