Request Data Format | application/json |
---|---|
Request related java object | com.intershop.sellside.rest.common.capi.resource.basket.BasketLineItemResource com.intershop.sellside.rest.common.capi.resourceobject.basket.ExtendedLineItemCollectionRO com.intershop.sellside.rest.common.capi.resourceobject.basket.BasketLineItemRO |
Request Example | Either specify the line items to add: { "elements": [ { "sku":"3934150", "quantity": { "value": 1 } }, { "sku":"859910", "quantity": { "value": 2 } }, { "sku":"4776790", "quantity": { "value": 3 } }, { "sku":"GiftCertificate10", "senderName":"Patricia", "senderEmail":"patricia@test.intershop.de", "recipientName":"Charles", "recipientEmail":"charles@test.intershop.de", "greetingMessage":"Greeting message !!!", "quantity": { "value": 1 } } ] } or specify the quote id to add all items from the quote to the cart: { "quoteID" : "rJ0KDgAhwTUAAAFTEZJOzFK7" } |
Response Data Format | application/json |
Response related java object | com.intershop.sellside.rest.common.capi.resource.basket.BasketLineItemResource com.intershop.component.rest.capi.resourceobject.LinkRO |
Response Example | { "type": "Link", "uri": "PrimeTech-PrimeTechSpecials-Site/-/baskets/XkoKDACqjEkAAAFCHClCMC0h/items" } |
XML Request Data Format | text/xml |
---|---|
XML Request Java Objects | com.intershop.sellside.rest.common.capi.resource.basket.BasketLineItemResource com.intershop.sellside.rest.common.capi.resourceobject.basket.ExtendedLineItemCollectionRO com.intershop.sellside.rest.common.capi.resourceobject.basket.BasketLineItemRO |
XML Request Example | Either specify the line items to add: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <LineItems> <elements> <BasketLineItem> <sku>3934150</sku> <quantity type="Quantity"> <value>1</value> </quantity> </BasketLineItem> <BasketLineItem> <sku>859910</sku> <quantity type="Quantity"> <value>2</value> </quantity> </BasketLineItem> <BasketLineItem> <sku>4776790</sku> <quantity type="Quantity"> <value>3</value> </quantity> </BasketLineItem> <BasketLineItem> <sku>GiftCertificate10</sku> <quantity type="Quantity"> <value>1</value> </quantity> <recipientEmail>charles@test.intershop.de</recipientEmail> <recipientName>Charles</recipientName> <senderEmail>patricia@test.intershop.de</senderEmail> <senderName>Patricia</senderName> <greetingMessage>Greeting message !!!</greetingMessage> </BasketLineItem> </elements> </LineItems> or specify the quote id to add all items from the quote to the cart: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <LineItems> <quoteID>rJ0KDgAhwTUAAAFTEZJOzFK7</quoteID> </LineItems> |
XML Response Data Format | text/xml |
XML Response Java Objects | com.intershop.sellside.rest.common.capi.resource.basket.BasketLineItemResource com.intershop.component.rest.capi.resourceobject.LinkRO |
XML Response Example | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Link type="Link"> <uri>PrimeTech-PrimeTechSpecials-Site/-/baskets/XkoKDACqjEkAAAFCHClCMC0h/items</uri> </Link> |
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.