WP REST API integration

You can add Leaky Paywall user meta to the WP REST API user endpoint.  When enabled, this gives you access to the following data:

  • level_id
  • subscriber_id
  • price
  • plan
  • created
  • expires
  • has_access
  • payment_gateway
  • payment_status

Under Leaky Paywall > Settings > General you can choose to enable the REST API setting.  When enabled, this will automatically add the Leaky Paywall meta data to the WP REST API user endpoint.

Here is an example of the returned data.