Printago API
POST /v1/filament-stock/convert

Convert bulk to spools

Turn bulk weight into individually tracked spools Needs the filament-inventory and spool-tracking add-ons. Each spool holds whole grams, and bulk gives up exactly what the spools get. Asking for more than bulk holds is refused with a 400 `InsufficientBulkStock` saying how much is there and how many spools would fit.

Requires: material.edit

Request Body

The variant, how many spools, and how much each holds

ConvertBulkToSpoolsRequest
countrequired
integer
min: 1max: 500
formrequired
"spool" | "refill"
spoolrefill
generateLabelCodesoptional
boolean
Reserve a QR label code on each new spool.
gramsEachrequired
number
min: 1
variantIdrequired
string
pattern: ^[a-z0-9]{24}$

Example Request

application/json
{
  "variantId": "string",
  "count": 1,
  "gramsEach": 1,
  "form": "spool",
  "generateLabelCodes": true
}

Response Schema

ConvertBulkToSpoolsResponse
instanceIdsrequired
string[]
remainingGramsrequired
number

Example Response

201 OK — application/json
{
  "instanceIds": [
    "string"
  ],
  "remainingGrams": 1
}