2017 © Pedro Peláez
 

library billecta-api-php-client

A PHP client library for accessing Billecta API

image

elitan/billecta-api-php-client

A PHP client library for accessing Billecta API

  • Wednesday, June 13, 2018
  • by elitan
  • Repository
  • 2 Watchers
  • 0 Stars
  • 116 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 231 % Grown

The README.md

billecta-api-php-client

A PHP client library for accessing Billecta API., (*1)

Link to the Billecta API https://app.billecta.com/docs/v1/index, (*2)

Install

composer require elitan/billecta-api-php-client, (*3)

Next, you need a api secret (SecureToken). This is a bit of a hassle. Read more here under SecureToken: https://app.billecta.com/docs/v1/StartAPI#authentication, (*4)

Example

<?php

require_once __DIR__ . '/vendor/autoload.php';

$base_uri = 'https://apitest.billecta.com';
$api_secret = 'api secret';

$billecta = new \Billecta\Billecta($base_uri, $api_secret);

// get all companies
$companies = $billecta->getCreditors();

var_dump($companies);

// set what company we are working with
$billecta->setCreditorPublicId('creditor_public_id');

// create debtor (customer)
$debtor = Array(
    'Name' => 'Joe Doe'
);
$customer = $billecta->createDebtor($debtor);

var_dump($customer);

Functions



// MiSC $billecta->setCreditorPublicId($creditor_public_id); // CREDITORS aka COMPANIES $billecta->getCreditors(); // DEBTORS aka CUSTOMERS $billecta->createDebtor($debtor); $billecta->createDebtors($debtors); $billecta->getDebtor($debtor_public_id); $billecta->getAllDebtors(); $billecta->deleteDebtor($debtor_public_id); $billecta->updateDebtor($debtor); $billecta->getDebtorByExternalId($external_id); $billecta->getDebtorEvents($debtor_public_id); // PRODUCTS $billecta->createProduct($product); $billecta->updateProduct($product); $billecta->deleteProduct($product_public_id); $billecta->getProduct($product_public_id); $billecta->getAllProducts(); $billecta->getProductByExternalId($external_id); // INVOICES $billecta->createInvoice($invoice); $billecta->updateInvoice($invoice, $invoice_public_id); $billecta->getInvoice($invoice_public_id); // Retreives all drafts/attested and unpaid invoices. $billecta->getOpenInvoices(); // Retreives all invoices that have a closed/full payment date between the specified from and to dates. $billecta->getClosedInvoices($from_date, $to_date); $billecta->getOpenInvoicesByDebtor($debtor_public_id); $billecta->getClosedInvoicesByDebtor($debtor_public_id, $from_date, $to_date);

The Versions

13/06 2018

dev-master

9999999-dev

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

13/06 2018

v0.1.20

0.1.20.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

10/06 2018

v0.1.9

0.1.9.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

04/06 2018

v0.1.8

0.1.8.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

01/06 2018

v0.1.17

0.1.17.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

01/06 2018

v0.1.6

0.1.6.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

01/06 2018

v0.1.7

0.1.7.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

31/05 2018

v0.1.4

0.1.4.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

31/05 2018

v0.1.5

0.1.5.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

26/10 2017

v0.1.3

0.1.3.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

25/10 2017

v0.1.2

0.1.2.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

19/08 2017

v0.1.1

0.1.1.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

19/08 2017

v0.1.0

0.1.0.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

 

by Johan Eliasson

billecta

18/08 2017

v0.0.2

0.0.2.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

  • php >=5.3.0

 

by Johan Eliasson

billecta

18/08 2017

v0.0.1

0.0.1.0

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

  • php >=5.3.0

 

by Johan Eliasson

billecta

18/08 2017

dev-add-license-1

dev-add-license-1

A PHP client library for accessing Billecta API

  Sources   Download

The Requires

  • php >=5.3.0

 

by Johan Eliasson

billecta