GuideLab API

Create a print batch

Creates a new print batch in queued state. Verifies printer is idle with no current batch and that all order items belong to the lab. Generates a sequential name Batch-YYYYMMDD-XX.

POST
/production/print-batches

Creates a new print batch in queued state. Verifies printer is idle with no current batch and that all order items belong to the lab. Generates a sequential name Batch-YYYYMMDD-XX.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/production/print-batches" \  -H "Content-Type: application/json" \  -d '{    "printerId": "string",    "orderItemIds": [      "string"    ]  }'
{  "batch": {    "id": "string",    "labId": "string",    "printerId": "string",    "roomId": "string",    "name": "string",    "status": "queued",    "startedAt": "string",    "completedAt": "string",    "createdByMemberId": "string",    "completedByMemberId": "string",    "notes": "string",    "failureReason": "string",    "durationSeconds": 0,    "createdAt": "string",    "updatedAt": "string",    "orderItems": [      {        "id": "string",        "orderId": "string",        "orderNumber": "string",        "productName": "string",        "material": "string"      }    ],    "orderItemsTruncated": true  }}
Empty
Empty
Empty