In the docs they said that Order>Refund object has processing_fee_money field, but it is omitted in every response. But in response from deprecated refund endpoint i can see those fees that have been returned.
I want to avoid using deprecated endpoints
There are refunds from Order object requested via Orders API:
“refunds”: [
{
“id”: “UGQ2klGNHUVCNWHZEp47ImZrQz93q7T6uDTjqZ8speT”,
“location_id”: “CRNKFZKBBDP8C”,
“transaction_id”: “M5PExWlNHBBbn0FcAeb7tHIc2vCZY”,
“tender_id”: “hmL0cdcYMbFl57BeI1RqOzqPWoQZY”,
“created_at”: “2020-06-23T11:54:00Z”,
“reason”: “Doesn’t need shirts”,
“amount_money”: {
“amount”: 10710,
“currency”: “USD”
},
“status”: “APPROVED”
}
]
There is the refund from Deprecated List refunds:
{
“id”: “UGQ2klGNHUVCNWHZEp47ImZrQz93q7T6uDTjqZ8speT”,
“location_id”: “CRNKFZKBBDP8C”,
“transaction_id”: “M5PExWlNHBBbn0FcAeb7tHIc2vCZY”,
“tender_id”: “hmL0cdcYMbFl57BeI1RqOzqPWoQZY”,
“created_at”: “2020-06-23T11:54:00Z”,
“reason”: “Doesn’t need shirts”,
“amount_money”: {
“amount”: 10710,
“currency”: “USD”
},
“status”: “APPROVED”,
“processing_fee_money”: {
“amount”: 390,
“currency”: “USD”
}
}