# Artikelpreis API Variante

**URL:** <https://forum.shopware.com/t/artikelpreis-api-variante/45108>\
**Category:** Programmierung\
**Created:** [8. April 2017 um 20:28 UTC](https://forum.shopware.com/t/artikelpreis-api-variante/45108 "2017-04-08T20:28:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danwir](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@danwir](https://forum.shopware.com/u/danwir)\
**Post date:** [8. April 2017 um 20:28 UTC](https://forum.shopware.com/t/artikelpreis-api-variante/45108/1 "2017-04-08T20:28:28Z")

</div>

Nabend, steh gerade auf dem Schlauch…

ich wollte den Artikelpreis einer Variante aktualisieren. Damit nicht jedesmal der Preis überschrieben wird wollt ich den Shopware Datenbank VerkaufsPreis laden und mit dem Preis einer CSV verlgeichen.

```
$artikel = $client->get('variants/'.$ordernumber.'?useNumberAsId=true');
...
$articlePreis = $artikel['data']['prices']['0']['price'];
...

```

Damit erhalte ich z.B. einen Preis von 15.084033613445, obwohl in Backend 17.95 steht. Da die beiden Werte ja unterschiedlich sind, schreibe ich wieder die 17.95 rein. Beim nächsten durchlauf habe ich wieder die 15.08…

Wodran liegt das ?

&nbsp;

Grüße Daniel

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![drakon](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/drakon/32/7724_2.png) [@drakon](https://forum.shopware.com/u/drakon)\
**Post date:** [9. April 2017 um 11:57 UTC](https://forum.shopware.com/t/artikelpreis-api-variante/45108/2 "2017-04-09T11:57:17Z")

</div>

Hallo,

ich würde ja mal auf die Mehrwertsteuer tippen: 15,08 x 1,19 ~ 17,95 !

---

<div class="post-metadata">

**Author:** ![danwir](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@danwir](https://forum.shopware.com/u/danwir)\
**Post date:** [9. April 2017 um 15:46 UTC](https://forum.shopware.com/t/artikelpreis-api-variante/45108/3 "2017-04-09T15:46:28Z")

</div>

Hallo,

mhhhhhhhhh logisch…Danke
