I am creating a data flow in Celigo to GET/v2/refunds?begin_time={{lastExportDateTime}}, per the Refund API documentation, we should see the refund amount (as a negative number), in the response.
{
“refunds”: [
{
“id”: “bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY_69MmgHubkLqx9wGhnmenRUHOaKitE6llfZuxcWYjGxd”,
“status”: “COMPLETED”,
“amount_money”: {
“amount”: 555,
“currency”: “USD”
},
“payment_id”: “bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY”,
“order_id”: “9ltv0bx5PuvGXUYHYHxYSKEqC3IZY”,
“created_at”: “2021-10-13T19:59:05.342Z”,
“updated_at”: “2021-10-13T20:00:03.497Z”,
“processing_fee”: [
{
“effective_at”: “2021-10-13T21:34:35.000Z”,
“type”: “INITIAL”,
“amount_money”: {
“amount”: -34,
“currency”: “USD”
}
}
],
“location_id”: “L88917AVBK2S5”,
“reason”: “Example Refund”
}
],
“cursor”: “5evquW1YswHoT4EoyUhzMmTsCnsSXBU9U0WJ4FU4623nrMQcocH0RGU6Up1YkwfiMcF59ood58EBTEGgzMTGHQJpocic7ExOL0NtrTXCeWcv0UJIJNk8eXb”
}
In Square it is clearly showing the (.50) refund.
In Celigo, the record is pulling correctly, but the refund amount is $0.
{
“page_of_records”: [
{
“record”: {
“refunds”: [
{
“id”: “L9omksavypVSpnxM3mks0htatuKZY_An62g3eXXscWf5xSaX40WNXxy7hbRq12mqJxZwrQzvU”,
“status”: “COMPLETED”,
“amount_money”: {
“amount”: 50,
“currency”: “USD”
},
“payment_id”: “L9omksavypVSpnxM3mks0htatuKZY”,
“order_id”: “4YCFmQZdPHqewknd2ipjdw1eV”,
“created_at”: “2024-03-27T15:26:55.185Z”,
“updated_at”: “2024-03-27T16:01:49.758Z”,
“processing_fee”: [
{
“effective_at”: “2024-03-27T16:57:31.000Z”,
“type”: “INITIAL”,
“amount_money”: {
“amount”: 0,
“currency”: “USD”
}
}
],
“location_id”: “L3TMDRT9RPP3H”,
“reason”: “Testing an issue”,
“destination_type”: “CARD”
}
]
}
}
]
}
Any insight would be greatly appreciated
Paula Courtemanche
[email protected]
781-439-9500