{
  "info": {
    "_postman_id": "d5ffe0de-bb07-5bd6-9184-04cb592b1738",
    "name": "POS GROVE POS API — Customers",
    "description": "CRM customers, with loyalty balances. Reading needs crm.customers (or pos.pos, for looking up customers at the till); changes need crm.addcustomer. 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 customers",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/customers",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers"
          ],
          "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": "email",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "phone",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "membershipTier",
              "value": "",
              "description": "One of: Bronze, Silver, Gold.",
              "disabled": true
            },
            {
              "key": "active",
              "value": "",
              "description": "",
              "disabled": true
            }
          ]
        },
        "description": "Permission: `crm.customers` or `crm.addcustomer` or `crm.support` or `pos.pos`.\n\nScope: `crm:read`.\n\n`GET /customers` · operationId `customers.list`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/customers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers"
              ],
              "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": "email",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "phone",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "membershipTier",
                  "value": "",
                  "description": "One of: Bronze, Silver, Gold.",
                  "disabled": true
                },
                {
                  "key": "active",
                  "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\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"customerCode\": \"C-1001\",\n      \"name\": \"Ada Obi\",\n      \"email\": \"ada@example.com\",\n      \"phone\": \"08098765432\",\n      \"address\": \"4 Allen Avenue, Ikeja\",\n      \"taxId\": \"\",\n      \"membershipTier\": \"Silver\",\n      \"loyaltyPoints\": 320,\n      \"loyaltyLifetimePoints\": 1450,\n      \"balance\": 0,\n      \"minimumOrder\": 0,\n      \"active\": true,\n      \"reps\": [\n        {\n          \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n          \"name\": \"Jane Doe\"\n        }\n      ],\n      \"createdBy\": \"Jane Doe\",\n      \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n      \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Create a customer",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/customers",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers"
          ]
        },
        "description": "Email, phone and customer code must be unique. A welcome email is sent when that setting is on.\n\nPermission: `crm.addcustomer`.\n\nScope: `crm:write`.\n\n`POST /customers` · operationId `customers.create`",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"phone\": \"\",\n  \"membershipTier\": \"Bronze\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": [
        {
          "name": "201 Success",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/customers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\",\n  \"phone\": \"\",\n  \"membershipTier\": \"Bronze\"\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    \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n    \"customerCode\": \"C-1001\",\n    \"name\": \"Ada Obi\",\n    \"email\": \"ada@example.com\",\n    \"phone\": \"08098765432\",\n    \"address\": \"4 Allen Avenue, Ikeja\",\n    \"taxId\": \"\",\n    \"membershipTier\": \"Silver\",\n    \"loyaltyPoints\": 320,\n    \"loyaltyLifetimePoints\": 1450,\n    \"balance\": 0,\n    \"minimumOrder\": 0,\n    \"active\": true,\n    \"reps\": [\n      {\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n        \"name\": \"Jane Doe\"\n      }\n    ],\n    \"createdBy\": \"Jane Doe\",\n    \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    },
    {
      "name": "Get a customer",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/customers/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers",
            ":id"
          ],
          "query": [
            {
              "key": "fields",
              "value": "",
              "description": "Comma-separated fields to return. Example: id,name,status",
              "disabled": true
            }
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Permission: `crm.customers` or `crm.addcustomer` or `crm.support` or `pos.pos`.\n\nScope: `crm:read`.\n\n`GET /customers/{id}` · operationId `customers.get`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/customers/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers",
                ":id"
              ],
              "query": [
                {
                  "key": "fields",
                  "value": "",
                  "description": "Comma-separated fields to return. Example: id,name,status",
                  "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    \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n    \"customerCode\": \"C-1001\",\n    \"name\": \"Ada Obi\",\n    \"email\": \"ada@example.com\",\n    \"phone\": \"08098765432\",\n    \"address\": \"4 Allen Avenue, Ikeja\",\n    \"taxId\": \"\",\n    \"membershipTier\": \"Silver\",\n    \"loyaltyPoints\": 320,\n    \"loyaltyLifetimePoints\": 1450,\n    \"balance\": 0,\n    \"minimumOrder\": 0,\n    \"active\": true,\n    \"reps\": [\n      {\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n        \"name\": \"Jane Doe\"\n      }\n    ],\n    \"createdBy\": \"Jane Doe\",\n    \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    },
    {
      "name": "Update a customer",
      "request": {
        "method": "PATCH",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/customers/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Send only the fields to change.\n\nPermission: `crm.addcustomer`.\n\nScope: `crm:write`.\n\n`PATCH /customers/{id}` · operationId `customers.update`",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"membershipTier\": \"Bronze\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/customers/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Pattern: ^[a-f0-9]{24}$"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"membershipTier\": \"Bronze\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "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\": \"66f1c2a9e4b0a1b2c3d4e506\",\n    \"customerCode\": \"C-1001\",\n    \"name\": \"Ada Obi\",\n    \"email\": \"ada@example.com\",\n    \"phone\": \"08098765432\",\n    \"address\": \"4 Allen Avenue, Ikeja\",\n    \"taxId\": \"\",\n    \"membershipTier\": \"Silver\",\n    \"loyaltyPoints\": 320,\n    \"loyaltyLifetimePoints\": 1450,\n    \"balance\": 0,\n    \"minimumOrder\": 0,\n    \"active\": true,\n    \"reps\": [\n      {\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n        \"name\": \"Jane Doe\"\n      }\n    ],\n    \"createdBy\": \"Jane Doe\",\n    \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    },
    {
      "name": "Loyalty balance and history",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/customers/:id/loyalty",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers",
            ":id",
            "loyalty"
          ],
          "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": "type",
              "value": "",
              "description": "One of: earn, redeem, reverse, restore, adjust, expire.",
              "disabled": true
            }
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Permission: `crm.loyalty` or `crm.customers` or `pos.pos`.\n\nScope: `crm:read`.\n\n`GET /customers/{id}/loyalty` · operationId `customers.loyalty`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/customers/:id/loyalty",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers",
                ":id",
                "loyalty"
              ],
              "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": "type",
                  "value": "",
                  "description": "One of: earn, redeem, reverse, restore, adjust, expire.",
                  "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    \"summary\": {\n      \"customerId\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\",\n      \"enabled\": true,\n      \"balance\": 459,\n      \"lifetime\": 1589,\n      \"value\": 45.9,\n      \"tier\": \"Silver\",\n      \"tierName\": \"Silver\",\n      \"nextTier\": {\n        \"key\": \"gold\",\n        \"name\": \"Gold\",\n        \"pointsNeeded\": 3411\n      },\n      \"redemption\": {\n        \"points\": 100,\n        \"value\": 10\n      },\n      \"redeemablePoints\": 400,\n      \"pointsPerAmount\": 1,\n      \"expiryMonths\": 12\n    },\n    \"history\": [\n      {\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e508\",\n        \"type\": \"earn\",\n        \"points\": 139,\n        \"balanceAfter\": 459,\n        \"orderId\": \"66f1c2a9e4b0a1b2c3d4e505\",\n        \"orderNumber\": \"ORD1790904240356987\",\n        \"amount\": 13975,\n        \"description\": \"Earned on order ORD1790904240356987\",\n        \"source\": \"pos\",\n        \"by\": \"Jane Doe\",\n        \"createdAt\": \"2026-10-02T14:05:00.000Z\",\n        \"expiresAt\": null\n      }\n    ]\n  }\n}"
        }
      ]
    },
    {
      "name": "Adjust loyalty points",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/customers/:id/loyalty/adjustments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers",
            ":id",
            "loyalty",
            "adjustments"
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Adds (positive) or removes (negative) points with a reason; recorded in the loyalty ledger. A balance cannot go below zero (409).\n\nPermission: `crm.loyaltyadjust`.\n\nScope: `crm:write`.\n\n`POST /customers/{id}/loyalty/adjustments` · operationId `customers.loyalty.adjust`",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"points\": -1000000,\n  \"reason\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": [
        {
          "name": "201 Success",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/customers/:id/loyalty/adjustments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers",
                ":id",
                "loyalty",
                "adjustments"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Pattern: ^[a-f0-9]{24}$"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"points\": -1000000,\n  \"reason\": \"\"\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    \"summary\": {\n      \"customerId\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\",\n      \"enabled\": true,\n      \"balance\": 459,\n      \"lifetime\": 1589,\n      \"value\": 45.9,\n      \"tier\": \"Silver\",\n      \"tierName\": \"Silver\",\n      \"nextTier\": {\n        \"key\": \"gold\",\n        \"name\": \"Gold\",\n        \"pointsNeeded\": 3411\n      },\n      \"redemption\": {\n        \"points\": 100,\n        \"value\": 10\n      },\n      \"redeemablePoints\": 400,\n      \"pointsPerAmount\": 1,\n      \"expiryMonths\": 12\n    },\n    \"entry\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e508\",\n      \"type\": \"adjust\",\n      \"points\": 50,\n      \"balanceAfter\": 509,\n      \"orderId\": null,\n      \"orderNumber\": null,\n      \"amount\": 0,\n      \"description\": \"Goodwill for late delivery\",\n      \"source\": \"api\",\n      \"by\": \"Jane Doe\",\n      \"createdAt\": \"2026-10-02T14:05:00.000Z\",\n      \"expiresAt\": null\n    }\n  }\n}"
        }
      ]
    }
  ]
}