AWS Billing and Cost Management now provides billing context for your account through a new API

AWS Billing and Cost Management now offers the ListBillingViewSegments API, which returns the billing context of your account over a time period you specify. You can use the API to retrieve information about how your accounts are positioned in the billing hierarchy, such as management accounts…

clouddev

Sources