Chartquery

Label Validate

POST
/v1/label/validate

Validate printer commands. POST source (the raw commands) and language (tsc, zpl, epl, …).

Credit cost: 1 credit per call

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/label/validate" \  -H "Content-Type: application/json" \  -d '{    "source": "string",    "language": "tsc"  }'
{  "infos": 0,  "valid": false,  "errors": 1,  "issues": [    {      "level": "error",      "command": "TEXT",      "message": "CLS must appear before label elements"    },    {      "level": "warning",      "message": "No GAP command found"    }  ],  "warnings": 1}
{  "error": "Bad Request"}
{  "error": "Internal Error"}