Paddle.Plan.list

You're seeing just the function list, go back to Paddle.Plan module for more information.

Specs

list(keyword()) :: {:ok, [t()]} | {:error, Paddle.Error.t()}

List all of the available subscription plans in your account

Optionally also accepts the parameter plan_id with the value of a Plan/Product ID, to return just the information related to that specific plan.

Examples

Paddle.Plan.list() 
{:ok, [
  %Paddle.Plan{
    billing_period: 1,
    billing_type: "day",
    id: 9636,
    initial_price: %{"USD" => "0.00"},
    name: "Test",
    recurring_price: %{"USD" => "10.00"},
    trial_days: 0
  }
]}