01-23-2025 09:51 AM - edited 01-23-2025 09:55 AM
I just noticed a weird thing about a transaction. I refunded an item from an order partially (2.99€ refunded for a lineitem with a total cost of 5.98€). The transactions base data seems correct , but inside the lineItem in the orderLineItems array the feeBasisAmount is 5.98€, while the FINAL_VALUE_FEE is correctly set to 0.39€, as it is in the transaction itself.
I used to use this value as a basis to create the invoice items in the invoice correction, when customers return only part of an order (or any other case, where I only do a partial refund)
This does not seem like it is intended to be that way, since it makes no sense to have a field "totalFeeBasisAmount" that is lower than the sum of all indivudual "feeBasisAmount" of the lineitems.
Is there any other way I can find the refunded amount per line item via any ebay API?
If any ebay developers read this: I can provide the orderID, transactionID, or whatever you need to find the issue. If it is not considered an issue or a bug, then please let me know. (preferrably with an explanation)
Here is the json I get from the api (With personal data replaced by XXX)
{
"transactionId": "RRP-XXXXXXXX-CCM_CHARGE",
"orderId": "XX-XXXXX-XXXXX",
"payoutId": "XXXXXXXX",
"salesRecordReference": "0",
"buyer": {
"username": "XXXXXXXX"
},
"transactionType": "REFUND",
"amount": {
"value": "2.6",
"currency": "EUR"
},
"totalFeeBasisAmount": {
"value": "2.99",
"currency": "EUR"
},
"totalFeeAmount": {
"value": "0.39",
"currency": "EUR"
},
"orderLineItems": [
{
"lineItemId": "10XXXXXXXX7",
"feeBasisAmount": {
"value": "5.98",
"currency": "EUR"
},
"marketplaceFees": [
{
"feeType": "FINAL_VALUE_FEE",
"amount": {
"value": "0.39",
"currency": "EUR"
}
}
]
}
],
"bookingEntry": "DEBIT",
"transactionDate": "2024-08-08T09:41:22.746Z",
"transactionStatus": "PAYOUT",
"paymentsEntity": "eBay S.Ã r.l.",
"references": [
{
"referenceId": "XXXXXXXX",
"referenceType": "REFUND_ID"
}
]
}