# Tracking Code aktualiseren

**URL:** https://forum.shopware.com/t/tracking-code-aktualiseren/98857
**Category:** Programmierung
**Tags:** programming
**Created:** [8. März 2023 um 13:38 UTC](https://forum.shopware.com/t/tracking-code-aktualiseren/98857 "2023-03-08T13:38:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![s.lorenz](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@s.lorenz](https://forum.shopware.com/u/s.lorenz)
#### Post date: [8. März 2023 um 13:38 UTC](https://forum.shopware.com/t/tracking-code-aktualiseren/98857/1 "2023-03-08T13:38:04Z")

</div>

Hallo,

hat jemand die richtige Anleitung um den Tracking Code bei Shopware 6.4 zu aktualisieren.

> **[Partially update information about a Order Delivery resource | Admin API](https://shopware.stoplight.io/docs/admin-api/6c4f19d685fa4-partially-update-information-about-a-order-delivery-resource)**
>
> Available since: 6.0.0.0 Powered by Stoplight.

Mit dieser Anleitung komme ich leider nicht weiter.

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [8. März 2023 um 13:44 UTC](https://forum.shopware.com/t/tracking-code-aktualiseren/98857/2 "2023-03-08T13:44:40Z")

</div>

Habe es nicht getestet, aber was soll da nicht funktionieren? Einfach per PATCH den BODY trackingCodes array[string] übergeben und Shopware sollte das dann übernehmen.

---

<div class="post-metadata">

### Author: ![s.lorenz](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@s.lorenz](https://forum.shopware.com/u/s.lorenz)
#### Post date: [8. März 2023 um 13:58 UTC](https://forum.shopware.com/t/tracking-code-aktualiseren/98857/3 "2023-03-08T13:58:56Z")

</div>

Die Route gibt es wohl nicht.  
Die ID im Link ist die OrdersID

{  
„errors“: [  
{  
„code“: „0“,  
„status“: „404“,  
„title“: „Not Found“,  
„detail“: „No route found for "PATCH [https://shopware.example.de/api/order-deliveries/0b086aecddbb4d3d8d276e7beece423b\](https://shopware.example.de/api/order-deliveries/0b086aecddbb4d3d8d276e7beece423b%5C)“"  
}  
]  
}

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [8. März 2023 um 14:00 UTC](https://forum.shopware.com/t/tracking-code-aktualiseren/98857/4 "2023-03-08T14:00:57Z")

</div>

Du benötigst auch nicht die Order-Id, sondern die order-deliveries Id. Eine Bestellung kann ja theoretisch mehrere Sendungen haben.

---

<div class="post-metadata">

### Author: ![s.lorenz](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@s.lorenz](https://forum.shopware.com/u/s.lorenz)
#### Post date: [8. März 2023 um 14:16 UTC](https://forum.shopware.com/t/tracking-code-aktualiseren/98857/5 "2023-03-08T14:16:38Z")

</div>

Perfekt, nun hat es funktioniert.

[https://shopware.example.de/api/order-delivery/31326c7aa42940e18d6c2c76046ea0b3](https://shopware.example.de/api/order-delivery/31326c7aa42940e18d6c2c76046ea0b3)  
PATCH  
JSON:  
{  
„trackingCodes“: [„1234567890“]  
}

Vielen Dank!
