Microsoft Partner Center Billing api rest continuation token issue
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¤cycode={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¤cycode=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