question

salikkabir avatar image
salikkabir asked David Marginian Deactivated answered

Receipt Data Total Amount Different Compared to GetOrder Data Total Amount

Hi,

I am trying to figure out if the price of an item in my database is different than the actual price of an item in clover.

I did the following:
1. Created an item in Clover (price: $20)
2. Synced the item to my database
3. Changed the price of the item in Clover (price: $25)
4. Placed an order into Clover using the item that was created with a price of ($20)
5. Clover accepted the order fine

When I look at the receipt: https://sandbox.dev.clover.com/r/TCZEW4TM2ZW8W

I can see that the order total (27.50 is greater than total paid 22.50 [pre-tip, including taxes calculated by clover])

However, when I use GetOrder endpoint:
https://sandbox.dev.clover.com/v3/merchants/ZQ4KQN7SEF36J/orders/TCZEW4TM2ZW8W?expand=payments

The response states that the total without tax is 22.50 - I was expecting 27.50 like it is shown on the receipt and amount paid is (25.80)

{
    "href": "https://sandbox.dev.clover.com/v3/merchants/ZQ4KQN7SEF36J/orders/TCZEW4TM2ZW8W",
    "id": "TCZEW4TM2ZW8W",
    "currency": "USD",
    "customers": {
        "elements": [
            {
                "href": "https://sandbox.dev.clover.com/v3/merchants/ZQ4KQN7SEF36J/customers/07JQ5S86MA8TM",
                "id": "07JQ5S86MA8TM"
            }
        ]
    },
    "employee": {
        "id": "JPMP8STF4SQYT"
    },
    "total": 2250,
    "externalReferenceId": "XXXXXXXX",
    "paymentState": "PAID",
    "title": "XXXXXXXXXX",
    "note": "#customer: XXXXXXXXX #order-notes:  ",
    "orderType": {
        "id": "3VW5TYZSB8R10"
    },
    "taxRemoved": false,
    "isVat": false,
    "state": "locked",
    "manualTransaction": false,
    "groupLineItems": false,
    "testMode": false,
    "payType": "FULL",
    "createdTime": 1625082955000,
    "clientCreatedTime": 1625082955000,
    "modifiedTime": 1625082958000,
    "payments": {
        "elements": [
            {
                "id": "JE297TKDQGAXE",
                "order": {
                    "id": "TCZEW4TM2ZW8W"
                },
                "tender": {
                    "href": "https://sandbox.dev.clover.com/v3/merchants/ZQ4KQN7SEF36J/tenders/2PPPBB8D999AM",
                    "id": "2PPPBB8D999AM"
                },
                "amount": 2250,
                "tipAmount": 330,
                "taxAmount": 250,
                "employee": {
                    "id": "JPMP8STF4SQYT"
                },
                "createdTime": 1625082958000,
                "clientCreatedTime": 1625082956000,
                "modifiedTime": 1625082957000,
                "offline": false,
                "result": "SUCCESS"
            }
        ]
    }
}


I have noticed that the Payment state can fluctuate from PAID to OPEN to PARTIALLY_PAID.

I noticed that usually if the Clover machine is on that is when you are most likely to get the PARTIALLY_PAID state.

Do you know why there can be a discrepancy between the receipt and GetOrder?

OrdersREST API
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