I am getting a list of orders from a site. As a result, I get Orders[x].
In Orders.refunds.transactions.receips.charges there is an item called balance_transaction. In one order this item is a string, and in another order, this item is an object with child properties. In both cases the transaction is exactly the same type. I was using 2020-10 API, and just changed to 2021-01 API, and I am still crashing when attempting to convert this field.
Has anyone else seen this type of discrepency? I am pretty much clueless as to how to proceed!