Flavours API
Printer

List Printers

GET
/api/v2/printers

List all printers with pagination and filtering options.

AuthorizationBearer <token>

You can retrieve your token by logging in.

In: header

Header Parameters

X-API-Version*string

API contract version to target. See the Changelog for what changed in each version.

Default"2.0.0"
Value in"2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"

Request Body

application/json

page?|

Must be at least 1.

per_page?|

Must be at least 1.

search?|
sort?|
includes*array<>
filter?

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.flavours.sa/dev/api/v2/printers" \  -H "X-API-Version: 2.3.0" \  -H "Content-Type: application/json" \  -d '{    "includes": [      "consequatur"    ]  }'
{
  "meta": {
    "code": 200,
    "status": "success",
    "message": "Printer list retrieved successfully."
  },
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 5,
        "market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
        "branch_id": null,
        "printer_type_id": 1,
        "target": "ORDER",
        "name": "Quo velit Printer",
        "ip": "2.6.133.171",
        "copy": 1,
        "is_active": true,
        "created_at": 1787446698606,
        "updated_at": 1787446698606,
        "service_type": "RECEIPT",
        "paper_width": "80",
        "font_size": null,
        "settings": {
          "MULTILINGUAL": false,
          "PRODUCT_SHOW": false,
          "DRAWER_OPEN": false,
          "PRINT_POSTPAID": false,
          "PRINT_IMAGE": false,
          "PRINT_AUTO": false,
          "APP_TO_APP": false,
          "HAS_SPACE": false,
          "RASTER": true,
          "PDF": false
        },
        "add_space": false
      },
      {
        "id": 4,
        "market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
        "branch_id": null,
        "printer_type_id": 1,
        "target": "ORDER",
        "name": "Occaecati in Printer",
        "ip": "218.221.103.223",
        "copy": 1,
        "is_active": true,
        "created_at": 1787446698606,
        "updated_at": 1787446698606,
        "service_type": "RECEIPT",
        "paper_width": "80",
        "font_size": null,
        "settings": {
          "MULTILINGUAL": false,
          "PRODUCT_SHOW": false,
          "DRAWER_OPEN": false,
          "PRINT_POSTPAID": false,
          "PRINT_IMAGE": false,
          "PRINT_AUTO": false,
          "APP_TO_APP": false,
          "HAS_SPACE": false,
          "RASTER": true,
          "PDF": false
        },
        "add_space": false
      },
      {
        "id": 3,
        "market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
        "branch_id": null,
        "printer_type_id": 1,
        "target": "ORDER",
        "name": "Repellendus et Printer",
        "ip": "229.5.144.38",
        "copy": 1,
        "is_active": true,
        "created_at": 1787446698606,
        "updated_at": 1787446698606,
        "service_type": "RECEIPT",
        "paper_width": "80",
        "font_size": null,
        "settings": {
          "MULTILINGUAL": false,
          "PRODUCT_SHOW": false,
          "DRAWER_OPEN": false,
          "PRINT_POSTPAID": false,
          "PRINT_IMAGE": false,
          "PRINT_AUTO": false,
          "APP_TO_APP": false,
          "HAS_SPACE": false,
          "RASTER": true,
          "PDF": false
        },
        "add_space": false
      },
      {
        "id": 2,
        "market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
        "branch_id": null,
        "printer_type_id": 1,
        "target": "ORDER",
        "name": "Vitae natus Printer",
        "ip": "252.127.14.40",
        "copy": 1,
        "is_active": true,
        "created_at": 1787446698606,
        "updated_at": 1787446698606,
        "service_type": "RECEIPT",
        "paper_width": "80",
        "font_size": null,
        "settings": {
          "MULTILINGUAL": false,
          "PRODUCT_SHOW": false,
          "DRAWER_OPEN": false,
          "PRINT_POSTPAID": false,
          "PRINT_IMAGE": false,
          "PRINT_AUTO": false,
          "APP_TO_APP": false,
          "HAS_SPACE": false,
          "RASTER": true,
          "PDF": false
        },
        "add_space": false
      },
      {
        "id": 1,
        "market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
        "branch_id": null,
        "printer_type_id": 1,
        "target": "ORDER",
        "name": "Et vel Printer",
        "ip": "71.53.67.43",
        "copy": 1,
        "is_active": true,
        "created_at": 1787446698606,
        "updated_at": 1787446698606,
        "service_type": "RECEIPT",
        "paper_width": "80",
        "font_size": null,
        "settings": {
          "MULTILINGUAL": false,
          "PRODUCT_SHOW": false,
          "DRAWER_OPEN": false,
          "PRINT_POSTPAID": false,
          "PRINT_IMAGE": false,
          "PRINT_AUTO": false,
          "APP_TO_APP": false,
          "HAS_SPACE": false,
          "RASTER": true,
          "PDF": false
        },
        "add_space": false
      }
    ],
    "first_page_url": "http://localhost:8000/api/v2/printers?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://localhost:8000/api/v2/printers?page=1",
    "links": [
      {
        "url": null,
        "label": "&laquo; Previous",
        "page": null,
        "active": false
      },
      {
        "url": "http://localhost:8000/api/v2/printers?page=1",
        "label": "1",
        "page": 1,
        "active": true
      },
      {
        "url": null,
        "label": "Next &raquo;",
        "page": null,
        "active": false
      }
    ],
    "next_page_url": null,
    "path": "http://localhost:8000/api/v2/printers",
    "per_page": 20,
    "prev_page_url": null,
    "to": 5,
    "total": 5
  }
}
{
  "meta": {
    "code": 401,
    "status": "error",
    "message": "Unauthenticated."
  },
  "data": null
}
{
  "meta": {
    "code": 403,
    "status": "error",
    "message": "Unauthorized."
  },
  "data": null
}
{
  "meta": {
    "code": 404,
    "status": "error",
    "message": "Resource not found."
  },
  "data": null
}
{
  "meta": {
    "code": 500,
    "status": "error",
    "message": "Internal server error."
  },
  "data": null
}