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

Multi-Vendor API

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-24-2019, 08:33 PM
 
redlance redlance is offline
 

Newbie
  
Join Date: Mar 2019
Posts: 2
 

Default 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
__________________
5.3.6.0
Reply With Quote
  #2  
Old 03-25-2019, 02:59 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #3  
Old 03-25-2019, 03:17 AM
 
redlance redlance is offline
 

Newbie
  
Join Date: Mar 2019
Posts: 2
 

Default 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
__________________
5.3.6.0
Reply With Quote
  #4  
Old 03-26-2019, 04:06 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #5  
Old 04-14-2019, 10:48 AM
 
libyapages libyapages is offline
 

Member
  
Join Date: Mar 2017
Posts: 15
 

Default Re: Multi-Vendor API

Hello guys..

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

Thanks
__________________
Hakim Elkharbash
Reply With Quote
  #6  
Old 04-16-2019, 01:33 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
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 08:11 AM.

   

 
X-Cart forums © 2001-2020