Hi Ranjeet,
Good day!
Here’s a comprehensive guide to help you fetch invoices from Microsoft Advertising using the API, covering prerequisites, & API Access authentication, Bing Ads API for Billing Information, and resources:
1. Prerequisite Steps & API Access
Before making API calls:
Microsoft Advertising Account Ensure you have a valid Microsoft Advertising account with billing access.
- Developer Token Request a developer token by following the https://free.blessedness.top/en-us/advertising/guides/get-started?view=bingads-13#get-developer-token article.
- Access Token (aka Authentication Token) - Get the token by following the steps mentioned in https://free.blessedness.top/en-us/advertising/guides/get-started?view=bingads-13#access-token article.
- Roles & Permissions
- You need Super Admin or Standard User roles to access billing data.
2. Bing Ads API for Billing Information
- Customer Billing Service defines an Application Programming Interface (API) that you can use to get billing documents, insertion orders, and monthly spend for an account.
| Service Operation | Description | Request Limits |
|---|---|---|
| GetBillingDocuments | Gets the specified billing documents. | 25 BillingDocumentInfo |
| GetBillingDocumentsInfo | Gets a list of objects that contains billing document identification information, for example the billing document identifier, amount, and account identifier. | Not applicable. |
3. Resources
Any API tools supporting XML/REST can be used. Recommendation will be SOAP UI for XML and POSTMAN for REST.
I hope this helps.
Regards,
Manoj