long working on perfect SuiteCRM installation. Now i want to Open up another thing - automatic Invoice Creation, based on an api call, as i actually are not very into api programming (but i am experienced in php some years ago) so i am running through dark forrest at the moment and propably I need your start-push.
how can i call the api properly for getting done first steps?
how can i start creation of a new invoice by it?
can i also find some services/products in suitecrm database for sum it up with the given numbers of the api call or do i need other ways for this and is it possible to filter these feedback-values?
(e.g i have a product 2018-05-name, 2019-02-name, 2019-08-name, and 2020-04-name it should use 2020-04-name as it is the last?
non dev question: how can i set up a standard due date in suitecrm?
how can i automatically send emails with these invoices? Or can i show all âcreated but not send invoicesâ somehow? (i actually just saw paid and non paid in reports yet)
There are a number of âgotchasâ with this that Iâve highlighted over the past few weeks. Once you have the API working, then you can move forward to the next bit (the invoicing) which will depend on your specific setup.
but the only thing i get is 404 not foundâŚfurthermore, if i adress /Api/access_token (do i need to change that?) also 404, or do i need some rewriting there? :?
Did you manually copy over your .htaccess?
Have you got mod_rewrite enabled?
Have you configured it correctly - you need to have created the keys, and have an https connection for the OAuth to work:
Once you have done this, you may hit another issue in that if you copied the .htaccess over, then it wonât work correctly, as the config in the web installer is not correct. See: https://github.com/salesagility/SuiteCRM/issues/8827
-------8x-------------
I guess that I ought to put the direct URLs here as well for the latest 7.10.x and 7.11.x versions of the software. The .htaccess file relies on mod_rewrite (in apache) to carry out the following URL changes:
Sorry, working on nginx, so htaccess wouldnât work, and reading now the 10th page about how to configure nginx, but had also did the way it was stated here (suiteCRM nginx config) before.
yes, https is working since several time, keys are generatedâŚbut it seems to be an issue before
By the way even before i noticed in composer update that there are several deprecated things in it, can i clean them out or are they neccessary to suite?
I know the feeling - I also like to tidy things up from time to time. Iâd recommend getting it to work before clearing out anything, as if you clear everything out, you could plausibly break something and never know it? Once itâs working you can clear out something step by step. If something breaks then put it back.
If you want it to work on the âstandard example URLSâ, then youâll need to modify the nginx config. This may help:
âŚbut in the spirit of trying to make the system work in the most generic way possible with cross server compatibility, then letâs ignore that and try and go for using the direct URLs
propably the hard way to go if you are not feeling comfortable with a system yet and want to see all unclean details
so i wanted to go the way via index.php/access_token, still it says 404, at me check.php file - âecho âtestâ;â is given back successfull, but echo $output gives me just the standard nginx 404âŚ
could there be sth corrupt in that suitecrm installation or do i need other preparation stuff?
You shouldnât use composer update, it will take software dependencies past the versions that are tested with SuiteCRM. This can generate serious problems.
You should just use composer install --no-dev
And donât worry about the deprecated messages, itâs true they need action, but itâs not clearing them out (that will leave holes in the software), itâs adapting the existing core code to require newer (or different) libraries. This is continuously being done, but it keeps needing more. Itâs the natural flow of software growing old with time
Note that this is a DIFFERENT âPage Not Foundâ to the standard 404 (,but being aware of this gives you a very quick way to test in your browser whether your changes have fixed the problem).
Also note that Api IS CASE SENSITIVE!
If that isnât working, then time to check permissions on the files concerned, and after that youâll need to increase the web server logging levels in order to locate the cause of the issue.