Customers

/loyalty-program/v1/customers

The admin customers API allows you to search for customers, view a specific customers data (status, sources and history) and adjust their unclaimed points (increase or decrease).‌

GET: /wp-json/loyalty-program/v1/customers

Search customers based on id, first name, last name, email, meta values, etc.

Requirements:

  • Logged-in user

  • user role with manage_woocommerce user capability

GET: /wp-json-loyalty-program/v1/customers/status/{user_id}

Get customer's points status and sources data.

Requirements:

  • Logged-in user

  • user role with manage_woocommerce user capability

​GET: /wp-json/loyalty-program/v1/customers/history/{user_id}

Get customer's points history data.

Requirements:

  • Logged-in user

  • user role with manage_woocommerce user capability

POST: /wp-json/loyalty-program/v1/customers/points/{user_id}

Adjust customer's unclaimed points.

Requirements:

  • Logged-in user

  • user role with manage_woocommerce user capability

Last updated