youngguns-nl / moneybird_php_api

A PHP Library for the MoneyBird API
http://www.moneybird.nl
MIT License
37 stars 14 forks source link

get by id #20

Closed erik-maas closed 12 years ago

erik-maas commented 12 years ago

Get by id only works with the internal moneybird id. Not with the customerId as you would suspect. so: $contact = $contactService->getById(591045); works, but $contact = $contactService->getById(50); doesn't. Though 50 is the customerId used when creating a customer.

pluijm commented 12 years ago

Use Contact_Service::getByCustomerId()

erik-maas commented 12 years ago

Aah that works. Read over it in the docs i gues.