# API order-address ohne Angabe vom Land?

**URL:** <https://forum.shopware.com/t/api-order-address-ohne-angabe-vom-land/108589>\
**Category:** Shopware 6 (German)\
**Created:** [9. Februar 2026 um 13:52 UTC](https://forum.shopware.com/t/api-order-address-ohne-angabe-vom-land/108589 "2026-02-09T13:52:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [9. Februar 2026 um 13:52 UTC](https://forum.shopware.com/t/api-order-address-ohne-angabe-vom-land/108589/1 "2026-02-09T13:52:07Z")

</div>

Bei der API-Abfrage mit ‚/api/search/order-address‘ stelle ich eben fest, dass hier die Angabe vom Lieferland fehlt (Feld country ist leer), obwohl die dazugehörige ID in der DB-Tabelle ‚order\_address‘ steht.

Wie komme ich denn jetzt hier an das korrekte Lieferland wenn der Kunde ggf. mehrere Lieferadressen hat?

---

<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:** [9. Februar 2026 um 14:13 UTC](https://forum.shopware.com/t/api-order-address-ohne-angabe-vom-land/108589/2 "2026-02-09T14:13:10Z")

</div>

Country is eine Assoziation.

Wenn du diese haben möchtest, musst du diese nachladen.

Ausgehend von order, bei oder-address einfach anpassen.

```auto
{
  "filter": [
    { "type": "equals", "field": "orderNumber", "value": "S10000" }
  ],
  "associations": {
    "deliveries": {
      "associations": {
        "shippingOrderAddress": {
          "associations": {
            "country": {},
            "countryState": {}
          }
        }
      }
    },
    "billingAddress": {
      "associations": {
        "country": {},
        "countryState": {}
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [9. Februar 2026 um 14:25 UTC](https://forum.shopware.com/t/api-order-address-ohne-angabe-vom-land/108589/3 "2026-02-09T14:25:37Z")

</div>

Hätte jetzt angenommen das die gleich mit kommt, aber ich schau mal. Danke schon mal!

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [9. Februar 2026 um 14:40 UTC](https://forum.shopware.com/t/api-order-address-ohne-angabe-vom-land/108589/4 "2026-02-09T14:40:55Z")

</div>

Im Prinzip reicht schon das:

```auto
"associations": {
  "country": {}, "countryState": {}
}

```

---

<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:** [9. Februar 2026 um 14:45 UTC](https://forum.shopware.com/t/api-order-address-ohne-angabe-vom-land/108589/5 "2026-02-09T14:45:16Z")

</div>

> [@R4M](#):
>
> Hätte jetzt angenommen das die gleich mit kommt

Assoziationen werden nie automatisch geladen, außer diese werden in den EntityDefinition explizit geladen.

> **[One to One associations ​ - Adding Data Associations | Shopware Documentation](https://developer.shopware.com/docs/guides/plugins/plugins/framework/data-handling/add-data-associations.html?utm_source=chatgpt.com#one-to-one-associations)**
>
> In this guide you will learn how to add associations to your entities. Every possible kind of association will be covered here, so "One to One", "Many to One" or "One to Many" respectively, and "Many to many" associations. | Documentation for...

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [11. März 2026 um 14:45 UTC](https://forum.shopware.com/t/api-order-address-ohne-angabe-vom-land/108589/6 "2026-03-11T14:45:39Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
