REST API for fields list

Hi,

I’m providing an app to import customer data from a Shopify store to our service. I was wondering if there is an API endpoint through which I can get the list of all fields (and if possible, metafields too) available for the customer object and its meta information such as the type of field and the maximum length of data allowed of the field. This is so we can provide field mapping while importing customers.

Thanks!

Unfortunately, there is no Shopify official JSON schema available for this.