Skip to content
/ Yuki Public

A php connector for Yuki's Sales and Accounting API (subset)

License

Notifications You must be signed in to change notification settings

FunkyTime/Yuki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

funkytime/yuki

A php connector for Yuki's Sales and Accounting API (subsets), intended to create Sales Invoices and get back payment status.

$invoice = [
    'Reference' => '',
    // ...
    'Contact' => [
        'ContactCode' => '',
        // ...
    ]
    'ContactPerson' => ['FullName' => ''],
    'InvoiceLines' => [
        'InvoiceLine' => [
            'ProductQuantity' => '',
            'Product' => [
                'Description' => '',
                // ...
            ]
        ]
    ]
    ];
];
$YukiSales = new \FunkyTime\Yuki($api_key, 'sales');
$YukiSales->ProcessInvoice($invoice);
$YukiAccounting = new \FunkyTime\Yuki($api_key, 'accounting');
$status = $YukiAccounting->GetInvoiceBalance($inv_reference);
// Result: an array with keys 'openAmount' and 'originalAmount' 

About

A php connector for Yuki's Sales and Accounting API (subset)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages