REST API template

Hi,

For a given DocType how to find what are mandatory fields needed to create a document of that docType ?

In the below example if you want to Create a doc for Selling > Customer doctype below is atleast mandatory fields. But in https://erpnext.org/docs/current/models/selling/customer no where it mentioned which are mandatory fields?

{“customer_name”:“SomeNAME”,“customer_type”:“Individual”,“customer_group”:“Commercial”,“territory”:“United States”};

Thanks,