Projekt

Allgemein

Profil

GX-Bug #59700

Von Moritz Bunjes vor mehr als 5 Jahren aktualisiert

In der JSON-Response fehlt im Array der graduatedPrices die Menge (threshold). Sattdessen steht dort fälschlicherweise die taxClassId 

 ~~~ 
 { 
     "productId": 1, 
     "price": 84.0336, 
     "taxClassId": 1, 
     "groupPrices": [ 
         { 
             "customerGroupId": 1, 
             "groupPrice": 75.6303, 
             "graduatedPrices": [ 
                 { 
                     "graduatedPrice": 73.9496, 
                     "taxClassId": 1 
                 }, 
                 { 
                     "graduatedPrice": 72.2689, 
                     "taxClassId": 1 
                 }, 
                 { 
                     "graduatedPrice": 70.5882, 
                     "taxClassId": 1 
                 }, 
                 { 
                     "graduatedPrice": 68.9076, 
                     "taxClassId": 1 
                 } 
             ] 
         }, 
         { 
             "customerGroupId": 2, 
             "groupPrice": 67.2269, 
             "graduatedPrices": [ 
                 { 
                     "graduatedPrice": 65.5462, 
                     "taxClassId": 1 
                 }, 
                 { 
                     "graduatedPrice": 63.8655, 
                     "taxClassId": 1 
                 }, 
                 { 
                     "graduatedPrice": 62.1849, 
                     "taxClassId": 1 
                 }, 
                 { 
                     "graduatedPrice": 60.5042, 
                     "taxClassId": 1 
                 } 
             ] 
         }, 
         { 
             "customerGroupId": 3, 
             "groupPrice": 58.8235, 
             "graduatedPrices": [ 
                 { 
                     "graduatedPrice": 57.1429, 
                     "taxClassId": 1 
                 }, 
                 { 
                     "graduatedPrice": 55.4622, 
                     "taxClassId": 1 
                 }, 
                 { 
                     "graduatedPrice": 53.7815, 
                     "taxClassId": 1 
                 }, 
                 { 
                     "graduatedPrice": 52.1008, 
                     "taxClassId": 1 
                 } 
             ] 
         } 
     ], 
     "_links": { 
         "taxClass": "http://shop.domain/api.php/v2/tax_classes/1" "http://mob.dev.gambio-server.net/feature/src/api.php/v2/tax_classes/1" 
     } 
 } 
 ~~~ 

 Außerdem sollte bei der Abfrage eines Preises für eine bestimmte Menge einer bestimmten Kundengruppe nicht nur der Preis, sondern zusätzlich auch noch die Steuerklassen-ID (taxClassId) mit zurückgegeben werden.

Zurück