Hi,
So I did get a response from the service desk in the end:
Apparently, yesterday morning, they made a change, and now external IP addresses that access the OJP API need to be whitelisted.
So yesterday afternoon/evening, I set up a static IP address that my backend uses to access the OJP API, and gave it to them. Late this morning, they have now whitelisted it, and the journey planner is working again.
So you'll need to:
1) Set up a static IP address your backend uses to call the OJP API.
2) Let them know about it - I'll privately send you the email addresses and phone number I have for them. I recommend emailing and phoning them until they get it fixed. They got it done relatively promptly, but I didn't get the impression they felt the same urgency I was feeling!
I've just sent them a long email with lots of questions about what exactly happened here and why. Because, as far as I can tell, I either didn't get or missed any communications about this change. And I don't understand why it works okay from my local machine (which isn't whitelisted), and why the journey planner official National Rail Enquires app seems to work, when it accesses the OJP API directly from the app itself (so how can the IP addresses be whitelisted?).
Overall, not an ideal situation! But if you can set up a static IP address to access the OJP, it is fixable.
Jon