{
  "info": {
    "_postman_id": "598f9282-205a-5cbf-bed5-e1d843d58a61",
    "name": "POS GROVE POS API — CRM",
    "description": "Leads (crm.leads), support tickets (crm.view), the loyalty report (crm.loyalty) and a customer timeline. API keys need the `crm` scope.\n\n**Setup**\n1. Set the collection variable `baseUrl` to your POS GROVE address followed by `/api/v1`.\n2. Either paste an API key (Online store → API & Webhooks) into `accessToken`, or run **Get an access token** (in the *Sign in* or *Authentication* folder): it signs in with a username and password and saves the token for you (valid 12 hours).\n3. Send any request. A test checks the `{ success }` envelope on every answer.\n\nAll responses use `{ success, message, data, meta }`; errors use `{ success: false, message, error: { code, details, requestId } }`. Lists accept `page`, `limit`, `sort` and `fields`.\n\nReference: https://posgrove.com/docs/pos-api",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{accessToken}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// POS GROVE APIs answer { success, message, data } (or { success: false, error, message }).",
          "pm.test(\"Response is JSON\", function () { pm.response.to.be.json; });",
          "pm.test(\"Envelope has a success flag\", function () {",
          "  var b = pm.response.json();",
          "  pm.expect(b).to.have.property(\"success\");",
          "  if (pm.response.code < 400) pm.expect(b.success).to.eql(true);",
          "});"
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://your-store.example.com/api/v1",
      "type": "string",
      "description": "Your POS GROVE address followed by /api/v1, e.g. https://shop.example.com/api/v1"
    },
    {
      "key": "accessToken",
      "value": "",
      "type": "string",
      "description": "An API key, or the token saved by the Get an access token request."
    }
  ],
  "item": [
    {
      "name": "Sign in",
      "description": "Run once: saves {{accessToken}} for the other requests (or paste an API key instead).",
      "item": [
        {
          "name": "Get an access token",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/auth/token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "auth",
                "token"
              ]
            },
            "description": "Signs in with a username and password (and the 6-digit code when two-factor sign-in is on) and returns a bearer token valid for 12 hours. The token is shown only once. Five wrong passwords in a row disable the account, as on the sign-in page.\n\nNo authentication needed.\n\n`POST /auth/token` · operationId `auth.token`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"username\": \"jane\",\n  \"password\": \"••••••••\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "201 Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/auth/token",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "auth",
                    "token"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"username\": \"jane\",\n  \"password\": \"••••••••\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Success",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": {\n    \"token\": \"mtk_<token shown once>\",\n    \"tokenType\": \"Bearer\",\n    \"expiresAt\": \"2026-10-02T21:30:00.000Z\",\n    \"expiresIn\": 43200,\n    \"user\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n      \"username\": \"jane\",\n      \"name\": \"Jane Doe\"\n    }\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "var body = {};",
                  "try { body = pm.response.json(); } catch (e) {}",
                  "if (body && body.data && body.data.token) {",
                  "  pm.collectionVariables.set(\"accessToken\", body.data.token);",
                  "  if (pm.environment && pm.environment.has(\"accessToken\")) pm.environment.set(\"accessToken\", body.data.token);",
                  "  console.log(\"POS GROVE: access token saved to {{accessToken}} (valid until \" + body.data.expiresAt + \")\");",
                  "}",
                  "pm.test(\"Access token received\", function () { pm.expect(body.data && body.data.token).to.be.a(\"string\"); });"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "List leads",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/crm/leads",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "crm",
            "leads"
          ],
          "query": [
            {
              "key": "page",
              "value": "1",
              "description": "Page number (starts at 1).",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "25",
              "description": "Items per page (max 100).",
              "disabled": true
            },
            {
              "key": "sort",
              "value": "",
              "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
              "disabled": true
            },
            {
              "key": "fields",
              "value": "",
              "description": "Comma-separated fields to return. Example: id,name,status",
              "disabled": true
            },
            {
              "key": "q",
              "value": "",
              "description": "Search text.",
              "disabled": true
            },
            {
              "key": "from",
              "value": "",
              "description": "Only items on or after this date (YYYY-MM-DD).",
              "disabled": true
            },
            {
              "key": "to",
              "value": "",
              "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
              "disabled": true
            },
            {
              "key": "status",
              "value": "",
              "description": "One of: Closed, Not Contacted, Contacted, Lost, Open.",
              "disabled": true
            },
            {
              "key": "priority",
              "value": "",
              "description": "One of: Low, Medium, High, Urgent.",
              "disabled": true
            }
          ]
        },
        "description": "Permission: `crm.leads`.\n\nScope: `crm:read`.\n\n`GET /crm/leads` · operationId `crm.leads.list`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/crm/leads",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "crm",
                "leads"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number (starts at 1).",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "25",
                  "description": "Items per page (max 100).",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "",
                  "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
                  "disabled": true
                },
                {
                  "key": "fields",
                  "value": "",
                  "description": "Comma-separated fields to return. Example: id,name,status",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "",
                  "description": "Search text.",
                  "disabled": true
                },
                {
                  "key": "from",
                  "value": "",
                  "description": "Only items on or after this date (YYYY-MM-DD).",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "One of: Closed, Not Contacted, Contacted, Lost, Open.",
                  "disabled": true
                },
                {
                  "key": "priority",
                  "value": "",
                  "description": "One of: Low, Medium, High, Urgent.",
                  "disabled": true
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": [\n    {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e509\",\n      \"name\": \"Bola Ade\",\n      \"company\": \"Ade Foods Ltd\",\n      \"email\": \"bola@adefoods.example\",\n      \"phone\": \"08031112222\",\n      \"status\": \"Contacted\",\n      \"priority\": \"High\",\n      \"source\": \"website\",\n      \"type\": \"wholesale\",\n      \"industry\": \"Retail\",\n      \"country\": \"Nigeria\",\n      \"state\": \"Lagos\",\n      \"expectedIncome\": 2500000,\n      \"currency\": \"NGN\",\n      \"probability\": 60,\n      \"owner\": \"Jane Doe\",\n      \"dueDate\": \"2026-10-15T00:00:00.000Z\",\n      \"lastContactedAt\": \"2026-10-01T09:30:00.000Z\",\n      \"nextFollowUpAt\": \"2026-10-05T10:00:00.000Z\",\n      \"closedAt\": null,\n      \"tags\": [\n        \"bulk\"\n      ],\n      \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n      \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Get a lead (with recent activity)",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/crm/leads/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "crm",
            "leads",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Permission: `crm.leads`.\n\nScope: `crm:read`.\n\n`GET /crm/leads/{id}` · operationId `crm.leads.get`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/crm/leads/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "crm",
                "leads",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Pattern: ^[a-f0-9]{24}$"
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": \"66f1c2a9e4b0a1b2c3d4e509\",\n    \"name\": \"Bola Ade\",\n    \"company\": \"Ade Foods Ltd\",\n    \"email\": \"bola@adefoods.example\",\n    \"phone\": \"08031112222\",\n    \"status\": \"Contacted\",\n    \"priority\": \"High\",\n    \"source\": \"website\",\n    \"type\": \"wholesale\",\n    \"industry\": \"Retail\",\n    \"country\": \"Nigeria\",\n    \"state\": \"Lagos\",\n    \"expectedIncome\": 2500000,\n    \"currency\": \"NGN\",\n    \"probability\": 60,\n    \"owner\": \"Jane Doe\",\n    \"dueDate\": \"2026-10-15T00:00:00.000Z\",\n    \"lastContactedAt\": \"2026-10-01T09:30:00.000Z\",\n    \"nextFollowUpAt\": \"2026-10-05T10:00:00.000Z\",\n    \"closedAt\": null,\n    \"tags\": [\n      \"bulk\"\n    ],\n    \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\",\n    \"description\": \"Wants monthly supply of rice and oil.\",\n    \"website\": \"https://adefoods.example\",\n    \"activities\": [\n      {\n        \"type\": \"call\",\n        \"text\": \"Discussed pricing\",\n        \"by\": \"Jane Doe\",\n        \"at\": \"2026-10-01T09:30:00.000Z\"\n      }\n    ]\n  }\n}"
        }
      ]
    },
    {
      "name": "List support tickets",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/crm/tickets",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "crm",
            "tickets"
          ],
          "query": [
            {
              "key": "page",
              "value": "1",
              "description": "Page number (starts at 1).",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "25",
              "description": "Items per page (max 100).",
              "disabled": true
            },
            {
              "key": "sort",
              "value": "",
              "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
              "disabled": true
            },
            {
              "key": "fields",
              "value": "",
              "description": "Comma-separated fields to return. Example: id,name,status",
              "disabled": true
            },
            {
              "key": "q",
              "value": "",
              "description": "Search text.",
              "disabled": true
            },
            {
              "key": "from",
              "value": "",
              "description": "Only items on or after this date (YYYY-MM-DD).",
              "disabled": true
            },
            {
              "key": "to",
              "value": "",
              "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
              "disabled": true
            },
            {
              "key": "status",
              "value": "",
              "description": "One of: open, answered, closed.",
              "disabled": true
            },
            {
              "key": "customerId",
              "value": "",
              "description": "",
              "disabled": true
            }
          ]
        },
        "description": "Permission: `crm.view` or `crm.support`.\n\nScope: `crm:read`.\n\n`GET /crm/tickets` · operationId `crm.tickets.list`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/crm/tickets",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "crm",
                "tickets"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number (starts at 1).",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "25",
                  "description": "Items per page (max 100).",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "",
                  "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
                  "disabled": true
                },
                {
                  "key": "fields",
                  "value": "",
                  "description": "Comma-separated fields to return. Example: id,name,status",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "",
                  "description": "Search text.",
                  "disabled": true
                },
                {
                  "key": "from",
                  "value": "",
                  "description": "Only items on or after this date (YYYY-MM-DD).",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "One of: open, answered, closed.",
                  "disabled": true
                },
                {
                  "key": "customerId",
                  "value": "",
                  "description": "",
                  "disabled": true
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": [\n    {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e510\",\n      \"ticketNumber\": \"TCK-2041\",\n      \"title\": \"Wrong item delivered\",\n      \"category\": \"Delivery\",\n      \"status\": \"answered\",\n      \"customer\": {\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n        \"name\": \"Ada Obi\",\n        \"email\": \"ada@example.com\"\n      },\n      \"assignedTo\": \"Jane Doe\",\n      \"tag\": \"urgent\",\n      \"message\": \"I received beans instead of rice.\",\n      \"createdBy\": \"Jane Doe\",\n      \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n      \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Get a support ticket",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/crm/tickets/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "crm",
            "tickets",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Permission: `crm.view` or `crm.support`.\n\nScope: `crm:read`.\n\n`GET /crm/tickets/{id}` · operationId `crm.tickets.get`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/crm/tickets/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "crm",
                "tickets",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Pattern: ^[a-f0-9]{24}$"
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": \"66f1c2a9e4b0a1b2c3d4e510\",\n    \"ticketNumber\": \"TCK-2041\",\n    \"title\": \"Wrong item delivered\",\n    \"category\": \"Delivery\",\n    \"status\": \"answered\",\n    \"customer\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\",\n      \"email\": \"ada@example.com\"\n    },\n    \"assignedTo\": \"Jane Doe\",\n    \"tag\": \"urgent\",\n    \"message\": \"I received beans instead of rice.\",\n    \"createdBy\": \"Jane Doe\",\n    \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    },
    {
      "name": "Loyalty programme report",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/crm/loyalty/report",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "crm",
            "loyalty",
            "report"
          ],
          "query": [
            {
              "key": "from",
              "value": "",
              "description": "Only items on or after this date (YYYY-MM-DD).",
              "disabled": true
            },
            {
              "key": "to",
              "value": "",
              "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
              "disabled": true
            }
          ]
        },
        "description": "Points issued, redeemed and outstanding, top earners and customers per tier for a period.\n\nPermission: `crm.loyalty`.\n\nScope: `crm:read`.\n\n`GET /crm/loyalty/report` · operationId `crm.loyalty.report`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/crm/loyalty/report",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "crm",
                "loyalty",
                "report"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "",
                  "description": "Only items on or after this date (YYYY-MM-DD).",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
                  "disabled": true
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": {\n    \"period\": {\n      \"from\": \"2026-09-01T00:00:00.000Z\",\n      \"to\": \"2026-09-30T23:59:59.999Z\"\n    },\n    \"enabled\": true,\n    \"totals\": {\n      \"earn\": {\n        \"points\": 18450,\n        \"count\": 212,\n        \"amount\": 1845000\n      },\n      \"redeem\": {\n        \"points\": -4200,\n        \"count\": 31,\n        \"amount\": 420\n      },\n      \"reverse\": {\n        \"points\": -300,\n        \"count\": 2,\n        \"amount\": 30000\n      },\n      \"restore\": {\n        \"points\": 100,\n        \"count\": 1,\n        \"amount\": 10\n      },\n      \"adjust\": {\n        \"points\": 250,\n        \"count\": 3,\n        \"amount\": 0\n      },\n      \"expire\": {\n        \"points\": -120,\n        \"count\": 4,\n        \"amount\": 0\n      }\n    },\n    \"pointsIssued\": 18700,\n    \"pointsRedeemed\": 4200,\n    \"redeemedValue\": 420,\n    \"outstandingPoints\": 52310,\n    \"outstandingCustomers\": 418,\n    \"outstandingValue\": 5231,\n    \"topEarners\": [\n      {\n        \"customerId\": \"66f1c2a9e4b0a1b2c3d4e506\",\n        \"name\": \"Ada Obi\",\n        \"points\": 1390,\n        \"orders\": 9\n      }\n    ],\n    \"tiers\": [\n      {\n        \"tier\": \"Bronze\",\n        \"customers\": 301\n      },\n      {\n        \"tier\": \"Silver\",\n        \"customers\": 96\n      },\n      {\n        \"tier\": \"Gold\",\n        \"customers\": 21\n      }\n    ]\n  }\n}"
        }
      ]
    },
    {
      "name": "Customer timeline",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/crm/customers/:id/activity",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "crm",
            "customers",
            ":id",
            "activity"
          ],
          "query": [
            {
              "key": "limit",
              "value": "20",
              "description": "",
              "disabled": true
            }
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Latest orders, loyalty entries and support tickets for one customer, newest first.\n\nPermission: `crm.customers` or `crm.support` or `crm.loyalty`.\n\nScope: `crm:read`.\n\n`GET /crm/customers/{id}/activity` · operationId `crm.customers.activity`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/crm/customers/:id/activity",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "crm",
                "customers",
                ":id",
                "activity"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Pattern: ^[a-f0-9]{24}$"
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": {\n    \"customer\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\"\n    },\n    \"events\": [\n      {\n        \"type\": \"loyalty\",\n        \"at\": \"2026-10-02T14:05:00.000Z\",\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e508\",\n        \"title\": \"Earned 139 points\",\n        \"detail\": \"Earned on order ORD1790904240356987\",\n        \"balanceAfter\": 459\n      },\n      {\n        \"type\": \"order\",\n        \"at\": \"2026-10-02T14:05:00.000Z\",\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e505\",\n        \"title\": \"Order ORD1790904240356987\",\n        \"detail\": \"confirmed, paid by cash\",\n        \"amount\": 13975,\n        \"store\": \"Main Street\"\n      }\n    ]\n  }\n}"
        }
      ]
    }
  ]
}