Open benedict-odonovan opened 1 year ago
PETOSS-301
Thanks for raising an issue, a ticket has been created to track your request
Currently in response to GetPrepayments request Xero API returns extra records with types SPEND-OVERPAYMENT and RECEIVE-OVERPAYMENT. Those records can't be deserialized by the library which results in entire recordset being null.
The workaround that seems to work for now is to use where
parameter with value Type=="RECEIVE-PREPAYMENT"||Type=="SPEND-PREPAYMENT"
SDK you're using (please complete the following information):
Describe the bug Calling GetPrepaymentsAsync throws a JSONSerializationException stating:
and a null value is returned.
To Reproduce Steps to reproduce the behavior:
await api.GetPrepaymentsAsync(accessToken, xeroTenantId, fromDate, page: page);
with correct parameters that work for other API endpoints.Expected behavior The results to serialize correctly and not return a null value.