This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
udropship:umarketplace:m2:split-rate-api [2019/10/23 21:37] wtsergo created |
udropship:umarketplace:m2:split-rate-api [2019/10/23 21:48] wtsergo |
||
---|---|---|---|
Line 8: | Line 8: | ||
If you check results of this API call you will notice a presence of udropship_vendor, | If you check results of this API call you will notice a presence of udropship_vendor, | ||
- | vendor_id - reference id of the vendor that this item relates to.\\ | + | **vendor_id** - reference id of the vendor that this item relates to.\\ |
- | udropship_default - indicates if this method selected by default or using previos calls to /// | + | **udropship_default** - indicates if this method selected by default or using previos calls to /// |
Item needs to be treated differently depending on udropship_vendor field value:\\ | Item needs to be treated differently depending on udropship_vendor field value:\\ | ||
- | udropship_vendor=0 - should be skipped. normaly it's a system carrier method that not used in per vendor shipping\\ | + | **udropship_vendor=0** - should be skipped. normaly it's a system carrier method that not used in per vendor shipping\\ |
- | udropship_vendor=-1 - special item that holds vendor information for the following results with udropship_vendor=" | + | **udropship_vendor=-1** - special item that holds vendor information for the following results with udropship_vendor=" |
- | udropship_vendor=> | + | **udropship_vendor=> |
'' | '' | ||
Example: | Example: | ||
Line 140: | Line 140: | ||
}] | }] | ||
</ | </ | ||
+ | |||
+ | ===== Save guest cart totals ===== | ||
+ | |||
+ | Guest cart totals information save uses customized request.\\ | ||
+ | In request we add **shipping_method_all** field which holds per vendor selection of shipping methods | ||
+ | |||
+ | '' | ||
+ | Example: | ||
+ | '' | ||
+ | < | ||
+ | POST / | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }} | ||
+ | </ | ||
+ | '' | ||
+ | RESPONSE | ||
+ | '' | ||
+ | < | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, {" | ||
+ | } | ||
+ | </ | ||
+ |