Related Documents
Document Properties
KbidZ25216
Last Modified23-Jun-2020
Added to KB02-Oct-2013
Public AccessEveryone
StatusOnline
Doc TypeReferences
Product
  • ICM 7.6
  • ICM 7.7
  • ICM 7.8

REST API - Get basket item by ID (until 7.8)

URI

/baskets/<basket-id>/items/<item-id>

Http Method

GET

Short Description

Get the specified line item from basket.

Query Parameters

none

Example Requests

/baskets/XkoKDACqjEkAAAFCHClCMC0h/items/SLgKDACqC9IAAAFCiCdCMC0t

HTTP Status Codes

200 OK

400 Bad Request
       Possible values for header ‘error-key’:

    • basket.basket_id_required.error
    • basket.lineitem.id_required.error

404 Not Found
       Possible values for header ‘error-key’:

    • basket.basket_not_found.error
    • basket.lineitem.not_found.error

Description

Gets the line item with the specified ID.

Status code 404 is returned, if basket or basket item could not be found.

Cartridge

app_sf_rest

Application

B2C Web Shop, SMB Web Shop

Product Version

7.4

Product To Version

7.8

Status

final

JSON

Request Data Format

Request related java object

n/a

Request Example

n/a

Response Data Format

application/json

Response related java object

com.intershop.sellside.rest.common.capi.resource.basket.BasketLineItemResource
com.intershop.sellside.rest.common.capi.resourceobject.basket.BasketLineItemRO

Response Example

{
    "name": "Acer Predator G3 G3610",
    "type": "BasketLineItem",
    "id": "SLgKDACqC9IAAAFCiCdCMC0t",
    "total": {
        "type": "Money",
        "value": 993,
        "currencyMnemonic": "USD"
    },
    "quantity": {
        "type": "Quantity",
        "value": 1,
        "unit": ""
    },
    "thumbnail": {
        "type": "Link",
        "title": "thumbnail",
        "uri": "/INTERSHOP/static/WFS/PrimeTech-PrimeTechSpecials-Site/-/PrimeTech/en_US/1XS/10809311-9609.jpg"
    },
    "longDescription": "The Acer Predator G3 Series has a sophisticated design that glows with gaming passion. Powered by the latest processors and high-end graphics solutions, this awesome machine delivers killer performance, dazzling HD multimedia, and enhanced media management to exceed your gaming expectations and more!<br/><br/><b>Premium design</b><br/>Easy-to-reach, top-side USB placement simplifies cable management and saves space. On the backside, an ergonomically-designed handle provides maximum comfort and leverage for moving the machine around. Up front, the easy-swap hard drive bay (optional) ensures flexible expandability whenever you want.<br/><br/><b>Advanced technology</b><br/>The Predator G3 Series runs a seriously powerful processor, along with ultra-fast DDR3 memory for rapid multitasking. A wide range of top-brand graphics options are available with Microsoft® DirectX® 11, which enhances multimedia and gaming performance for stunning realism.<br/><br/><b>Immersive entertainment</b><br/>Acer Arcade™ Deluxe 4.0 integrates HD entertainment and sharing, and a Blu-ray Disc™ drive rounds out this stunning personal home-theater experience. Furthermore, the HDMI® port (optional) can connect your PC to HD peripherals for yet more avenues to exciting high-definition entertainment!",
    "shortDescription": "Intel Core i5-2400 Processor (6M Cache, 3.10 GHz), 4GB DDR3, 1TB 5400RPM SATA",
    "singleBasePrice": {
        "type": "Money",
        "value": 993,
        "currencyMnemonic": "USD"
    },
    "variationProduct": false,
    "shippingMethod": {
        "type": "Link",
        "title": "Standard Freight Delivery",
        "uri": "PrimeTech-PrimeTechSpecials-Site/-/shippingmethods/MnMKABvH0ykAAAFC00MJ6CtN"
    },
    "shipToAddress": {
        "type": "Address",
        "state": "",
        "country": "Germany",
        "id": "kS4KABvHkwcAAAFCdL4J6CtB",
        "email": "patricia@test.intershop.de",
        "city": "Potsdam",
        "street": "Berliner Str. 20",
        "street2": "",
        "street3": "",
        "mobile": "",
        "phoneHome": "049364112677",
        "firstName": "Patricia",
        "lastName": "Miller",
        "title": "Mrs.",
        "addressName": "Patricia Miller, Berliner Str. 20, Potsdam",
        "countryCode": "DE",
        "postalCode": "14482",
        "phoneBusiness": ""
    },
    "salesTaxes": [
        {
            "type": "AppliedTax",
            "amount": {
                "type": "Money",
                "value": 343.94,
                "currencyMnemonic": "USD"
            },
            "rate": 0.19
        }
    ],
    "inStock": true,
    "isHidden": false,
    "availability": true,
    "bundleProduct": false,
    "product": {
        "type": "Link",
        "description": "Acer Predator G3 G3610",
        "title": "10809311",
        "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/10809311"
    },
    "price": {
        "type": "Money",
        "value": 993,
        "currencyMnemonic": "USD"
    },
    "sku": "10809311"
}

XML

XML Request Data Format

XML Request Java Objects

n/a

XML Request Example

n/a

XML Response Data Format

text/xml

XML Response Java Objects

com.intershop.sellside.rest.common.capi.resource.basket.BasketLineItemResource
com.intershop.sellside.rest.common.capi.resourceobject.basket.BasketLineItemRO

XML Response Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BasketLineItem name="Acer Predator G3 G3610" type="BasketLineItem">
    <availability>true</availability>
    <inStock>true</inStock>
    <isHidden>false</isHidden>
    <product type="Link">
        <description>Acer Predator G3 G3610</description>
        <title>10809311</title>
        <uri>PrimeTech-PrimeTechSpecials-Site/-/products/10809311</uri>
    </product>
    <quantity type="Quantity">
        <value>1</value>
    </quantity>
    <salesTaxes>
        <AppliedTax type="AppliedTax">
            <amount type="Money">
                <currencyMnemonic>USD</currencyMnemonic>
                <value>343.94</value>
            </amount>
            <rate>0.19</rate>
        </AppliedTax>
    </salesTaxes>
    <shipToAddress type="Address">
        <addressName>Patricia Miller, Berliner Str. 20, Potsdam</addressName>
        <city>Potsdam</city>
        <country>Germany</country>
        <countryCode>DE</countryCode>
        <email>patricia@test.intershop.de</email>
        <firstName>Patricia</firstName>
        <ID>kS4KABvHkwcAAAFCdL4J6CtB</ID>
        <lastName>Miller</lastName>
        <mobile></mobile>
        <phoneBusiness></phoneBusiness>
        <phoneHome>049364112677</phoneHome>
        <postalCode>14482</postalCode>
        <state></state>
        <street>Berliner Str. 20</street>
        <street2></street2>
        <street3></street3>
        <title>Mrs.</title>
    </shipToAddress>
    <shippingMethod type="Link">
        <title>Standard Freight Delivery</title>
        <uri>PrimeTech-PrimeTechSpecials-Site/-/shippingmethods/MnMKABvH0ykAAAFC00MJ6CtN</uri>
    </shippingMethod>
    <sku>10809311</sku>
    <thumbnail type="Link">
        <title>thumbnail</title>
        <uri>/INTERSHOP/static/WFS/PrimeTech-PrimeTechSpecials-Site/-/PrimeTech/en_US/1XS/10809311-9609.jpg</uri>
    </thumbnail>
</BasketLineItem>

Disclaimer

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.

Customer Support
Knowledge Base
Product Resources
Tickets