question

confusecustomer avatar image
confusecustomer asked Raymond Lee Deactivated answered

Customer app reporting

Customer - Clover app does not export transaction detail of each customer. How can we make it possible?
Customers
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Raymond Lee avatar image
Raymond Lee Deactivated answered
Correct, the Clover Customer app does not include orders in it's export of customer data. You can build your own customer report by using our Customers endpoints:

First call:
GET /v3/merchants/{
                {merchantId}}/customers/

Then for each customerId, expand the orders field:
GET /v3/merchants/{
                {merchantId}}/customers/{
                {customerId}}?expand=orders

Here is one example output from one customer:
{
  "href": "https://sandbox.dev.clover.com/v3/merchants/T0JQJVBQJTH1Y/customers/P841DPEHNY8BJ",
  "id": "P841DPEHNY8BJ",
  "firstName": " Bob",
  "lastName": "",
  "marketingAllowed": true,
  "customerSince": 1534184807000,
  "orders": {
    "elements": [
      {
        "id": "3A0WNHZ47KED2"
      },
      {
        "id": "0QB3XFEHSS3N6"
      },
      {
        "id": "088QPHZ0W99FG"
      },
      {
        "id": "WA3V2T66DZVTM"
      }
    ]
  }
}

If you want the order details of each order, you will have to call GetOrder on each order:
GET /v3/merchants/{
                {merchantId}}/orders/{
                {orderId}}

10 |2000 characters needed characters left characters exceeded

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