The api don't get new added attributes at the order

ah yes I found the code that must implemented after adding or removing the attribute 

		$metaDataCache = Shopware()->Models()->getConfiguration()->getMetadataCacheImpl();
		$metaDataCache->deleteAll();
		Shopware()->Models()->generateAttributeModels(['s_order_attributes']);