Skip to content

How do you create a new blank Invoice and add Manual Payment? #208

@crazyserb

Description

@crazyserb

I've looked at the DataService.php and InvoiceService.php and it seems like something like this SHOULD be allowed but I am getting errors saying it's not:

$order = array(
'contactID' => $contactIDNumber,
'name' => $ORDER_DESC,
'orderDate' => $datetime,
'leadAffiliateID' => '0',
'saleAffiliateID' => '0',
);
$invoiceIDNumber = $infusionsoft->data()->add('Invoice', $order);
$update = $infusionsoft->invoices->addManualPayment($invoiceIDNumber, $order_total, $datetime, $payment_type, $payment_desc, 0);

Any suggestions on how to do this?

Just need to add a blank invoice and then a manual payment to it, as all payments are done outside of InfusionSoft, just need a record of them in there.

Please help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions