gohighlevel-php-sdk

Invoices API

$client = GoHighLevel::client($access_token,'2021-07-28')->invoices();

Generate Invoice Number


    $response = $client->generateNumber($altId, $altType);

Get invoice


    $response = $client->get($invoiceId,[
        //parameters
    ]);

Update Invoice


    $response = $client->update($invoiceId,[
        //parameters
    ]);

Delete Invoice


    $response = $client->delete($invoiceId,$altId, $altType);

Void Invoice


    $response = $client->void($invoiceId,$altId, $altType);

Send Invoice


    $response = $client->send($invoiceId,[
        //parameters
    ]);

Record a manual payment for an invoice


    $response = $client->recordPayment($invoiceId,[
        //parameters
    ]);

Create Invoice


    $response = $client->create([
        //parameters
    ]);

List Invoices


    $response = $client->list($altId, $altType, $limit, $offset, [
        //parameters
    ]);

Template


    $template = $client->template
    ();

Create template


    $response = $template->create([
        //parameters
    ]);

List templates


    $response = $template->list([
        //parameters
    ]);

Get template


    $response = $template->get($templateId,[
        //parameters
    ]);

Update template


    $response = $template->update($templateId, [
        //parameters
    ]);

Delete template


    $response = $template->delete($templateId);

Schedule


    $schedule = $client->schedule
    ();

Create Schedule


    $response = $schedule->create([
        //parameters
    ]);

List Schedule


    $response = $schedule->list($altId, $altType, $limit, $offset,[
        //parameters
    ]);

Get a Schedule


    $response = $schedule->get($scheduleId, $altId, $altType);

Update Schedule


    $response = $schedule->update($scheduleId, $altId, $altType, [
        //parameters
    ]);

Delete Schedule


    $response = $schedule->delete($scheduleId, $altId, $altType, [
        //parameters
    ]);

Schedule an invoice


    $response = $schedule->invoice($scheduleId, $altId, $altType, [
        //parameters
    ]);

Schedule an invoice


    $response = $schedule->invoice($scheduleId, $altId, $altType, [
        //parameters
    ]);

Manage Auto payment for an schedule invoice


    $response = $schedule->autoPayment($scheduleId, $altId, $altType, [
        //parameters
    ]);

Cancel a scheduled invoice


    $response = $schedule->cancel($scheduleId, $altId, $altType, [
        //parameters
    ]);

Text2Pay


    $text2pay = $client->text2pay
    ();

Create & Send


    $response = $text2pay->create([
        //parameters
    ]);

Update & Send


    $response = $text2pay->update($id, [
        //parameters
    ]);