API Documentation
/
Product

Product API

GET /plugin/details/{product-slug}

Return details for a product. How to find a product slug, read here.

header

  • Accept: application/json
  • Authorization: Bearer [access-token] - Access token generated with [/oauth/token].
  • LicenseKey: License key - License key user receive in email when purchase a license.

body

Empty

response

Field subscription will have different fields depending on the payment provider.

  • status code 200
{
  first_name: 'John',
  last_name: 'Doe',
  full_name: 'John Doe',
  email: '[email protected]',
  plan_type: 'month',
  plan_name: 'plan',
  charge_type: 'subscription',
  gateway: 'stripe',
  active: true,
  created_at: '01/27/2022 18:07:48',
  subscribed: true,
  cancelled: true,
  subscription: { 
      stripe_id: 'sub_0KMcNuxCqoZozrbaG75rgcZs',
      stripe_customer_id: 'cus_L2hnYEuIw2p3pE',
      ends_at_formated:'February 27, 2022',
      is_ended: false
  }
}