{
  "info": {
    "_postman_id": "3fc305e6-30c9-5c9d-a2b4-a9fbfbaa26c2",
    "name": "POS GROVE POS API — Orders & refunds",
    "description": "Sales orders and refunds. Reading needs pos.sales or pos.pos; selling needs pos.pos. Orders are created in your store with catalogue prices. API keys need the `pos` 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 orders",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/orders",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "orders"
          ],
          "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: pending, confirmed, processing, shipped, delivered, cancelled, refunded, on_hold.",
              "disabled": true
            },
            {
              "key": "paymentStatus",
              "value": "",
              "description": "One of: pending, authorized, paid, partially_refunded, refunded, failed, cancelled.",
              "disabled": true
            },
            {
              "key": "customerId",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "orderNumber",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "source",
              "value": "",
              "description": "One of: pos, web, mobile, api, other.",
              "disabled": true
            },
            {
              "key": "store",
              "value": "",
              "description": "\"all\" or a store id (needs pos.stores). Default: your store.",
              "disabled": true
            }
          ]
        },
        "description": "Permission: `pos.sales` or `pos.pos`.\n\nScope: `pos:read`.\n\n`GET /orders` · operationId `orders.list`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "orders"
              ],
              "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: pending, confirmed, processing, shipped, delivered, cancelled, refunded, on_hold.",
                  "disabled": true
                },
                {
                  "key": "paymentStatus",
                  "value": "",
                  "description": "One of: pending, authorized, paid, partially_refunded, refunded, failed, cancelled.",
                  "disabled": true
                },
                {
                  "key": "customerId",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "orderNumber",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "source",
                  "value": "",
                  "description": "One of: pos, web, mobile, api, other.",
                  "disabled": true
                },
                {
                  "key": "store",
                  "value": "",
                  "description": "\"all\" or a store id (needs pos.stores). Default: your store.",
                  "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\": \"66f1c2a9e4b0a1b2c3d4e505\",\n      \"orderNumber\": \"ORD1790904240356987\",\n      \"status\": \"confirmed\",\n      \"source\": \"api\",\n      \"storeId\": \"66f1c2a9e4b0a1b2c3d4e501\",\n      \"storeName\": \"Main Street\",\n      \"customer\": {\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n        \"name\": \"Ada Obi\",\n        \"email\": \"ada@example.com\",\n        \"phone\": \"08098765432\"\n      },\n      \"items\": [\n        {\n          \"productId\": \"66f1c2a9e4b0a1b2c3d4e503\",\n          \"variantId\": \"v_1a2b3c4d5e6f\",\n          \"sku\": \"RICE5\",\n          \"name\": \"Rice 5kg\",\n          \"quantity\": 2,\n          \"unitPrice\": {\n            \"amount\": 6500,\n            \"currency\": \"NGN\"\n          },\n          \"total\": {\n            \"amount\": 13000,\n            \"currency\": \"NGN\"\n          }\n        }\n      ],\n      \"subtotal\": {\n        \"amount\": 13000,\n        \"currency\": \"NGN\"\n      },\n      \"discount\": null,\n      \"tax\": {\n        \"amount\": 975,\n        \"rate\": 7.5\n      },\n      \"shipping\": null,\n      \"total\": {\n        \"amount\": 13975,\n        \"currency\": \"NGN\"\n      },\n      \"payment\": {\n        \"method\": \"cash\",\n        \"status\": \"paid\",\n        \"paidAt\": \"2026-10-02T14:05:00.000Z\"\n      },\n      \"fulfillmentStatus\": \"unfulfilled\",\n      \"refundStatus\": null,\n      \"staff\": {\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n        \"name\": \"Jane Doe\"\n      },\n      \"note\": \"\",\n      \"statusHistory\": [\n        {\n          \"status\": \"confirmed\",\n          \"at\": \"2026-10-02T14:05:00.000Z\",\n          \"by\": \"Jane Doe\",\n          \"note\": null\n        }\n      ],\n      \"createdAt\": \"2026-10-02T14:05:00.000Z\",\n      \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Create an order (sale)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/orders",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "orders"
          ]
        },
        "description": "Sells products from your store. Prices come from the catalogue and tax from the store VAT rate; coupons, automatic discounts and loyalty points are applied as on the POS screen. When the store takes payment before the order, the order is recorded as paid with `payment.method`.\n\nPermission: `pos.pos`.\n\nScope: `pos:write`.\n\n`POST /orders` · operationId `orders.create`",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"items\": [\n    {\n      \"productId\": \"\",\n      \"quantity\": 1\n    }\n  ],\n  \"payment\": {\n    \"method\": \"cash\"\n  }\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}}/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "orders"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"items\": [\n    {\n      \"productId\": \"\",\n      \"quantity\": 1\n    }\n  ],\n  \"payment\": {\n    \"method\": \"cash\"\n  }\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\": \"66f1c2a9e4b0a1b2c3d4e505\",\n    \"orderNumber\": \"ORD1790904240356987\",\n    \"status\": \"confirmed\",\n    \"source\": \"api\",\n    \"storeId\": \"66f1c2a9e4b0a1b2c3d4e501\",\n    \"storeName\": \"Main Street\",\n    \"customer\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\",\n      \"email\": \"ada@example.com\",\n      \"phone\": \"08098765432\"\n    },\n    \"items\": [\n      {\n        \"productId\": \"66f1c2a9e4b0a1b2c3d4e503\",\n        \"variantId\": \"v_1a2b3c4d5e6f\",\n        \"sku\": \"RICE5\",\n        \"name\": \"Rice 5kg\",\n        \"quantity\": 2,\n        \"unitPrice\": {\n          \"amount\": 6500,\n          \"currency\": \"NGN\"\n        },\n        \"total\": {\n          \"amount\": 13000,\n          \"currency\": \"NGN\"\n        }\n      }\n    ],\n    \"subtotal\": {\n      \"amount\": 13000,\n      \"currency\": \"NGN\"\n    },\n    \"discount\": null,\n    \"tax\": {\n      \"amount\": 975,\n      \"rate\": 7.5\n    },\n    \"shipping\": null,\n    \"total\": {\n      \"amount\": 13975,\n      \"currency\": \"NGN\"\n    },\n    \"payment\": {\n      \"method\": \"cash\",\n      \"status\": \"paid\",\n      \"paidAt\": \"2026-10-02T14:05:00.000Z\"\n    },\n    \"fulfillmentStatus\": \"unfulfilled\",\n    \"refundStatus\": null,\n    \"staff\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n      \"name\": \"Jane Doe\"\n    },\n    \"note\": \"\",\n    \"statusHistory\": [\n      {\n        \"status\": \"confirmed\",\n        \"at\": \"2026-10-02T14:05:00.000Z\",\n        \"by\": \"Jane Doe\",\n        \"note\": null\n      }\n    ],\n    \"createdAt\": \"2026-10-02T14:05:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\",\n    \"loyalty\": {\n      \"redeemedPoints\": 0,\n      \"redeemedValue\": 0,\n      \"earnedPoints\": 139,\n      \"balance\": 459\n    }\n  }\n}"
        }
      ]
    },
    {
      "name": "Get an order",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/orders/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "orders",
            ":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: `pos.sales` or `pos.pos`.\n\nScope: `pos:read`.\n\n`GET /orders/{id}` · operationId `orders.get`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/orders/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "orders",
                ":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\": \"66f1c2a9e4b0a1b2c3d4e505\",\n    \"orderNumber\": \"ORD1790904240356987\",\n    \"status\": \"confirmed\",\n    \"source\": \"api\",\n    \"storeId\": \"66f1c2a9e4b0a1b2c3d4e501\",\n    \"storeName\": \"Main Street\",\n    \"customer\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\",\n      \"email\": \"ada@example.com\",\n      \"phone\": \"08098765432\"\n    },\n    \"items\": [\n      {\n        \"productId\": \"66f1c2a9e4b0a1b2c3d4e503\",\n        \"variantId\": \"v_1a2b3c4d5e6f\",\n        \"sku\": \"RICE5\",\n        \"name\": \"Rice 5kg\",\n        \"quantity\": 2,\n        \"unitPrice\": {\n          \"amount\": 6500,\n          \"currency\": \"NGN\"\n        },\n        \"total\": {\n          \"amount\": 13000,\n          \"currency\": \"NGN\"\n        }\n      }\n    ],\n    \"subtotal\": {\n      \"amount\": 13000,\n      \"currency\": \"NGN\"\n    },\n    \"discount\": null,\n    \"tax\": {\n      \"amount\": 975,\n      \"rate\": 7.5\n    },\n    \"shipping\": null,\n    \"total\": {\n      \"amount\": 13975,\n      \"currency\": \"NGN\"\n    },\n    \"payment\": {\n      \"method\": \"cash\",\n      \"status\": \"paid\",\n      \"paidAt\": \"2026-10-02T14:05:00.000Z\"\n    },\n    \"fulfillmentStatus\": \"unfulfilled\",\n    \"refundStatus\": null,\n    \"staff\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n      \"name\": \"Jane Doe\"\n    },\n    \"note\": \"\",\n    \"statusHistory\": [\n      {\n        \"status\": \"confirmed\",\n        \"at\": \"2026-10-02T14:05:00.000Z\",\n        \"by\": \"Jane Doe\",\n        \"note\": null\n      }\n    ],\n    \"createdAt\": \"2026-10-02T14:05:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    },
    {
      "name": "Cancel an order",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/orders/:id/cancel",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "orders",
            ":id",
            "cancel"
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Same rules as the POS screen: orders being prepared, fulfilled or already refunded cannot be cancelled. Paid orders are refunded and loyalty points reversed.\n\nPermission: `pos.pos`.\n\nScope: `pos:write`.\n\nBody fields (send only the ones you change):\n- `reason` (string)\n\n`POST /orders/{id}/cancel` · operationId `orders.cancel`",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/orders/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "orders",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Pattern: ^[a-f0-9]{24}$"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "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\": \"66f1c2a9e4b0a1b2c3d4e505\",\n    \"orderNumber\": \"ORD1790904240356987\",\n    \"status\": \"cancelled\",\n    \"source\": \"api\",\n    \"storeId\": \"66f1c2a9e4b0a1b2c3d4e501\",\n    \"storeName\": \"Main Street\",\n    \"customer\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\",\n      \"email\": \"ada@example.com\",\n      \"phone\": \"08098765432\"\n    },\n    \"items\": [\n      {\n        \"productId\": \"66f1c2a9e4b0a1b2c3d4e503\",\n        \"variantId\": \"v_1a2b3c4d5e6f\",\n        \"sku\": \"RICE5\",\n        \"name\": \"Rice 5kg\",\n        \"quantity\": 2,\n        \"unitPrice\": {\n          \"amount\": 6500,\n          \"currency\": \"NGN\"\n        },\n        \"total\": {\n          \"amount\": 13000,\n          \"currency\": \"NGN\"\n        }\n      }\n    ],\n    \"subtotal\": {\n      \"amount\": 13000,\n      \"currency\": \"NGN\"\n    },\n    \"discount\": null,\n    \"tax\": {\n      \"amount\": 975,\n      \"rate\": 7.5\n    },\n    \"shipping\": null,\n    \"total\": {\n      \"amount\": 13975,\n      \"currency\": \"NGN\"\n    },\n    \"payment\": {\n      \"method\": \"cash\",\n      \"status\": \"paid\",\n      \"paidAt\": \"2026-10-02T14:05:00.000Z\"\n    },\n    \"fulfillmentStatus\": \"unfulfilled\",\n    \"refundStatus\": null,\n    \"staff\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n      \"name\": \"Jane Doe\"\n    },\n    \"note\": \"\",\n    \"statusHistory\": [\n      {\n        \"status\": \"confirmed\",\n        \"at\": \"2026-10-02T14:05:00.000Z\",\n        \"by\": \"Jane Doe\",\n        \"note\": null\n      },\n      {\n        \"status\": \"cancelled\",\n        \"at\": \"2026-10-02T14:05:00.000Z\",\n        \"by\": \"Jane Doe\",\n        \"note\": \"Customer changed their mind\"\n      }\n    ],\n    \"createdAt\": \"2026-10-02T14:05:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    },
    {
      "name": "Record a payment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/orders/:id/payments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "orders",
            ":id",
            "payments"
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Permission: `pos.pos`.\n\nScope: `pos:write`.\n\n`POST /orders/{id}/payments` · operationId `orders.pay`",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": 0.01,\n  \"method\": \"cash\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/orders/:id/payments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "orders",
                ":id",
                "payments"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Pattern: ^[a-f0-9]{24}$"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"amount\": 0.01,\n  \"method\": \"cash\"\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\": \"66f1c2a9e4b0a1b2c3d4e505\",\n    \"orderNumber\": \"ORD1790904240356987\",\n    \"status\": \"confirmed\",\n    \"source\": \"api\",\n    \"storeId\": \"66f1c2a9e4b0a1b2c3d4e501\",\n    \"storeName\": \"Main Street\",\n    \"customer\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\",\n      \"email\": \"ada@example.com\",\n      \"phone\": \"08098765432\"\n    },\n    \"items\": [\n      {\n        \"productId\": \"66f1c2a9e4b0a1b2c3d4e503\",\n        \"variantId\": \"v_1a2b3c4d5e6f\",\n        \"sku\": \"RICE5\",\n        \"name\": \"Rice 5kg\",\n        \"quantity\": 2,\n        \"unitPrice\": {\n          \"amount\": 6500,\n          \"currency\": \"NGN\"\n        },\n        \"total\": {\n          \"amount\": 13000,\n          \"currency\": \"NGN\"\n        }\n      }\n    ],\n    \"subtotal\": {\n      \"amount\": 13000,\n      \"currency\": \"NGN\"\n    },\n    \"discount\": null,\n    \"tax\": {\n      \"amount\": 975,\n      \"rate\": 7.5\n    },\n    \"shipping\": null,\n    \"total\": {\n      \"amount\": 13975,\n      \"currency\": \"NGN\"\n    },\n    \"payment\": {\n      \"method\": \"cash\",\n      \"status\": \"paid\",\n      \"paidAt\": \"2026-10-02T14:05:00.000Z\"\n    },\n    \"fulfillmentStatus\": \"unfulfilled\",\n    \"refundStatus\": null,\n    \"staff\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n      \"name\": \"Jane Doe\"\n    },\n    \"note\": \"\",\n    \"statusHistory\": [\n      {\n        \"status\": \"confirmed\",\n        \"at\": \"2026-10-02T14:05:00.000Z\",\n        \"by\": \"Jane Doe\",\n        \"note\": null\n      }\n    ],\n    \"createdAt\": \"2026-10-02T14:05:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    },
    {
      "name": "Mark an order fulfilled",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/orders/:id/fulfill",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "orders",
            ":id",
            "fulfill"
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Permission: `pos.shipping` or `pos.pos`.\n\nScope: `pos:write`.\n\n`POST /orders/{id}/fulfill` · operationId `orders.fulfill`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/orders/:id/fulfill",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "orders",
                ":id",
                "fulfill"
              ],
              "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\": \"66f1c2a9e4b0a1b2c3d4e505\",\n    \"orderNumber\": \"ORD1790904240356987\",\n    \"status\": \"completed\",\n    \"source\": \"api\",\n    \"storeId\": \"66f1c2a9e4b0a1b2c3d4e501\",\n    \"storeName\": \"Main Street\",\n    \"customer\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\",\n      \"email\": \"ada@example.com\",\n      \"phone\": \"08098765432\"\n    },\n    \"items\": [\n      {\n        \"productId\": \"66f1c2a9e4b0a1b2c3d4e503\",\n        \"variantId\": \"v_1a2b3c4d5e6f\",\n        \"sku\": \"RICE5\",\n        \"name\": \"Rice 5kg\",\n        \"quantity\": 2,\n        \"unitPrice\": {\n          \"amount\": 6500,\n          \"currency\": \"NGN\"\n        },\n        \"total\": {\n          \"amount\": 13000,\n          \"currency\": \"NGN\"\n        }\n      }\n    ],\n    \"subtotal\": {\n      \"amount\": 13000,\n      \"currency\": \"NGN\"\n    },\n    \"discount\": null,\n    \"tax\": {\n      \"amount\": 975,\n      \"rate\": 7.5\n    },\n    \"shipping\": null,\n    \"total\": {\n      \"amount\": 13975,\n      \"currency\": \"NGN\"\n    },\n    \"payment\": {\n      \"method\": \"cash\",\n      \"status\": \"paid\",\n      \"paidAt\": \"2026-10-02T14:05:00.000Z\"\n    },\n    \"fulfillmentStatus\": \"fulfilled\",\n    \"refundStatus\": null,\n    \"staff\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n      \"name\": \"Jane Doe\"\n    },\n    \"note\": \"\",\n    \"statusHistory\": [\n      {\n        \"status\": \"confirmed\",\n        \"at\": \"2026-10-02T14:05:00.000Z\",\n        \"by\": \"Jane Doe\",\n        \"note\": null\n      }\n    ],\n    \"createdAt\": \"2026-10-02T14:05:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    },
    {
      "name": "List refunds",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/refunds",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "refunds"
          ],
          "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": "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": "orderId",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "status",
              "value": "",
              "description": "",
              "disabled": true
            }
          ]
        },
        "description": "Permission: `pos.refund` or `pos.sales`.\n\nScope: `pos:read`.\n\n`GET /refunds` · operationId `refunds.list`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/refunds",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "refunds"
              ],
              "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": "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": "orderId",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "status",
                  "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\": \"66f1c2a9e4b0a1b2c3d4e507\",\n      \"refundNumber\": \"REF-1002\",\n      \"orderId\": \"66f1c2a9e4b0a1b2c3d4e505\",\n      \"orderNumber\": \"ORD1790904240356987\",\n      \"storeId\": \"66f1c2a9e4b0a1b2c3d4e501\",\n      \"status\": \"completed\",\n      \"method\": \"original\",\n      \"reason\": \"damaged\",\n      \"amount\": {\n        \"amount\": 6500,\n        \"currency\": \"NGN\"\n      },\n      \"items\": [\n        {\n          \"productId\": \"66f1c2a9e4b0a1b2c3d4e503\",\n          \"name\": \"Rice 5kg\",\n          \"quantity\": 1\n        }\n      ],\n      \"customer\": {\n        \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n        \"name\": \"Ada Obi\"\n      },\n      \"processedAt\": \"2026-10-02T14:05:00.000Z\",\n      \"createdAt\": \"2026-10-02T14:05:00.000Z\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Get a refund",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/refunds/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "refunds",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Permission: `pos.refund` or `pos.sales`.\n\nScope: `pos:read`.\n\n`GET /refunds/{id}` · operationId `refunds.get`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/refunds/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "refunds",
                ":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\": \"66f1c2a9e4b0a1b2c3d4e507\",\n    \"refundNumber\": \"REF-1002\",\n    \"orderId\": \"66f1c2a9e4b0a1b2c3d4e505\",\n    \"orderNumber\": \"ORD1790904240356987\",\n    \"storeId\": \"66f1c2a9e4b0a1b2c3d4e501\",\n    \"status\": \"completed\",\n    \"method\": \"original\",\n    \"reason\": \"damaged\",\n    \"amount\": {\n      \"amount\": 6500,\n      \"currency\": \"NGN\"\n    },\n    \"items\": [\n      {\n        \"productId\": \"66f1c2a9e4b0a1b2c3d4e503\",\n        \"name\": \"Rice 5kg\",\n        \"quantity\": 1\n      }\n    ],\n    \"customer\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e506\",\n      \"name\": \"Ada Obi\"\n    },\n    \"processedAt\": \"2026-10-02T14:05:00.000Z\",\n    \"createdAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    }
  ]
}