Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

REST API access to Orders

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 09-12-2014, 02:12 PM
 
Rafiqel Rafiqel is offline
 

Member
  
Join Date: Sep 2008
Posts: 21
 

Default REST API access to Orders

I would like to access/modify orders their status and products using the REST APIs in x-cart 5.x what path/model should I use for the queries?

thanks in advance for your help!
__________________
xcart 5.1.5 [CentOS]
Parapharmacie citymall.ma
Reply With Quote
  #2  
Old 09-14-2014, 09:08 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: REST API access to Orders

I believe these examples should help you:
http://kb.x-cart.com/display/XDD/REST+API+documentation#RESTAPIdocumentation-Requestexamples

For orders just change "product" in requests to "order".
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 09-15-2014, 06:02 PM
  while.e.kyote's Avatar 
while.e.kyote while.e.kyote is offline
 

Senior Member
  
Join Date: Mar 2013
Posts: 136
 

Default Re: REST API access to Orders

Any chance that can get ported back to 4.6.x?
__________________
X-Cat 4.5.4 & (1/2)
Live June 1, 2013.
Reply With Quote
  #4  
Old 09-15-2014, 09:19 PM
 
Rafiqel Rafiqel is offline
 

Member
  
Join Date: Sep 2008
Posts: 21
 

Default Re: REST API access to Orders

Quote:
Originally Posted by qualiteam
I believe these examples should help you:
http://kb.x-cart.com/display/XDD/REST+API+documentation#RESTAPIdocumentation-Requestexamples

For orders just change "product" in requests to "order".
Thanks Alex,
Is there a way to do filter on a get using attributes like ordernumber?
__________________
xcart 5.1.5 [CentOS]
Parapharmacie citymall.ma
Reply With Quote
  #5  
Old 09-16-2014, 05:46 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: REST API access to Orders

We have done this to one of our clients. API feature for orders, customers and inventory update. It is pretty much needed for their mobile app, inventory management and portal to manage all at one place.

If you need any help, please drop an email to sales@mercuryminds.com

Quote:
Originally Posted by while.e.kyote
Any chance that can get ported back to 4.6.x?
Reply With Quote
  #6  
Old 09-16-2014, 09:08 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: REST API access to Orders

Quote:
Originally Posted by Rafiqel
Is there a way to do filter on a get using attributes like ordernumber?

There is no function to filter by data fields yet, however you can read/update data by the ID:
Code:
... $product = $client->get('product/1')->send()->json(); ...
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #7  
Old 09-16-2014, 01:56 PM
 
Rafiqel Rafiqel is offline
 

Member
  
Join Date: Sep 2008
Posts: 21
 

Default Re: REST API access to Orders

The ID makes a lo of sense for Products, it is meaningless for orders as what I noticed is that we create a new order entry even if the user does not get it through checkout. on the other hand the ordernumber reflects real orders in the system and should be the one that is used as the "ID"
__________________
xcart 5.1.5 [CentOS]
Parapharmacie citymall.ma
Reply With Quote
  #8  
Old 09-18-2014, 10:42 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: REST API access to Orders

As far as I know there is an improvement planned for the upcoming 5.1.6 version.
So, I believe you will be able to get orders by their number after 5.1.6 is released.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:44 AM.

   

 
X-Cart forums © 2001-2020