There isn't a public API for what you are looking to do. The merchant can change whatever they want their formatting to look like in the admin and this is properly reflected via those Shopify AJAX API calls.
Here's admin settings I set in my Shop:
Here's the results from some calls to the Shopify AJAX API