capabilities.work

Upsert Customer by Email

A 3-step recipe with WooCommerce. We can help you get access.

Recipe · 3 steps

Upsert Customer by Email

with WooCommerce · Customer Data Management

Upsert a customer keyed on email, creating it only when missing.

  1. Search existing customers for one matching the supplied email, returning at most one result.
  2. Read the matched customer to confirm the current account details.
  3. Create a new customer account when no existing customer matched the email.
What you'll need to have ready
  • email: Email address used to detect an existing customer.
  • firstName: First name to use when creating a new customer.
  • lastName: Last name to use when creating a new customer.
For your developer

Arazzo workflow woocommerce:upsert-customer-by-email, 3 operations: listCustomers → getCustomer → createCustomer. Specs on APIs.io.