Debtor API Keys and Accounts on Hold  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Debtor API Keys and Accounts on Hold

Postby SBarnes » Wed Dec 11, 2019 6:14 pm

Hi Mike,

will a debtor account that is on hold or trading status of inactive with an api key still login or not?

I realise I can create a request filter to make it happen if it doesn't exist but thought it better to ask before reinventing the wheel.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1618
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Debtor API Keys and Accounts on Hold  Topic is solved

Postby Mike.Sheen » Wed Dec 11, 2019 6:35 pm

SBarnes wrote:will a debtor account that is on hold or trading status of inactive with an api key still login or not?

I realise I can create a request filter to make it happen if it doesn't exist but thought it better to ask before reinventing the wheel.


Hi Stuart,

Yes, it will still allow the login if the debtor has a trading status of inactive or on hold.

You can, as you mentioned, use a request filter to prevent that - or you can via a plugin hook into the business logic SaveEnd SaveEnding event of a debtor and disable all API Keys for the debtor.

I don't think us by default disallowing login if the trading status is inactive or their account on hold is entirely the best approach - as you may want to still allow some access, or altered behaviour. Some people might want inactive debtors or on hold still be able to get a list of outstanding invoices and things like that. One should maximise the chances of outstanding accounts being paid!

Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756


Return to REST API

Who is online

Users browsing this forum: No registered users and 1 guest