Sage / sageone_api_php_sample

Sage One API PHP Sample
MIT License
43 stars 32 forks source link

How can we query (get) particular contact without id i mean by name of type like vendor or customer? #21

Closed corientdev closed 7 years ago

corientdev commented 7 years ago

How can we query (get) particular contact without id i mean by name of type like vendor or customer?

cpetschnig commented 7 years ago

You can do a https://api.columbus.sage.com/global/sageone/accounts/v3/contacts?search=contact+name which searches contact name, company name or reference. Also, there is .../contacts?email=yourname@example.com. To only get customers or vendors, do .../contacts?contact_type_id=CUSTOMER or .../contacts?contact_type_id=VENDOR.