NOTE: User must me logged in as admin to access this API

Get all the available barcode templates (Currently only One.)

URL : service-desk/barcode/template

Method : GET

Success Response:

{
  "success": true,
  "data": {
    "id": 10,
    "width": "2",
    "height": "1",
    "labels_per_row": "4",
    "space_between_labels": "4",
    "logo_image": "/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAeAAD/7gAOQWRvYmUAZMAAAAABk=",
    "created_at": "2020-03-30 08:54:14",
    "updated_at": "2020-03-30 08:54:14",
    "type": "system_default",
    "display_logo_confirmed": 1,
  }
}

Creates a barcode template

URL : service-desk/barcode/template/create

Method : POST

Query Parameters :

Parameter Type Possible Values Required/Optional Description
width string range 0.5-8.5 Required Width in inches of the individual barcode label
height string range 0.5-11 Required Height in inches of the individual barcode label
space_between_labels string range 1-10 Required Space between individual barcode labels
labels_per_row string range 1-10 Required Number of Labels in each row.
display_logo_confirmed string 1,0 Required Specifies whether the logo image is displayed or not.
logo_image image .jpg/.png Optional Image to be displayed as logo

Success Response:

{
  "success": true,
  "message": "Template Saved Successfully"
}

Updates a barcode template

URL : service-desk/barcode/template/update/{id}

Method : POST

Query Parameters :

Parameter Type Possible Values Required/Optional Description
id string 1,10 Required ID of the template to update
width string 1,10 Required Width in inches of the individual barcode label
height string 1,10 Required Height in inches of the individual barcode label
space_between_labels string 1,10 Required Space between individual barcode labels
labels_per_row string 1,10 Required Number of Labels in each row.
display_logo_confirmed string 1,0 Required Specifies whether the logo image is displayed or not.
logo_image image .jpg/.png Optional Image to be displayed as logo

Success Response:

{
  "success": true,
  "message": "Template Saved Successfully"
}

Deletes a barcode template

URL : service-desk/barcode/template/delete/{id}

Method : DELETE

Query Parameters :

Success Response:{ “success”: true, “message”: “Template removed Successfully” }

Parameter Type Possible Values Required/Optional Description
id string 1,10 Required ID of the template to delete

Leave a Reply

Your email address will not be published.