Skip to content

ffl_woo_sync.woocommerce.customer_import

Source: apps/ffl_woo_sync/ffl_woo_sync/woocommerce/customer_import.py · 1 endpoint(s)

Generated by make api-docs — do not edit by hand.

import_customers

POST /api/method/ffl_woo_sync.woocommerce.customer_import.import_customers

Auth (derived from code): Roles: System Manager

Make a Customer for every online buyer and registered store account the POS does not have.

arg type required default description
dry_run — no 1 Anything but an explicit 0 / false / no (the default is 1) reads the store and reports what would be created, creating nothing.

Returns: dict: {"dry_run", "emails" (distinct addresses found), "existing" (already a Customer), "invalid" (not an email address), "created" (or would be), "phone_dropped" (created without the store's phone, which the POS rejected), "errors": [{email, error}], "sample": [{email, name}] of the first new ones}.

apps/ffl_woo_sync/ffl_woo_sync/woocommerce/customer_import.py:121