# Bitte um Hilfe, bin am verzweifeln mit API

**URL:** <https://forum.shopware.com/t/bitte-um-hilfe-bin-am-verzweifeln-mit-api/45254>\
**Category:** Programmierung\
**Created:** [15. April 2017 um 15:27 UTC](https://forum.shopware.com/t/bitte-um-hilfe-bin-am-verzweifeln-mit-api/45254 "2017-04-15T15:27:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![overload](https://avatars.discourse-cdn.com/v4/letter/o/71c47a/32.png) [@overload](https://forum.shopware.com/u/overload)\
**Post date:** [15. April 2017 um 15:27 UTC](https://forum.shopware.com/t/bitte-um-hilfe-bin-am-verzweifeln-mit-api/45254/1 "2017-04-15T15:27:19Z")

</div>

Hallo zusammen,

bin hier echt am Verzweifeln.

Ich versuche eine bestehende Bestellung zu updaten mittels des Aufrufes aus der Doku

[https://developers.shopware.com/developers-guide/rest-api/examples/order/#example-3-update-an-order](https://developers.shopware.com/developers-guide/rest-api/examples/order/#example-3-update-an-order)

bei einem 5.2 System.

Ich verwende als Client ein Programm in C++ Builder mit folgendem Code:

ipwHTTP1-\>User = „apiuser“;  
&nbsp;&nbsp; &nbsp;ipwHTTP1-\>Password = „xxxxxxxxxxxxxxxxxxxxxxxxxxxxx“;  
&nbsp;&nbsp; &nbsp;ipwHTTP1-\>Config(„EncodeURL=true“);  
&nbsp;&nbsp; &nbsp;ipwHTTP1-\>Config(„UserAgent=AmazonFulfillmentv1“);  
&nbsp;&nbsp; &nbsp;ipwHTTP1-\>Config(„CodePage=65001“);  
&nbsp;&nbsp; &nbsp;ipwHTTP1-\>Put ( „[https://www.xxxxxxxxxxx.de/api/orders/4696](https://www.xxxxxxxxxxx.de/api/orders/4696)’, array(‚trackingCode‘ =\> ‚123456789‘,‚comment‘ =\> ‚Neuer Kommentar‘)“);

Als response erhalte ich vom Server:

{„success“:true,„data“:{„id“:4696,„location“:„[https://www.xxxxxxxx.de/api/orders/4696](https://www.xxxxxxxx.de/api/orders/4696)“}}

&nbsp;

ABER: Es ändert sich nichts an der Bestellung.

Hat jemand eine Idee, bin hier echt am Verzweifeln

&nbsp;

Besten Dank!

---

<div class="post-metadata">

**Author:** ![hhmarco73](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@hhmarco73](https://forum.shopware.com/u/hhmarco73)\
**Post date:** [18. April 2017 um 06:23 UTC](https://forum.shopware.com/t/bitte-um-hilfe-bin-am-verzweifeln-mit-api/45254/2 "2017-04-18T06:23:48Z")

</div>

Wenn sich an der Bestellung nichts ändert, dann werden vermutlich die Daten falsch übermittelt. Hast Du es schon einmal per curl versucht?  
curl -X PUT --digest --user apiuser:xxxxxxxxxxxxxxxxxxxxxxxxxxxxx --header „Content-Type: application/json; charset=utf-8“ --data ‚{„trackingCode“:„123456789“, „comment“:„Neuer Kommentar“}‘ [https://www.xxxxxxxxxxx.de/api/orders/4696](https://www.xxxxxxxxxxx.de/api/orders/4696)
