Skip to content

REST API

Customer lookup

GET /wp-json/wc/v3/dixa/v1/list

Returns WooCommerce customer data formatted for Dixa. Requires manage_woocommerce capability.

Query parameters

Parameter Type Description
email string Look up customer by email address
phone string Look up customer by billing phone number (country prefix stripped)

Exactly one parameter must be supplied. If neither matches a customer, an empty object {} is returned.

Example

curl -u admin:password \
  "https://example.com/wp-json/wc/v3/dixa/v1/list?email=customer@example.com"

Response

The response shape is produced by DixaDataGenerator and mirrors the Dixa End User structure (name, email, phone, orders, subscriptions).