X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Multi-Vendor API (https://forum.x-cart.com/showthread.php?t=76887)

redlance 03-24-2019 08:33 PM

Multi-Vendor API
 
Hello, is there an API for multivendor? When I created an order via the REST API, it does not reflect in the vendors transaction. Any solutions or tips? Thank you so much

tony_sologubov 03-25-2019 02:59 AM

Re: Multi-Vendor API
 
Hi @redlance,

Thanks for the message!
REST API for the multi-vendor solution is the same as for X-Cart Business and you can create order by using 'POST' method to _path=order/0 end-point.
https://devs.x-cart.com/rest-api/#request-parameters
https://devs.x-cart.com/rest-api/#model-data-and-types

Let me know if it is any help to you.

Tony

redlance 03-25-2019 03:17 AM

Re: Multi-Vendor API
 
Thank you for quick response, I have succesfully created an order via API. it shows on the Admin and Vendor dashboard, however, it does not show on Vendor Transactions where a vendor can request for a payout right? Thank you

tony_sologubov 03-26-2019 04:06 AM

Re: Multi-Vendor API
 
Hi @redlance,

If you want to register a vendor's commission for the order, you need to add the following part to your REST API request:
Code:

&profileTransactions[0][value]=30&profileTransactions[0][profile][profile_id]=10

where 30 is the value of the vendor's commission and 10 is the vendor's profile ID.

Let me know if it helps you.

Tony

Quote:

Originally Posted by redlance
Thank you for quick response, I have succesfully created an order via API. it shows on the Admin and Vendor dashboard, however, it does not show on Vendor Transactions where a vendor can request for a payout right? Thank you


libyapages 04-14-2019 10:48 AM

Re: Multi-Vendor API
 
Hello guys..

Does X-Cart REST API support all of the modules? shear examples please.

Thanks

tony_sologubov 04-16-2019 01:33 AM

Re: Multi-Vendor API
 
Hi Hakim,

Yes, X-Cart REST API allows accessing the data described in modules
.
If the module introduces a new module, you can access it as follows:
https://devs.x-cart.com/rest-api/#building-_path-for-module-models

If the module adds a new property to an existing model, it will be just returned in the response to pulling this model.

Let me know if it makes sense.

Tony


All times are GMT -8. The time now is 09:30 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.