docs
SupportConsole

PUT /v1/pricing

Set the pricing rules. Slices that succeed from now on carry a price

PUThttps://api.superslice.co/v1/pricing

Needs an API key with the slices:write scope. See Security.

Request body application/json

  • enabledbooleanrequired

    Off keeps the rules but stops pricing new slices

  • currencystringrequired

    ISO 4217

    3+ chars, up to 3 chars

  • minimumstringrequired

    The lowest total a slice is priced at

  • linesobject[]required

    up to 30 items

    4 fields in lines
    • namestringrequired

      Shown on the price, such as Filament or Labour

      up to 60 chars

    • basisstringrequired

      How 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, percent

    • amountstringrequired

      Major units per gram, hour or order; a percentage for basis percent

    • variationsobject[]required

      A different amount when the slice uses this printer or filament

      up to 200 items, default []

      5 fields in variations
      • kindstringrequired

        One of filament, machine

      • slicerstringrequired

        One of bambu-studio, creality-print, elegoo-slicer, prusa-slicer

      • presetstring

        A built-in or your own preset's name

        up to 200 chars

      • preset_idstring

        Your own preset's id; stays matched when the preset is renamed

      • amountstringrequired

        Major units per gram, hour or order; a percentage for basis percent

Returns 200

OK

  • dataobject | null
    5 fields in data
    • enabledboolean

      Off keeps the rules but stops pricing new slices

    • currencystring
    • minimumstring

      The lowest total a slice is priced at

    • linesobject[]
      4 fields in lines
      • namestring

        Shown on the price, such as Filament or Labour

        up to 60 chars

      • basisstring

        How 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, percent

      • amountstring

        Major units per gram, hour or order; a percentage for basis percent

      • variationsobject[]
        6 fields in variations
        • kindstring

          One of filament, machine

        • slicerstring

          One of bambu-studio, creality-print, elegoo-slicer, prusa-slicer

        • amountstring
        • presetstring

          The preset's current name

        • preset_idstring | null

          Set for your own presets

        • preset_statusstring | null

          Your own preset's check; null for built-in presets

    • updated_atstring

      ISO 8601 timestamp

Errors

400Invalid request Codes
401Missing or wrong API key Codes
403Missing scope Codes
429Rate limited; see Retry-After Codes