Skip to content

v1.2.0

Choose a tag to compare

@jtorrents jtorrents released this 26 Mar 09:00
· 4 commits to main since this release
81146e0

What's changed

This release adds full CRUD support for accounts and contacts.

New services

  • AccountService ($client->accounts) — list, create, retrieve, update, delete, unarchive, upload/delete logo
  • ContactService ($client->contacts) — list, create, retrieve, update, delete

Also included

  • New examples: accounts_edocsync.php, accounts_edocexchange.php, contacts.php
  • docs/VERSIONING.md — SDK versioning policy documentation

Quick start

// List accounts
$accounts = $client->accounts->all(['limit' => 10]);

// Create a contact                                                                                                  
$contact = $client->contacts->create($accountId, [
    'contact' => [                                                                                                   
        'name' => 'Customer Company',
        'email' => 'billing@customer.com',                                                                           
        'tin_value' => 'ESB87654321',
        'country' => 'ES',                                                                                           
    ]           
]);                                                                                                                  
                
Full Changelog: https://github.com/B2Brouter/b2brouter-php/compare/v1.1.0...v1.2.0