Projekt

Allgemein

Profil

Aktionen

GX-Abgewiesen #68442

geschlossen

ProductID wird über API als AddonValue exportiert, was keinen Zusammenhang mit den Items hat und damit nicht mehr so leicht identifiziert werden kann

Von Till Tepelmann vor etwa 3 Jahren hinzugefügt. Vor fast 2 Jahren aktualisiert.

Status:
Abgewiesen
Priorität:
Hoch
Zugewiesen an:
Tobias Schindler
Kategorie:
REST-API
Zielversion:
Beginn:
Abgabedatum:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Release Notes Langtext:

Beschreibung

ProductID wird über API als AddonValue exportiert, was keinen Zusammenhang mit den Items hat und damit nicht mehr so leicht identifiziert werden kann mit den eigentlichen Produkt in der Bestellung

Die ProductID sollte daher als eigenes Feld im "Items" Array ausgegeben werden.

Erwartetes Ergebnis:

"items": [
        {
            "id": 5,
"productId": 2,
            "model": "12345-s-black",
            "name": "Ein Artikel",
            "quantity": 1,
            "price": 11,
            "finalPrice": 11,
            "tax": 19,
            "isTaxAllowed": true,
            "discount": 0,
            "shippingTimeInformation": "",
            "checkoutInformation": "Checkout information goes here ...",
            "quantityUnitName": "Liter",
            "attributes": [],
            "downloadInformation": [
                {
                    "filename": "Dokument.pdf",
                    "maxDaysAllowed": 5,
                    "countAvailable": 14
                }
            ],
            "gxCustomizerData": [],
            "addonValues": {
                "productId": "2",
                "productType": "1",
                "quantityUnitId": "1"
            }
        }
    ],

Tatsächliches Ergebnis:

"items": [
        {
            "id": 5,
            "model": "12345-s-black",
            "name": "Ein Artikel",
            "quantity": 1,
            "price": 11,
            "finalPrice": 11,
            "tax": 19,
            "isTaxAllowed": true,
            "discount": 0,
            "shippingTimeInformation": "",
            "checkoutInformation": "Checkout information goes here ...",
            "quantityUnitName": "Liter",
            "attributes": [],
            "downloadInformation": [
                {
                    "filename": "Dokument.pdf",
                    "maxDaysAllowed": 5,
                    "countAvailable": 14
                }
            ],
            "gxCustomizerData": [],
            "addonValues": {
                "productId": "2",
                "productType": "1",
                "quantityUnitId": "1"
            }
        }
    ],

ProductID is exported via API as AddonValue, which has no connection with the items and thus can no longer be easily identified with the actual product in the order.

The ProductID should therefore be output as a separate field in the "Items" array.

Expected result:

"items": [
        {
            "id": 5,
"productId": 2,
            "model": "12345-s-black",
            }, "name": "one-item",
            "quantity": 1,
            "price": 11,
            "finalPrice": 11,
            "tax": 19,
            "isTaxAllowed": true,
            "discount": 0,
            "shippingTimeInformation": "",
            "checkoutInformation": "Checkout information goes here ...",
            "quantityUnitName": "liter",
            "attributes": [],
            "downloadInformation": [
                {
                    "filename": "document.pdf",
                    "maxDaysAllowed": 5,
                    "countAvailable": 14
                }
            ],
            }, "gxCustomizerData": [],
            "addonValues": {
                "productId": "2",
                "productType": "1",
                "quantityUnitId": "1"
            }
        }
    ],

Actual result:

"``items'': [
        {
            }, "id",
            "model": "12345-s-black",
            }, "name": "one-item",
            "quantity": 1,
            "price": 11,
            "finalPrice": 11,
            "tax": 19,
            "isTaxAllowed": true,
            "discount": 0,
            "shippingTimeInformation": "",
            "checkoutInformation": "Checkout information goes here ...",
            "quantityUnitName": "liter",
            "attributes": [],
            "downloadInformation": [
                {
                    "filename": "document.pdf",
                    "maxDaysAllowed": 5,
                    "countAvailable": 14
                }
            ],
            }, "gxCustomizerData": [],
            "addonValues": {
                "productId": "2",
                "productType": "1",
                "quantityUnitId": "1"
            }
        }
    ],

Aktionen

Auch abrufbar als: Atom PDF