question

Alex Libkind avatar image
Alex Libkind asked

Refund Transaction Shows Up in POS but in API shows as OPEN, ZERO TOTAL & Negative Amount in Line Item

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 \

--url https://api.clover.com/v3/merchants/MERCHANT_ID/orders?expand=payments,lineItems,refunds,serviceCharge,discounts&offset=0&limit=100&filter=clientCreatedTime%3E=1654041600000&filter=clientCreatedTime%3C=1654559999000&filter=device.id=DEVICE_ID \

--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?






Orders
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community