0

I am getting order details using REST API. For this, I have written one controller in my custom module. When I am calling that controller from browser, it's is returning response but when I setup CRON for that then it is not returning any response.

Is there any special setting from CRON for REST API? Please help me how to get data of order using REST API from CRON?

1 Answer 1

1

Yes, I got solution for this. I changed my code from Controller to Model and after that it's working fine. Controller is only for web so it was not working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.