Adding invoice document to order not working

Thank you for your reply.

Added an attachement with the console log.

 

{errors: [{code: "0", status: "500", title: "Internal Server Error",…}]}
errors: [{code: "0", status: "500", title: "Internal Server Error",…}]
0: {code: "0", status: "500", title: "Internal Server Error",…}
code: "0"
detail: "Attempted to call an undefined method named "getSalesChannelId" of class "Shopware\Core\Framework\Api\Context\AdminApiSource"."
status: "500"
title: "Internal Server Error"