View Single Post
  #6  
Old 05-06-2015, 02:37 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: RESTAPI Question to Retrieve Order Details

Thanks for clarification.

Unfortunately, there is no straight-forward way of pulling Company field.

You can achieve this by multiple queries:
1) Make a query to "order/ORDERID" and see the profile_id field in response
2) Make a query to "profile/PROFILE_ID" and see the value in addresses > address_id field in response
3) Finally make a query to "address/ADDRESS_ID" end-point and get the results.

Alternatively, you can extend the REST API module and include the Company info into complex schema.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote