PUT /v1/pricing
Set the pricing rules. Slices that succeed from now on carry a price
https://api.superslice.co/v1/pricingNeeds an API key with the slices:write scope. See Security.
Request body application/json
enabledbooleanrequiredOff keeps the rules but stops pricing new slices
currencystringrequiredISO 4217
3+ chars, up to 3 chars
minimumstringrequiredThe lowest total a slice is priced at
linesobject[]requiredup to 30 items
4 fields in
linesnamestringrequiredShown on the price, such as Filament or Labour
up to 60 chars
basisstringrequiredHow a line is charged: per gram of filament, per hour of print time, once per order, or as a percentage of the other lines
One of
gram,hour,order,percentamountstringrequiredMajor units per gram, hour or order; a percentage for basis percent
variationsobject[]requiredA different amount when the slice uses this printer or filament
up to 200 items, default []
5 fields in
variationskindstringrequiredOne of
filament,machineslicerstringrequiredOne of
bambu-studio,creality-print,elegoo-slicer,prusa-slicerpresetstringA built-in or your own preset's name
up to 200 chars
preset_idstringYour own preset's id; stays matched when the preset is renamed
amountstringrequiredMajor units per gram, hour or order; a percentage for basis percent
Returns 200
OK
dataobject | null5 fields in
dataenabledbooleanOff keeps the rules but stops pricing new slices
currencystringminimumstringThe lowest total a slice is priced at
linesobject[]4 fields in
linesnamestringShown on the price, such as Filament or Labour
up to 60 chars
basisstringHow a line is charged: per gram of filament, per hour of print time, once per order, or as a percentage of the other lines
One of
gram,hour,order,percentamountstringMajor units per gram, hour or order; a percentage for basis percent
variationsobject[]6 fields in
variationskindstringOne of
filament,machineslicerstringOne of
bambu-studio,creality-print,elegoo-slicer,prusa-sliceramountstringpresetstringThe preset's current name
preset_idstring | nullSet for your own presets
preset_statusstring | nullYour own preset's check; null for built-in presets
updated_atstringISO 8601 timestamp