Admin-Api und Asscociations – nur bestimmte Felder ausgeben

Hi Liverson,

du musst auch noch die Salutation ins include mitnehmen, sonst wird es nicht mit geladen:

{
    "ids": [
        "7a7c4add99cf49edad7eccc950e93563"
    ],
    "associations": {
        "lineItems": {},
        "addresses": {
          "associations": { 
          	"salutation": {}
          }
        }
    },
    "includes": { 
        "order_line_item": ["id", "label", "quantity"],
        "order_address": ["id", "company", "salutationId", "firstName", "lastName", "street", "zipcode", "city", "countryId", "salutation"]
    }
}

Btw. die Entitäts-Bezeichnung für die includes wird auch in der Doku erklärt:

The includes parameter is defined as an object. The key is always defined as the api alias of an object. The alias of an object is unique in the system. For entities, this is the entity name: productproduct_manufacturerorder_line_item, … 

Gruß

Krispin