Announcement
Collapse
No announcement yet.
JSON API - Create New On Demand Columns from a Module
Collapse
X
-
I must have read this in a hurry because you answered the question about using custom fields in your original response. I'll try that route for now. Thanks!
-
Is there a way to use this to add data to the OrderList_Load_Query response? I thought the JSON API feature was just for providing API access to my module directly, which isn't quite what I'm looking for. We're going to pull orders into our ERP and I have a module that runs MaxMind fraud checks, and I want the fraud score and data to be included with the order data.
Would I just have to have the MaxMind module insert its data into a custom field for the basket/order?
Leave a comment:
-
Yes. Any module can add their own functions to the JSON API. Here is an example:
https://docs.miva.com/json-api/json-api-feature
However if a module has its own data which they want to make available in the standard product/order/customer quries, they could also implement the customfield feature which would make their data available in the Custom Fields On Demand response.Last edited by Brennan; 05-17-19, 12:05 PM.
Leave a comment:
-
JSON API - Create New On Demand Columns from a Module
Does the API allow providing data from custom modules with the order query? I'm assuming this would be in the form of a new "on demand column." If not, whereabouts is that on the roadmap, and how would I need to accomplish this in the interim?
Thanks,
JoshTags: None
Leave a comment: