03-30-2023 09:03 AM
This started on 2023-03-23 and has not happened before.
The GetOrders call began to return Refunds twice, although it has a slightly different timestamp the actual refund was only issued once. The duplicate always contains an exclamation mark as part of the ReferenceID, thankfully so we can easily identifiy these.
I am seriously wondering why? I could not find anything in the Trading API docs or the changelogs about this. For now we are ignoring these refunds. But I'm glad that we caught this early since it causes serious issues in our system - and potentially others relying on and trusting this data so beware!
[Refunds] => stdClass Object
(
[Refund] => Array
(
[0] => stdClass Object
(
[RefundStatus] => Succeeded
[RefundType] => PaymentRefund
[RefundTo] => username
[RefundTime] => 2023-03-26T15:40:58.000Z
[RefundAmount] => -6.99
[ReferenceID] => 123456789-123456789!123456789
[FeeOrCreditAmount] => 0.0
)
[1] => stdClass Object
(
[RefundStatus] => Succeeded
[RefundType] => PaymentRefund
[RefundTo] => username
[RefundTime] => 2023-03-26T15:41:10.000Z
[RefundAmount] => -6.99
[ReferenceID] => 123456789
[FeeOrCreditAmount] => 0.0
)
)
)