In Dynamics 365 Finance, you can use the credit management capability to define a credit limit at the