weekly_billing_run
PostgREST stored procedure — POST /rest/v1/rpc/weekly_billing_run.
Call it through the Supabase client (RLS and the service role are enforced by the function):
const { data, error } = await supabase.rpc('weekly_billing_run', { p_company_id, p_period_end, p_period_start });
Arguments
| Argument | Type | Required |
|---|---|---|
p_company_id | uuid | yes |
p_period_end | date | yes |
p_period_start | date | yes |
Generated from
specs/supabase.json. The function's behaviour is defined by its SQL migration; this page documents its call signature only.