Skip to content

remcom/factuursturen-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stability-wip Unit Tests MIT License Maintenance

STILL WORK IN PROGRESS

factuursturen-php-client

An unofficial client for the Factuursturen/DigiRechnung API.

Installation

This project can easily be installed through Composer.

composer require ultiweb-nl/factuursturen-php-client

Set-up connection

Prepare the client for connecting to FactuurSturen with your API key and API secret. (Optionally you can send your Partner id as 3rd param.)

$factuurSturen = new \UltiwebNL\FactuurSturenPhpClient\FactuurSturen();
$factuurSturen->setUsername($username);
$factuurSturen->setPassword($password);

Get all invoices

Returns an array of Parcel objects

$invoices = $factuurSturen->invoices()->all();

Get a single invoice

Returns a Parcel object

$invoice = $factuurSturen->invoices()->find(1234);

Create a new invoice

$invoice = $factuurSturen->invoices();

$invoice->company_name = 'Company name';

$invoice->save();

Supported endpoints

  • Categories
  • Profiles

  • Clients
  • Products
  • Invoices
  • Quotation

Not (yet) supported endpoints (feel free to contribute)

  • Invoice Payment
  • Invoice Reminder
  • Saved Invoices
  • Repeating Invoices
  • Balance

  • Get Invoices PDF
  • Get Quotation PDF
  • Country list
  • Taxes
  • Search