question

krpamit avatar image
krpamit asked Mark Mullan Deactivated answered

Finding all orders for a customer

Is there any way to fetch all orders associated with specific customer?
OrdersCustomers
10 |2000

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

1 Answer

Mark Mullan avatar image
Mark Mullan Deactivated answered
@krpamit

GET https://apisandbox.dev.clover.com/v3/merchants/{merchantId}/customers/{customerId}/?expand=orders

{
    "href": "https://sandbox.dev.clover.com/v3/merchants/SJ925JDCKKTJJ/customers/WVK5RS4NPW98C",
    "id": "WVK5RS4NPW98C",
    "firstName": "MANUALLY",
    "lastName": "ENTERED",
    "marketingAllowed": false,
    "customerSince": 1488835597000,
    "orders": {
        "elements": [
            {
                "id": "CQ10YA05NYXTM"
            },
            {
                "id": "VKSPJPF227R4P"
            },
            {
                "id": "1PVT7XQ04ZTST"
            },
            {
                "id": "J531QS3R0PN1M"
            },
            {
                "id": "62T60DM59N63Y"
            },
            {
                "id": "0KP0NY5R8ATH4"
            },
            {
                "id": "0J0RZKSYYKM88"
            },
            {
                "id": "VYSWD3TWKSRHY"
            },
            {
                "id": "72DY48CPTADWW"
            },
            {
                "id": "S56K62FB5RMHM"
            },
            {
                "id": "A761X146STV10"
            },
            {
                "id": "KE6V5TJ98J28P"
            },
            {
                "id": "N1W3GM55A64Y0"
            },
            {
                "id": "P02R4MM5921KR"
            },
            {
                "id": "EQ23HPNEB551J"
            },
            {
                "id": "TTKH7G85R7BHE"
            },
            {
                "id": "XWSR1D8818W7C"
            },
            {
                "id": "CXMF3W8M2M4RM"
            },
            {
                "id": "RJMK6W9RP2PPP"
            },
            {
                "id": "FJH88XNX8CHA4"
            },
            {
                "id": "S69Z2J0T7ATTR"
            },
            {
                "id": "G3HHH99SXQVPM"
            }
        ]
    }
}
10 |2000

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