Can I import the additional fields for the product (material group) and the customer (discount group) via the API?

Yes, the additional fields can be inserted as normal via the customFields node for the respective entity via the API.