|
70 | 70 |
|
71 | 71 | - name: Billing |
72 | 72 | description: |- |
73 | | - The billing endpoints allow you to retrieve your account balance, invoices |
74 | | - and billing history. |
| 73 | + The billing endpoints allow you to retrieve your account balance, invoices, |
| 74 | + billing history, and insights. |
75 | 75 |
|
76 | 76 | **Balance:** By sending requests to the `/v2/customers/my/balance` endpoint, you can |
77 | 77 | retrieve the balance information for the requested customer account. |
|
88 | 88 | issued, or credits granted. To interact with invoices, you |
89 | 89 | will generally send requests to the invoices endpoint at |
90 | 90 | `/v2/customers/my/billing_history`. |
| 91 | + |
| 92 | + **Billing Insights:** Day-over-day changes in billing resource usage based on nightly invoice items, |
| 93 | + including total amount, region, SKU, and description for a specified date range. |
| 94 | + It is important to note that the daily resource usage may not reflect month-end billing totals when totaled for |
| 95 | + a given month as nightly invoice items do not necessarily encompass all invoicing factors for the entire month. |
| 96 | + `v2/billing/{account_urn}/insights/{start_date}/{end_date}` where account_urn is the URN of the customer |
| 97 | + account, can be a team (do:team:uuid) or an organization (do:teamgroup:uuid). The date range specified by |
| 98 | + start_date and end_date must be in YYYY-MM-DD format. |
91 | 99 |
|
92 | 100 | - name: Block Storage |
93 | 101 | description: |- |
@@ -831,6 +839,10 @@ paths: |
831 | 839 | get: |
832 | 840 | $ref: "resources/billing/invoices_get_summaryByUUID.yml" |
833 | 841 |
|
| 842 | + /v2/billing/{account_urn}/insights/{start_date}/{end_date}: |
| 843 | + get: |
| 844 | + $ref: "resources/billing/billingInsights_list.yml" |
| 845 | + |
834 | 846 | /v2/databases/options: |
835 | 847 | get: |
836 | 848 | $ref: "resources/databases/databases_list_options.yml" |
|
0 commit comments