Microsoft Partner Center Billing api rest continuation token issue

Dominguez Cardoso, Daniel 0 Reputation points
2023-02-06T10:43:27.34+00:00

Hi
I am using ms partner center rest api to retrieve large invoice usage line items using the following api:

{baseURL}/v1/invoices/unbilled/lineitems?provider=onetime&invoicelineitemtype=billinglineitems&currencycode={currencycode}&period={period}&size={size}&seekOperation=Next

Most of the requests work ok (passing the corresponding continuation token in the request header)

The problem is that sometimes the response is an 200 status code but with an empty data:

{"totalCount":0,"items":[],"links":{"self":{"uri":"/invoices/unbilled/lineitems?provider=OneTime&invoicelineitemtype=UsageLineItems&currencycode=usd&period=previous&size=2000","method":"GET","headers":[]}},"attributes":{"objectType":"Collection"}}

even if there is a valid continuation token from the previous request.

This seems to be an intermittent issue

Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
317 questions
0 comments No comments
{count} votes