question

jesyuan avatar image
0 Votes"
jesyuan asked ·

Invoice Details - UsageBasedLineItem vs DailyUsageLineItem

While analyzing a CSP customer's invoice, we came across something strange. It seems like the list of DailyUsageLineItems only reflect overage quantity, not any quantity that's been covered by some included quantity.

Their list of UsageBasedLineItems contained lines that had some included quantity that partially covered their consumption. However, when analyzing their DailyUsageLineItems, none of them seemed to reflect the quantity covered by inclusion. Summing up all their consumed quantity for a particular resource equaled the overage quantity present in their UsageBasedLineItems. Is this intended for CSP invoices?

Included is a snippet from their invoice, there are 2 lines for LRS Data Stored with some consumed quantity, yet their UsageBasedLineItems only reflect the overage.

alt text


partner-center-apicsp-api
4.png (4.6 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DennisGuo-0699 avatar image
0 Votes"
DennisGuo-0699 answered ·

Hi,

The DailyUsageLineItem and UsageBasedLineItem have different properties.

Example:

The UsageBasedLineItem contains the Consumed​Quantity property, Included​Quantity property and OverageQuantity property.

The DailyUsageLineItem has Consumed​Quantity property, no Included​Quantity property and OverageQuantity property.

The InvoiceLineItemType of DailyUsageLineItem returns UsageLineItems(Daily usage information associated with an invoice. This information does not contain data about cost per use).

The InvoiceLineItemType of UsageBasedLineItem returns BillingLineItems(Billing line items associated with an invoice. Contains information such as cost per use, tax charged, etc.).

The following article for your reference.

https://docs.microsoft.com/en-us/dotnet/api/microsoft.store.partnercenter.models.invoices.invoicelineitemtype?view=partnercenter-dotnet-latest



· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Clear to me now. Thank you!

0 Votes 0 · ·
DennisGuo-0699 avatar image
0 Votes"
DennisGuo-0699 answered ·

Hi,

The DailyUsageLineItem and UsageBasedLineItem have different properties.

Example:

The UsageBasedLineItem contains the Consumed​Quantity property, Included​Quantity property and OverageQuantity property.

The DailyUsageLineItem has Consumed​Quantity property, no Included​Quantity property and OverageQuantity property.

The InvoiceLineItemType of DailyUsageLineItem returns UsageLineItems(Daily usage information associated with an invoice. This information does not contain data about cost per use).

The InvoiceLineItemType of UsageBasedLineItem returns BillingLineItems(Billing line items associated with an invoice. Contains information such as cost per use, tax charged, etc.).

The following article for your reference.

https://docs.microsoft.com/en-us/dotnet/api/microsoft.store.partnercenter.models.invoices.invoicelineitemtype?view=partnercenter-dotnet-latest



· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.