POST api/InkXE/AddtoCart
Request Information
URI Parameters
None.
Body Parameters
CartModelName | Description | Type | Additional information |
---|---|---|---|
quoteId | integer |
None. |
|
store | string |
None. |
|
productsData | Collection of CartItem |
None. |
|
action | string |
None. |
|
customerId | integer |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{ "quoteId": 1, "store": "sample string 2", "productsData": [ { "product_id": 1, "qty": 2, "simpleproduct_id": "sample string 3", "options": [ { "xe_color": "sample string 1", "xe_size": "sample string 2", "simpleProductId": 3 }, { "xe_color": "sample string 1", "xe_size": "sample string 2", "simpleProductId": 3 } ], "custom_price": "sample string 4", "custom_design": 5, "custom_image": [ "sample string 1", "sample string 2" ] }, { "product_id": 1, "qty": 2, "simpleproduct_id": "sample string 3", "options": [ { "xe_color": "sample string 1", "xe_size": "sample string 2", "simpleProductId": 3 }, { "xe_color": "sample string 1", "xe_size": "sample string 2", "simpleProductId": 3 } ], "custom_price": "sample string 4", "custom_design": 5, "custom_image": [ "sample string 1", "sample string 2" ] } ], "action": "sample string 3", "customerId": 4 }
application/xml, text/xml
Sample:
<CartModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SellersCommerce.ViewModels.SCOpenApi"> <action>sample string 3</action> <customerId>4</customerId> <productsData> <CartItem> <custom_design>5</custom_design> <custom_image xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </custom_image> <custom_price>sample string 4</custom_price> <options> <CartItemOption> <simpleProductId>3</simpleProductId> <xe_color>sample string 1</xe_color> <xe_size>sample string 2</xe_size> </CartItemOption> <CartItemOption> <simpleProductId>3</simpleProductId> <xe_color>sample string 1</xe_color> <xe_size>sample string 2</xe_size> </CartItemOption> </options> <product_id>1</product_id> <qty>2</qty> <simpleproduct_id>sample string 3</simpleproduct_id> </CartItem> <CartItem> <custom_design>5</custom_design> <custom_image xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </custom_image> <custom_price>sample string 4</custom_price> <options> <CartItemOption> <simpleProductId>3</simpleProductId> <xe_color>sample string 1</xe_color> <xe_size>sample string 2</xe_size> </CartItemOption> <CartItemOption> <simpleProductId>3</simpleProductId> <xe_color>sample string 1</xe_color> <xe_size>sample string 2</xe_size> </CartItemOption> </options> <product_id>1</product_id> <qty>2</qty> <simpleproduct_id>sample string 3</simpleproduct_id> </CartItem> </productsData> <quoteId>1</quoteId> <store>sample string 2</store> </CartModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.