Couldnt find how to add customer contacts via the SDK.
Regards
Couldnt find how to add customer contacts via the SDK.
Regards
public function testClientWithContactPost()
{
$ninja = new InvoiceNinja($this->token);
$ninja->setUrl($this->url);
$client = $ninja->clients->create([
'name' => 'Brand spanking new client',
'contacts' => [
[
'first_name' => 'first',
'last_name' => 'last',
'send_email' => true,
'email' => '[email protected]',
],
]
]);
}
Thank you so much for your fast response!
Amazing team!
Supported by Invoice Ninja and Event Schedule