| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Does X-Cart REST API cover authentication & order processing from extern. mobile app | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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 |
|||||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|