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
|
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 |
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
|
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:
|
Re: Multi-Vendor API
Hello guys..
Does X-Cart REST API support all of the modules? shear examples please. Thanks |
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 07:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.