{
  "openapi": "3.0.3",
  "info": {
    "title": "Rectify public guest quoting and checkout",
    "version": "1.1.0",
    "description": "Create a guest order without a Rectify account. Choose a material, upload model files, create a quote and wait for it to complete. A checkout is a draft order for that quote; creating one does not charge the customer. Generate a private checkout token and send it in X-Checkout-Token when creating or accessing the checkout. Save shipping details and review the final total, then open the returned Stripe payment URL in a browser. Card details are entered on Stripe's page, not through this API. Check the checkout status for PAID to confirm the order."
  },
  "security": [
    {
      "CheckoutToken": []
    }
  ],
  "paths": {
    "/public/materials/options": {
      "get": {
        "summary": "Get published materials for the public quote flow",
        "description": "Returns materials available for guest quotes and their layer height options.",
        "operationId": "getPublicMaterialOptions",
        "tags": [
          "Public"
        ],
        "responses": {
          "200": {
            "description": "Materials with layer heights retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialOptionsResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          },
          "429": {
            "description": "Rate limit; respect Retry-After."
          }
        },
        "security": []
      }
    },
    "/public/upload/presigned-urls": {
      "post": {
        "summary": "Generate presigned URLs for public file upload",
        "description": "Request one upload URL and file key per file. PUT the file bytes directly to the URL using the same Content-Type before requesting a quote. Do not send the checkout token to the upload URL.",
        "operationId": "generatePublicPresignedUrls",
        "tags": [
          "Public"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratePresignedUrlsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully generated presigned URLs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PresignedUrlResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request - invalid number of files"
          },
          "500": {
            "description": "Internal server error"
          },
          "429": {
            "description": "Rate limit; respect Retry-After."
          }
        },
        "security": []
      }
    },
    "/public/quote": {
      "post": {
        "summary": "Create a public quote",
        "description": "Submit uploaded files with their selected quantities, support options and material settings. Retain quoteId and sessionId from the response and poll the quote until COMPLETE. This operation is not idempotent: do not blindly repeat it after an uncertain response.",
        "operationId": "createPublicQuote",
        "tags": [
          "Public"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Quote accepted for asynchronous processing; poll until COMPLETE or ERROR.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuoteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request - invalid input or no material settings available"
          },
          "500": {
            "description": "Internal server error"
          },
          "503": {
            "description": "Quoting is temporarily unavailable"
          },
          "429": {
            "description": "Rate limit; respect Retry-After."
          }
        },
        "security": []
      }
    },
    "/public/quote/{quoteId}": {
      "get": {
        "summary": "Poll a public quote",
        "description": "Poll with the quoteId and sessionId returned when the quote was created. A COMPLETE response still requires checking each item for broken or out-of-bounds files.",
        "operationId": "getPublicQuote",
        "tags": [
          "Public"
        ],
        "parameters": [
          {
            "name": "quoteId",
            "in": "path",
            "required": true,
            "description": "The quote to read",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sessionId",
            "in": "query",
            "required": true,
            "description": "The session the quote was created under; must match or the quote is not returned",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current quote state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuoteResponse"
                }
              }
            }
          },
          "403": {
            "description": "Quote is not available to this session"
          },
          "404": {
            "description": "Quote not found"
          },
          "500": {
            "description": "Internal server error"
          },
          "429": {
            "description": "Rate limit; respect Retry-After."
          }
        },
        "security": []
      }
    },
    "/public/checkouts": {
      "post": {
        "operationId": "createGuestCheckout",
        "summary": "Create or resume a guest checkout",
        "tags": ["Checkout"],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Checkout"
                },
                "example": {
                  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                  "revision": 1,
                  "country": "GB",
                  "expiresAt": 1893456000,
                  "status": "DRAFT",
                  "details": null,
                  "pricing": null,
                  "orderNumber": null
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or missing checkout token header"
          },
          "401": {
            "description": "Malformed checkout token"
          },
          "403": {
            "description": "Quote is not available to this session"
          },
          "404": {
            "description": "Quote not found"
          },
          "409": {
            "description": "Quote is incomplete or already has a checkout with another token"
          },
          "410": {
            "description": "Expired checkout"
          },
          "429": {
            "description": "Rate limit; respect Retry-After"
          },
          "500": {
            "description": "Server error; retry the same request"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Create"
              }
            }
          }
        },
        "security": [
          {
            "CheckoutToken": []
          }
        ],
        "description": "Create or resume a checkout for a COMPLETE public quote using its quoteId and sessionId. Retry with the same token. Access expires 24 hours after checkout creation."
      }
    },
    "/public/checkouts/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "getGuestCheckout",
        "summary": "Get a guest checkout",
        "tags": ["Checkout"],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Checkout"
                }
              }
            }
          },
          "400": {
            "description": "Invalid checkout ID or missing checkout token header"
          },
          "401": {
            "description": "Malformed checkout token"
          },
          "404": {
            "description": "Checkout absent or inaccessible"
          },
          "410": {
            "description": "Expired checkout"
          },
          "429": {
            "description": "Rate limit; respect Retry-After"
          },
          "500": {
            "description": "Server error; retry the same request"
          }
        },
        "security": [
          {
            "CheckoutToken": []
          }
        ]
      },
      "put": {
        "operationId": "updateGuestCheckout",
        "summary": "Save guest checkout details",
        "tags": ["Checkout"],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Checkout"
                }
              }
            }
          },
          "400": {
            "description": "Invalid checkout details or missing checkout token header"
          },
          "401": {
            "description": "Malformed checkout token"
          },
          "404": {
            "description": "Checkout absent or inaccessible"
          },
          "409": {
            "description": "Checkout changed, quote unavailable, or order can no longer be edited"
          },
          "410": {
            "description": "Expired checkout"
          },
          "429": {
            "description": "Rate limit; respect Retry-After"
          },
          "500": {
            "description": "Server error; retry the same request"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Update"
              }
            }
          }
        },
        "security": [
          {
            "CheckoutToken": []
          }
        ],
        "description": "Save contact and shipping details with the current revision. If quoted parts require vent or drain holes, allowDrainHoles must be true before payment. Use the new revision and review the returned total before payment. Editing expires any existing unpaid Stripe session first."
      }
    },
    "/public/checkouts/{id}/payment": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "payGuestCheckout",
        "summary": "Create a Stripe payment session",
        "tags": ["Checkout"],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Payment"
                }
              }
            }
          },
          "400": {
            "description": "Invalid payment request or missing checkout token header"
          },
          "401": {
            "description": "Malformed checkout token"
          },
          "404": {
            "description": "Checkout absent or inaccessible"
          },
          "409": {
            "description": "Checkout changed, needs details, or can no longer be paid"
          },
          "410": {
            "description": "Expired checkout"
          },
          "429": {
            "description": "Rate limit; respect Retry-After"
          },
          "500": {
            "description": "Server error; retry the same request"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pay"
              }
            }
          }
        },
        "security": [
          {
            "CheckoutToken": []
          }
        ],
        "description": "Create or resume a Stripe hosted payment session for the reviewed revision. On uncertain failures, retry with the same revision and returnUrl. Open the returned URL to pay, then poll the checkout for PAID. The returnUrl must be the Rectify checkout page for this checkout."
      }
    }
  },
  "components": {
    "securitySchemes": {
      "CheckoutToken": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Checkout-Token"
      }
    },
    "schemas": {
      "Create": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "format": "uuid"
          },
          "sessionId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "quoteId",
          "sessionId"
        ]
      },
      "Details": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 320
          },
          "order": {
            "type": "object",
            "properties": {
              "addressLine1": {
                "type": "string"
              },
              "addressLine2": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "stateProvince": {
                "type": "string"
              },
              "postalCode": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "surname": {
                "type": "string"
              },
              "postageType": {
                "type": "string",
                "enum": [
                  "STANDARD",
                  "EXPRESS"
                ]
              },
              "allowDrainHoles": {
                "type": "boolean"
              },
              "companyDetails": {
                "type": "object",
                "properties": {
                  "companyName": {
                    "type": "string"
                  },
                  "vatId": {
                    "type": "string"
                  },
                  "billingEmail": {
                    "type": "string",
                    "format": "email"
                  },
                  "billingAddress": {
                    "type": "object",
                    "properties": {
                      "addressLine1": {
                        "type": "string"
                      },
                      "addressLine2": {
                        "type": "string"
                      },
                      "city": {
                        "type": "string"
                      },
                      "stateProvince": {
                        "type": "string"
                      },
                      "postalCode": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "addressLine1",
                      "city",
                      "postalCode",
                      "country"
                    ]
                  }
                },
                "required": [
                  "companyName"
                ]
              }
            },
            "required": [
              "name",
              "surname",
              "addressLine1",
              "city",
              "postalCode",
              "country"
            ]
          }
        },
        "required": [
          "email",
          "order"
        ]
      },
      "Update": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "details": {
            "$ref": "#/components/schemas/Details"
          }
        },
        "required": [
          "revision",
          "details"
        ]
      },
      "Pay": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 1,
            "example": 2
          },
          "returnUrl": {
            "type": "string",
            "format": "uri",
            "description": "Rectify checkout page for this checkout, at https://app.rectifytech.com/checkout/{id}.",
            "example": "https://app.rectifytech.com/checkout/497f6eca-6276-4993-bfeb-53cbbbba6f08"
          }
        },
        "required": [
          "revision",
          "returnUrl"
        ]
      },
      "Pricing": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "ISO currency code; every amount is in minor units."
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "itemId": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1
                },
                "unitAmount": {
                  "type": "integer",
                  "format": "int64"
                },
                "materialSettingsId": {
                  "type": "string",
                  "format": "uuid",
                  "nullable": true
                },
                "requiresHolePermission": {
                  "type": "boolean"
                },
                "unitWarning": {
                  "type": "string",
                  "nullable": true,
                  "description": "Advisory for a model whose longest side is unusually small; check the export units before ordering."
                }
              },
              "required": [
                "itemId",
                "name",
                "quantity",
                "unitAmount",
                "requiresHolePermission"
              ]
            }
          },
          "subtotal": {
            "type": "integer",
            "format": "int64"
          },
          "shipping": {
            "type": "integer",
            "format": "int64"
          },
          "tax": {
            "type": "integer",
            "format": "int64"
          },
          "fee": {
            "type": "integer",
            "format": "int64"
          },
          "total": {
            "type": "integer",
            "format": "int64"
          }
        },
        "required": [
          "currency",
          "items",
          "subtotal",
          "shipping",
          "tax",
          "fee",
          "total"
        ]
      },
      "Checkout": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "country": {
            "type": "string",
            "example": "GB"
          },
          "expiresAt": {
            "type": "integer",
            "format": "int64",
            "description": "Epoch seconds; access expires 24 hours after creation."
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "PENDING",
              "PAID",
              "PAYMENT_FAILED"
            ]
          },
          "details": {
            "$ref": "#/components/schemas/Details",
            "nullable": true
          },
          "pricing": {
            "$ref": "#/components/schemas/Pricing",
            "nullable": true
          },
          "orderNumber": {
            "type": "integer",
            "nullable": true
          }
        },
        "required": [
          "id",
          "revision",
          "country",
          "expiresAt",
          "status"
        ]
      },
      "Payment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status"
        ]
      },
      "MaterialOptionsResponse": {
        "type": "object",
        "properties": {
          "materials": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MaterialOption"
            }
          }
        }
      },
      "MaterialOption": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Material ID"
          },
          "name": {
            "type": "string",
            "description": "Material name"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Customer-facing description of what this material is good for"
          },
          "color": {
            "type": "string",
            "nullable": true,
            "description": "Hex color code (e.g. \"#FF0000\") representing the material's visual color"
          },
          "technology": {
            "type": "string",
            "enum": [
              "SLA",
              "FDM"
            ],
            "description": "Printing technology (SLA for resin, FDM for filament)"
          },
          "hasDefaultLayerHeight": {
            "type": "boolean",
            "description": "Whether this material contains the default layer height"
          },
          "published": {
            "type": "boolean",
            "description": "Whether this material is published and available for quotes"
          },
          "resinDensityGramsPerMilliliter": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Resin density in grams per millilitre"
          },
          "supportedPrinterModels": {
            "type": "array",
            "nullable": true,
            "description": "Printer models this resin can be printed on",
            "items": {
              "type": "string",
              "enum": [
                "FORM_4",
                "FORM_4L"
              ]
            }
          },
          "layerHeights": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LayerHeightOption"
            }
          }
        }
      },
      "LayerHeightOption": {
        "type": "object",
        "properties": {
          "printerModel": {
            "type": "string",
            "enum": [
              "FORM_4",
              "FORM_4L"
            ],
            "description": "Printer model supported by this layer-height option"
          },
          "materialSettingsId": {
            "type": "string",
            "format": "uuid",
            "description": "Material settings ID for this material/layer height combination"
          },
          "layerThicknessMm": {
            "type": "number",
            "format": "double",
            "description": "Layer thickness in millimeters"
          },
          "isDefault": {
            "type": "boolean",
            "description": "Whether this is the default layer height"
          }
        }
      },
      "GeneratePresignedUrlsRequest": {
        "type": "object",
        "required": [
          "fileNames",
          "fileSizes",
          "contentType"
        ],
        "properties": {
          "fileNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 150,
            "description": "The names of the files to upload (max 150)"
          },
          "fileSizes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Exact byte sizes in fileNames order. Each file must be at most 1 GiB and the total at most 4 GiB."
          },
          "contentType": {
            "type": "string",
            "description": "MIME type for the files. Supported model formats include STL (model/stl, application/sla, application/octet-stream), OBJ (model/obj), 3MF (model/3mf or application/vnd.ms-package.3dmanufacturing-3dmodel+xml), and STEP (model/step, application/step, application/x-step)."
          }
        }
      },
      "PresignedUrlResponse": {
        "type": "object",
        "properties": {
          "presignedUrl": {
            "type": "string",
            "format": "uri",
            "description": "The presigned URL for uploading the file"
          },
          "key": {
            "type": "string",
            "description": "Upload key to include when creating the quote"
          },
          "expirationTime": {
            "type": "integer",
            "format": "int64",
            "description": "When the presigned URL expires (epoch seconds)"
          },
          "uploadToken": {
            "type": "string",
            "description": "Short-lived proof required when a public upload is submitted for a quote"
          }
        }
      },
      "PublicQuoteRequest": {
        "type": "object",
        "required": [
          "files"
        ],
        "properties": {
          "files": {
            "type": "array",
            "description": "Array of files to quote",
            "minItems": 1,
            "maxItems": 150,
            "items": {
              "$ref": "#/components/schemas/PublicQuoteFileItem"
            }
          },
          "technology": {
            "type": "string",
            "description": "Printing technology. Defaults to SLA.",
            "enum": [
              "SLA",
              "FDM"
            ],
            "default": "SLA"
          },
          "infillPercentage": {
            "type": "integer",
            "description": "Infill density percentage. Ignored for SLA.",
            "enum": [
              5,
              10,
              15,
              20,
              25,
              30,
              40,
              50,
              60,
              70,
              80,
              90,
              100
            ],
            "default": 15
          },
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code the customer is buying from. Sets the quote's currency and pricing. Defaults to GB.",
            "minLength": 2,
            "maxLength": 2,
            "default": "GB"
          },
          "sessionId": {
            "type": "string",
            "format": "uuid",
            "description": "Optional client-generated UUID. Retain the sessionId returned by quote creation and use it for quote polling and checkout creation."
          }
        }
      },
      "PublicQuoteFileItem": {
        "type": "object",
        "required": [
          "fileS3Key",
          "fileName",
          "uploadToken"
        ],
        "properties": {
          "fileS3Key": {
            "type": "string",
            "description": "Upload key returned with the upload URL"
          },
          "uploadToken": {
            "type": "string",
            "description": "Short-lived proof returned with the public upload URL"
          },
          "fileName": {
            "type": "string",
            "description": "The original file name"
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "default": 1,
            "description": "Number of copies to print"
          },
          "autoSupport": {
            "type": "boolean",
            "default": false,
            "description": "Whether to automatically add supports"
          },
          "materialSettingsId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "Material settings (material + layer height) selected for this file. When omitted or not a published option, the default material for the quote's technology is used."
          }
        }
      },
      "PublicQuoteResponse": {
        "type": "object",
        "required": [
          "sessionId",
          "items",
          "totalPrice",
          "status"
        ],
        "properties": {
          "quoteId": {
            "type": "string",
            "format": "uuid",
            "description": "Quote ID to use when polling and creating a checkout"
          },
          "sessionId": {
            "type": "string",
            "format": "uuid",
            "description": "Unique session identifier for the quote"
          },
          "items": {
            "type": "array",
            "description": "Array of quoted items",
            "items": {
              "$ref": "#/components/schemas/PublicQuoteItemResponse"
            }
          },
          "totalPrice": {
            "type": "number",
            "format": "double",
            "description": "Total price for all items and quantities, in major currency units"
          },
          "status": {
            "type": "string",
            "description": "Quote processing status",
            "enum": [
              "PROCESSING",
              "COMPLETE",
              "ERROR"
            ]
          },
          "brokenFileNames": {
            "type": "array",
            "description": "Files that could not be processed and were not priced. Upload corrected files to retry.",
            "items": {
              "type": "string"
            }
          },
          "totalFileCount": {
            "type": "integer",
            "nullable": true,
            "description": "Number of files in the current analysis run. Null when none is in flight."
          },
          "completedFileCount": {
            "type": "integer",
            "nullable": true,
            "description": "Number of files in the current analysis run that have finished analysis. Null when no run is in flight.\n"
          },
          "pendingFiles": {
            "type": "array",
            "description": "Files in the current analysis run that have not finished yet, in upload order, so clients can render placeholders for them alongside the completed items.\n",
            "items": {
              "$ref": "#/components/schemas/PendingQuoteFile"
            }
          }
        }
      },
      "PublicQuoteItemResponse": {
        "type": "object",
        "required": [
          "fileName",
          "quantity",
          "price",
          "inBounds"
        ],
        "properties": {
          "unitWarning": {
            "type": "string",
            "nullable": true,
            "description": "Advisory for a model whose longest side is unusually small; ask the customer to check the export units before ordering."
          },
          "requiresHolePermission": {
            "type": "boolean",
            "default": false,
            "description": "Whether this resin part needs vent or drain holes before it can be ordered."
          },
          "fileName": {
            "type": "string",
            "description": "The file name"
          },
          "quantity": {
            "type": "integer",
            "description": "Number of copies"
          },
          "price": {
            "type": "number",
            "format": "double",
            "description": "Price per unit, in major currency units"
          },
          "printTimeSeconds": {
            "type": "integer",
            "nullable": true,
            "description": "Estimated print time in seconds"
          },
          "resinVolumeMilliliters": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Estimated resin volume in milliliters"
          },
          "filamentWeightGrams": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Weight of filament used in grams (FDM only)"
          },
          "technology": {
            "type": "string",
            "nullable": true,
            "description": "The printing technology (SLA or FDM)"
          },
          "infillPercentage": {
            "type": "integer",
            "nullable": true,
            "description": "Infill density percentage (FDM only)"
          },
          "fileS3Key": {
            "type": "string",
            "nullable": true,
            "description": "Upload key for this item. Use it to match the result to the uploaded file."
          },
          "inBounds": {
            "type": "boolean",
            "description": "Whether the model is within printable bounds"
          },
          "isBroken": {
            "type": "boolean",
            "description": "Whether this file could not be processed."
          },
          "autoSupport": {
            "type": "boolean",
            "description": "Whether auto-support was enabled for this model"
          },
          "materialSettingsId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "Material settings (material + layer height) the item was priced against. Reflects the per-file selection, or the default when none was supplied."
          },
          "materialPrices": {
            "type": "array",
            "nullable": true,
            "description": "Prices for all available material/layer-height combinations, each flagged with whether it fits this part",
            "items": {
              "$ref": "#/components/schemas/MaterialPrice"
            }
          },
          "materialSwitchedFrom": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "Set when the quote auto-switched this item's resin because the originally-selected resin does not run on any printer the part fits."
          },
          "materialSwitchedFromName": {
            "type": "string",
            "nullable": true,
            "description": "Display name of the resin that was switched away from"
          },
          "materialSwitchReason": {
            "type": "string",
            "nullable": true,
            "description": "Human-readable explanation of why the resin was switched"
          },
          "previewImageUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "Presigned URL of the rendered preview image"
          }
        }
      },
      "MaterialPrice": {
        "type": "object",
        "properties": {
          "materialSettingsId": {
            "type": "string",
            "format": "uuid",
            "description": "The material settings ID for this price"
          },
          "technology": {
            "type": "string",
            "description": "The printing technology (SLA or FDM)"
          },
          "price": {
            "type": "number",
            "format": "double",
            "description": "The calculated price per unit for this material"
          },
          "inBounds": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether this material runs on a printer the part physically fits on. False means selecting it would make the part unprintable (shown as a doesn't-fit error). Null for FDM / when fit is unknown."
          }
        }
      },
      "PendingQuoteFile": {
        "type": "object",
        "properties": {
          "ordinal": {
            "type": "integer",
            "description": "Zero-based position of this file in the analysis run"
          },
          "fileName": {
            "type": "string",
            "nullable": true,
            "description": "The name of the uploaded file"
          },
          "fileS3Key": {
            "type": "string",
            "description": "Upload key for matching this file to the upload response"
          },
          "fileSizeBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "The size of the uploaded file in bytes"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "/",
      "description": "Use the API origin serving this reference."
    }
  ]
}
