To pass payment terms via API to the invoice creation plugin, these must be specified in the configs of the request:
https://shopware669-sw.docker/api/_action/order/document/e-invoice/create
Example:
{
"orderId": "0195b3fe632d72cf820f2d8b1e3dcd5c",
"type": "e-invoice",
"fileType": "pdf",
"static": false,
"config": {
"paymentTerm": "Payment Term"
}
}