API Documentation >> API 2.0 Main >> Entities >> ShoppingCart

Shopping Cart Entity

{
    account: {}                             // Authenticated user's entity (with name)
    shippingAddress: {}                     // Address entity for the shopping cart
    shoppingCart: [{                        // Entity for each different seller (reservation)
        idReservation:                      // ID of the reservation    
        seller: {}                          // User entity of the seller (without any additional information)
        article: [{}]                       // Array of article entities
        articleValue:                       // Article value of the reservation
        articleCount:                       // Quantity of articles of the reservation
        shippingMethod: {}                  // Shipping method entity of the reservation
        totalValue:                         // Total value of the reservation
    }]
}

See also: Account of the authenticated user, Seller (User), Shipping Address, Article, Shipping Method entities

Example Entity

{
    account: {
        idUser: 9999
        username: "Maxi"
        country: "D"
        isCommercial: 1
        riskGroup: 0
        reputation: 1
        shipsFast: 1
        sellCount: 254
        onVacation: false
        idDisplayLanguage: 3
        name: {
            firstName: "Maximilian"
            lastName: "Mustermann"
        }
        accountBalance: 9.45
        articlesInShoppingCart: 1
        unreadMessages: 2
    }
    shippingAddress: {
        name: "Maximilian Mustermann"
        extra: "c/o Musterfrau"
        street: "Hauptweg 15"
        zip: "12345"
        city: "Berlin"
        country: "D"
    }
    shoppingCart: [{
        idReservation: 1187748
        isBuyer: true
        seller: {
            idUser: 9998
            username: "Mini"
            country: "IT"
            isCommercial: 0
            riskGroup: 0
            reputation: 0
            shipsFast: 0
            sellCount: 0
            onVacation: false
            idDisplayLanguage: 5
        }
        article: [{
            idArticle: 144491155
            idProduct: 266361
            language: {
                idLanguage: 1
                languageName: "English"
            }
            comments: ""
            price: 0.02
            count: 1
            product: {
                name: "Island (Version 5)"
                image: ".\/img\/cards\/Duel_Decks_Jace_vs._Vraska\/island5.jpg"
                expansion: "Duel Decks: Jace vs. Vraska"
                expIcon: 248
                rarity: "Land"
            }
            condition: "NM"
            isFoil: false
            isSigned: false
            isAltered: false
        }]
        articleValue: 0.02
        articleCount: 1
        shippingMethod: {
            idShippingMethod: 8337
            name: "Priority Letter"
            price: 1.3
            isLetter: true
            isInsured: false
        }
        totalValue: 1.32
    }]
}