GET /billing/v2/account_customers/{customer_id}/mtd_invoice
Get the current month-to-date estimate. This endpoint has two different responses. Under normal circumstances, it generally takes less than 5 seconds to generate but in certain cases can take up to 60 seconds. Once generated the month-to-date estimate is cached for 4 hours, and is available the next request will return the JSON representation of the month-to-date estimate. While a report is being generated in the background, this endpoint will return a 202 Accepted response. The full format of which can be found in detail in our billing calculation guide. There are certain accounts for which we are unable to generate a month-to-date estimate. For example, accounts who have parent-pay are unable to generate an MTD estimate. The parent accounts are able to generate a month-to-date estimate but that estimate will not include the child accounts amounts at this time.
Authorization: API token with at least Billing permissions.
Servers
- https://api.fastly.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
customer_id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
host |
String | No |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
month |
String | No |
2-digit month. |
year |
String | No |
4-digit year. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.