Home > OS >  How to get invoice details for modern CSP (CSP Azure Plan)
How to get invoice details for modern CSP (CSP Azure Plan)

Time:10-28

I want to show cost management details so for that i need to get invoice details for Modern CSP (Azure Plan). So can someone tell me is there any API or .Net SDK available to get details.

CodePudding user response:

It depends on the CS partner, whether is it a "Direct" or "Indirect".

If it is a direct partner then it has access to Azure Cost Management as explained here, and can enable you to see retail price consumption here.

If it is an indirect partner then they should provide you a way to follow your consumption (through an in-house app, through a consumption export Excel file or any other communication you have agreed and signed with them as a customer).

API to get invoices for a period of time

GET `https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices?api-version=2019-10-01-preview&periodStartDate={periodStartDate}&periodEndDate={periodEndDate}`

Please refer Cost Management REST APIs for more details.

  • Related