RevenueCat V2 API client focused on entitlement checks and customer deletion.
Supports global config, per-call overrides, and reusable client structs.
Summary
Functions
Deletes a customer in RevenueCat.
Deletes a customer using per-call options.
Checks whether a customer currently has an active entitlement.
Checks active entitlement using per-call options.
Builds a reusable client struct.
Types
Functions
Deletes a customer in RevenueCat.
Returns :ok when RevenueCat responds with 200, 204, or 404.
@spec delete_customer(String.t(), options()) :: :ok | {:error, term()}
@spec delete_customer(t(), String.t()) :: :ok | {:error, term()}
Deletes a customer using per-call options.
Options override app config for this call.
Checks whether a customer currently has an active entitlement.
configured_entitlement may be an entitlement ID, lookup key, or display name.
Returns {:ok, true | false} on successful API resolution.
@spec has_active_entitlement(String.t(), String.t(), options()) :: {:ok, boolean()} | {:error, term()}
@spec has_active_entitlement(t(), String.t(), String.t()) :: {:ok, boolean()} | {:error, term()}
Checks active entitlement using per-call options.
Options override app config for this call.
Builds a reusable client struct.
Options:
:secret_api_key:project_id:base_url(defaults to RevenueCat V2 API base URL):req_options(passed through toReq.get/2andReq.delete/2)