Skip to main content

send_invoices

PostgREST stored procedure — POST /rest/v1/rpc/send_invoices.

Call it through the Supabase client (RLS and the service role are enforced by the function):

const { data, error } = await supabase.rpc('send_invoices', { p_acknowledge_unapproved, p_actor, p_company_id, p_invoice_ids });

Arguments

ArgumentTypeRequired
p_acknowledge_unapprovedbooleanno
p_actoruuidyes
p_company_iduuidyes
p_invoice_idsuuid[]yes

Generated from specs/supabase.json. The function's behaviour is defined by its SQL migration; this page documents its call signature only.