bariew / rivhit
rivhit API
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:api
Requires
This package is not auto-updated.
Last update: 2025-09-01 21:34:45 UTC
README
rivhit API client.
Description
Israeli rivhit invoice API client
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist bariew/rivhit
or add
"bariew/rivhit": "dev-master"
to require the section of your composer.json
file.
Usage
$rivhit = Api::instance($api_token);
// Create Customer
$result = $rivhit->customerNew('my last name', [
'first_name' => 'myname', 'email' => 'my@email.com', 'address' => 'my address', 'phone' => 123123,
]);
// Create Invoice
$result = $rivhit->documentNew(['order' => 123, 'comments' => '', 'price_include_vat' => true, 'email_to' => 'my@email.com', 'email_bcc' => 'my2@email.com',
'digital_signature' => true, 'send_mail' => true, 'items' => [[
'catalog_number' => 123, 'quantity' => 1, 'description' => '', 'price_nis' => 10,
'shipping' => ['description' => 'משלוח', 'price_nis' => 10, 'quantity' => 1],
'discount' => ['description' => '', 'price_nis' => -2, 'quantity' => 1]
]]]);