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

Does X-Cart REST API cover authentication & order processing from extern. mobile app

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-28-2016, 03:55 AM
  kvatchinsky's Avatar 
kvatchinsky kvatchinsky is offline
 

Newbie
  
Join Date: Nov 2016
Posts: 7
 

Default Does X-Cart REST API cover authentication & order processing from extern. mobile app

Hello,

I have a question, if you could help. Can we use x-cart REST API for:

1. How to authenticate (login from external mobile app) linked via REST API to X-Cart?
2. How to process orders from external mobile app connected to X-Cart via REST API?

Does your existing REST API support those, without need to write/add additional PHP script on the server side?
__________________
X-Cart Free 5.3.2.9
Braintree payment gateway 5.3.2.1
MailChimp Integration with Ecommerce-360 support 5.3.2.3
Reply With Quote
  #2  
Old 12-06-2016, 02:01 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Does X-Cart REST API cover authentication & order processing from extern. mobile app

REST API is for manipulating individual records in the database.

Technically you can create orders via this API from third-party apps. However, it is not the recommended way because creating a single order requires a number of database records to be inserted/updated. If any of the API requests fail during the process you may end up with an inconsistent database. Instead, it makes sense to create another module (or extend this one) and add one more API request that will perform all the steps at once on the server.

As for authentication: this is not what the API was designed for. Again, you can directly manipulate user and session data through the API. But the recommended way is getting this coded as was done in the free Wordpress integration module (you can install it and check the source code).
__________________
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 > General 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 12:22 PM.

   

 
X-Cart forums © 2001-2020