Terminal POS Management

These endpoints allow you to toggle the operating mode of your hardware terminals between "Standalone" and "Point of Sale" modes.

Enable Terminal POS

Enables POS mode for a specific terminal.

Endpoint

  • PUT /api/pos/terminals/:id/enable-pos

Operating Modes

  • POINT_OF_SALE: Standard POS mode.
  • PDV: Spanish abbreviation for Point of Sale mode.

Response

{
  "message": "Terminal enabled for Point of Sale",
  "data": {
    "pos_information_id": "...",
    "operating_mode": "POINT_OF_SALE"
  }
}


Disable Terminal POS

Disables Point of Sale mode for a terminal.

Endpoint

PUT /api/pos/terminals/:id/disable-pos

Response

{
  "message": "Terminal disabled for Point of Sale",
  "data": {
    "pos_information_id": "...",
    "operating_mode": "STANDALONE"
  }
}


Get POS Terminals

Retrieves all terminals with POS information.

Endpoint

GET /api/pos/terminals/point-of-sale

Query Parameters

ParameterTypeDescription
statusstringFilter by terminal status (default: "active")
pos_branches_idstringFilter by branch
has_registerbooleanFilter by register linkage
pagenumberPage number
limitnumberItems per page

Response

{
  "data": [
    {
      "_id": "...",
      "serial_number": "...",
      "is_point_of_sale": true,
      "operating_mode": "POINT_OF_SALE",
      "sales_register": { ... },
      "branch": { ... }
    }
  ],
  "pagination": {
    "total": 10,
    "page": 1,
    "limit": 50,
    "pages": 1
  }
}