Jump to content

Limiting Contacts and Invoice Get for single Business


 Share

Recommended Posts

We have a connection with multiple businesses (https://api.accounting.sage.com/v3.1/businesses). How do we limit requests through the API for just one business (we know the business ID)? For example, the requests below:

https://api.accounting.sage.com/v3.1/contacts/?items_per_page=200&show_balance=true&contact_type_id=CUSTOMER&exclude_system=true&attributes=credit_limit,name,reference

https://api.accounting.sage.com/v3.1/sales_invoices?items_per_page=200&updated_or_created_since=2022-11-20

There does not seem to be a filter to return the detail from just one business . So, we are getting records from all businesses.

Thanks,

Jamie

 

Link to comment
Share on other sites

Hi Jamie,

I believe you're referring to contacts rather than businesses. Please let me know if I've misunderstood your question.

To obtain the details of a specific contact you would need to use https://api.accounting.sage.com/v3.1/contacts/contact_id?items_per_page=200&show_balance=true&exclude_system=true&attributes=credit_limit,name,reference.

Where contact_id = contact guid.

If you don't know the contact guid you could use the search query parameter

contacts?search=Joe Bloggs&show_balance=true&contact_type_id=CUSTOMER&attributes=credit_limit,name,reference

Thanks

Mark

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...