We are seeing a refund transaction on our POS. However, when we pull the transaction via our API, we get the following response:
{ "href": "https://www.clover.com/v3/merchants/[REMOVED]/orders/5V75DBQEE89F4", "id": "5V75DBQEE89F4", "currency": "USD", "employee": { "id": "[REMOVED]" }, "total": 0, "paymentState": "OPEN", "note": "\nControl ID: [REMOVED] \n PR", "taxRemoved": false, "isVat": false, "state": "locked", "manualTransaction": false, "groupLineItems": true, "testMode": false, "createdTime": 1652373296000, "clientCreatedTime": 1652373295000, "modifiedTime": 1652373315000, "lineItems": { "elements": [ { "id": "BNV1FDW1W6R2Y", "orderRef": { "id": "5V75DBQEE89F4" }, "name": "Manual Transaction", "alternateName": "", "price": -25422, "printed": false, "createdTime": 1652373296000, "orderClientCreatedTime": 1652373295000, "exchanged": false, "refunded": false, "isRevenue": true } ] }, "device": { "id": "[REMOVED]" } }
The query we posted into API is:
curl --request GET \
--header 'Accept: application/json' \
--header 'Authorization: Bearer XXXXXXX'
Why would the paymentState = "Open" and total = "0" while refund under the lineItems > elements > refunded = "false" and it still shows up as processed in our POS?