Lenful Connect for WooCommerce

Description

Lenful Connect for WooCommerce lets a store administrator send WooCommerce orders to a Lenful seller account for print-on-demand / dropship fulfillment, then view the resulting fulfillment status, carrier tracking and a USD gross-profit comparison inside WooCommerce. It requires WooCommerce and a Lenful account with an API key.

The V8 API currently receives channel inbox drafts, not paid fulfillment orders. A real linked order is necessary for tracking and cost to be available. Full event timelines additionally require a V8 Seller API endpoint /orders/{id}/tracking-events. This plugin will never fabricate events or exchange rates.

External services

This plugin connects your WooCommerce store to the Lenful Fulfillment API, a third-party service operated by Lenful, at https://seller-v8.lenful.com (a fixed address; requests go to /api/public/v1/). The connection is required for the plugin to work: orders are sent to Lenful for fulfillment, and fulfillment status and tracking are read back. No order data is sent to Lenful until a site administrator has saved a Lenful API key and selected a destination Lenful store under Lenful Connect > Settings. The only request made before a store is selected is the request that lists your Lenful stores (see 1 below), which carries the API key but no order data.

What is sent, and when

  1. Listing your Lenful stores. When the administrator saves an API key, opens the Settings page while an API key is saved, or clicks “Test connection”: one request authenticated with the API key (sent as a Bearer token). No order data is included. This request is made as soon as an API key is saved, before any store is selected, and it is also made after the store selection has been cleared, for as long as an API key remains saved and the Settings page is opened (the result is cached for 5 minutes).

  2. Sending an order (order data). Only for an order that has not already been sent to the selected Lenful store:

    • when the administrator clicks “Sync” on one order, or “Sync selected” for up to 20 orders – immediately;
    • only if the administrator has switched on “Automatically sync new orders” (off by default) – when an order is paid or its status changes, and in a background scan that runs every 5 minutes (at most 10 orders per scan).
      Data sent: the WooCommerce order ID; a random identifier generated for this site; the recipient name; the shipping address (street, city, state, postcode, country; the billing address is used when there is no shipping address); the phone number; the customer note; for each order line the product SKU, title and quantity; and the URL of the order’s page in your WordPress admin (only when that URL uses HTTPS; otherwise it is left out). The customer’s email address, payment details and prices are not sent. While the plugin still has the order recorded as sent to the selected Lenful store, later edits or status changes of the same order are not sent again. That record is kept in the order’s meta data, and the status check described in 3 below removes it when Lenful no longer reports the order for the selected store; the order can then be sent again, by the administrator or by automatic sync if it is switched on.
  3. Checking status and tracking. After a store has been selected, and even when “Automatically sync new orders” is off:

    • when the administrator opens Lenful Connect > Orders & Tracking: the WooCommerce order IDs shown on the page and the site identifier are sent to ask which of them Lenful has received;
    • when the administrator clicks “Refresh”, “Sync tracking” or “Refresh tracking”, and in a background task that runs every 5 minutes for orders that were already sent (at most 5 orders per run, each order at most once every 30 minutes): the same status check, then the linked Lenful order’s details, tracking numbers and carrier events are requested using the Lenful order ID.
      The status, Lenful order details, tracking and carrier events that Lenful returns are stored in the order’s meta data in your database.

To stop all order and tracking communication, clear the store selection under Lenful Connect > Settings and save, or deactivate the plugin. While an API key remains saved, opening the Settings page still contacts Lenful to list your stores.

The plugin contains no analytics, advertising or telemetry. Links to 17TRACK (t.17track.net) open in a new tab only when a user clicks them, and contain the tracking number.

This service is provided by Lenful Group Joint Stock Company.
Terms and Conditions: https://lenful.com/blogs/policy-terms-conditions
Privacy Policy: https://lenful.com/blogs/policy-privacy

Installation

  1. Plugins > Add New > Upload Plugin > choose this ZIP and activate.
  2. Lenful Connect > Settings, paste your API key (get it from seller-v8.lenful.com > Profile > API Keys).
  3. Save, select your store from the dropdown, save again. Done!
  4. Go to Orders & Tracking to sync orders manually, or enable auto-sync in Settings.

FAQ

Do I need a Lenful account?

Yes. You need an API key from your Lenful seller account at seller-v8.lenful.com.

Is order data sent automatically?

No. Automatic sync is off by default. You control it under Lenful Connect > Settings.

What data is sent to Lenful?

Order details needed for fulfillment: order ID, recipient name, shipping address, phone, product SKUs and quantities. Customer email, payment details and prices are never sent.

How do I stop sending data to Lenful?

Clear the store selection under Lenful Connect > Settings and save, or deactivate the plugin.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Lenful Connect for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.3.0

  • Added full External Services documentation with Terms and Privacy links
  • Improved output escaping and nonce verification
  • Fixed contributor username

0.1.0

  • Initial submission