{
  "openapi": "3.1.1",
  "info": {
    "title": "Feinerfab API (unstable)",
    "version": "unstable",
    "description": "The channel for trying the Feinerfab API out. Its operations may change or go away at any time, without notice, so do not build production software on it."
  },
  "servers": [
    {
      "url": "https://{shop}.feinerfab.net/api/unstable",
      "variables": {
        "shop": {
          "default": "your-shop",
          "description": "The shop's slug: the `{shop}` in the shop's address, `{shop}.feinerfab.net`."
        }
      }
    }
  ],
  "security": [
    {
      "shopAccessToken": []
    }
  ],
  "tags": [
    {
      "name": "Access",
      "description": "Check the token that a request presents: whose it is, what it may do, and when it expires."
    },
    {
      "name": "Orders",
      "description": "Read the shop's orders: list them page by page, or only those changed since a time, and read one order with its lines, customer, amounts and progress."
    },
    {
      "name": "Stations",
      "description": "Read and change the stations of the shop: the machines and other places where capabilities run, with their sizes and hourly prices."
    },
    {
      "name": "Material kinds",
      "description": "Read and change the kinds of material the shop sells, such as plywood or acrylic, and which finishings and frame profiles fit them."
    },
    {
      "name": "Materials",
      "description": "Read and change the materials of the shop: each one a material kind in one thickness and color, with its price per square meter and the capabilities that cut and engrave it."
    }
  ],
  "paths": {
    "/me": {
      "get": {
        "operationId": "getMe",
        "summary": "Check the token",
        "description": "Returns the shop and the token that the request presents. Call it to check that a token works, and to see its scope and when it expires.",
        "tags": ["Access"],
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeResult"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/orders": {
      "get": {
        "operationId": "listOrders",
        "summary": "List the orders",
        "description": "Returns the shop's orders one page at a time, the newest first unless `sort` says otherwise. Each order comes as a summary, without its lines, taxes, and payment and delivery methods: `getOrder` returns those, and they never change after checkout.\n\nA page holds `limit` orders. `next_cursor` leads to the next page and is `null` on the last page; `previous_cursor` leads to the page before and is `null` on the first page. Send a cursor back as `cursor`, with the same `sort` and `updated_since` as the first request; `limit` may change from page to page. A cursor sent with another `sort` is refused with 400 `invalid-request`.\n\nTo keep another system in sync, list the orders with `sort=updated_at` and `updated_since`, and remember the latest `updated_at` you saw. On the next run, send `updated_since` one minute before that time: `updated_at` is the time a change started, so a change that was still being saved during your last run can have an earlier time than the orders you saw. The orders at that boundary come again, so update your copy by the order's `id`. The list includes orders in every status, drafts and cancelled orders too.",
        "tags": ["Orders"],
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "description": "The `next_cursor` or the `previous_cursor` of another page, as it is. Send it with the same `sort` and filters as the first page.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "How many items a page holds.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "The order of the list: `created_at` or `updated_at`, the oldest first, or with a `-` in front, the newest first.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "description": "Only the orders changed at this time or later, in any status. A date-time with a time zone; times have millisecond precision.",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderSummaryPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/orders/{order}": {
      "get": {
        "operationId": "getOrder",
        "summary": "Get an order",
        "description": "Returns one order with its lines, taxes, and payment and delivery methods. These never change after checkout; the statuses, the paid and refunded amounts and the progress times do, and each change sets a new `updated_at`. All amounts are numbers in the order's `currency`.\n\nWhen the shop deletes a material, a pattern or a frame, the lines that used it keep its codes and titles, but their `material_id` and the source ids in their `design` become `null`. This does not set a new `updated_at`.",
        "tags": ["Orders"],
        "parameters": [
          {
            "name": "order",
            "in": "path",
            "description": "The order's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/stations": {
      "get": {
        "operationId": "listStations",
        "summary": "List the stations",
        "description": "Returns every station of the shop's workshop on one page: `next_cursor` and `previous_cursor` are always `null`.",
        "tags": ["Stations"],
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StationPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "post": {
        "operationId": "createStation",
        "summary": "Create a station",
        "description": "Creates a station and returns it with its id. The code must be unique in the shop: a code that another station has answers 409 `already-exists`.",
        "tags": ["Stations"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StationDraft"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/InsufficientScope"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/ContentTooLarge"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/stations/{station}": {
      "get": {
        "operationId": "getStation",
        "summary": "Get a station",
        "description": "Returns one station. The path names the station by its id, or by its code with `by=code`.",
        "tags": ["Stations"],
        "parameters": [
          {
            "name": "station",
            "in": "path",
            "description": "The station's id, or its code when `by=code`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "description": "Which key the path holds: `id`, the default, or `code`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["id", "code"],
              "default": "id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "patch": {
        "operationId": "updateStation",
        "summary": "Change a station",
        "description": "Changes the fields that the body carries, keeps the others, and returns the station. The path names the station by its id, or by its code with `by=code`. A `code` in the body is the station's new code.",
        "tags": ["Stations"],
        "parameters": [
          {
            "name": "station",
            "in": "path",
            "description": "The station's id, or its code when `by=code`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "description": "Which key the path holds: `id`, the default, or `code`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["id", "code"],
              "default": "id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StationPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/InsufficientScope"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/ContentTooLarge"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "delete": {
        "operationId": "deleteStation",
        "summary": "Delete a station",
        "description": "Deletes a station. The path names the station by its id, or by its code with `by=code`. While capabilities run on the station, the delete is refused with 409 `entity-in-use`. With `force=true`, the station is deleted anyway and leaves the processing profiles of those capabilities; the capabilities stay.",
        "tags": ["Stations"],
        "parameters": [
          {
            "name": "station",
            "in": "path",
            "description": "The station's id, or its code when `by=code`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "description": "Which key the path holds: `id`, the default, or `code`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["id", "code"],
              "default": "id"
            }
          },
          {
            "name": "force",
            "in": "query",
            "description": "`true` deletes the station even while capabilities run on it; they lose it from their processing profiles.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/InsufficientScope"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/material-kinds": {
      "get": {
        "operationId": "listMaterialKinds",
        "summary": "List the material kinds",
        "description": "Returns every material kind of the shop on one page: `next_cursor` and `previous_cursor` are always `null`.",
        "tags": ["Material kinds"],
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialKindPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "post": {
        "operationId": "createMaterialKind",
        "summary": "Create a material kind",
        "description": "Creates a material kind and returns it with its id. The code must be unique in the shop: a code that another kind has answers 409 `already-exists`. The body names the category and each compatibility group as `{\"id\": …}` or `{\"code\": …}`. A reference that names no entity of the shop answers 400 `invalid-request` pointing at it.",
        "tags": ["Material kinds"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MaterialKindDraft"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialKindResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/InsufficientScope"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/ContentTooLarge"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/material-kinds/{material_kind}": {
      "get": {
        "operationId": "getMaterialKind",
        "summary": "Get a material kind",
        "description": "Returns one material kind. The path names the material kind by its id, or by its code with `by=code`.",
        "tags": ["Material kinds"],
        "parameters": [
          {
            "name": "material_kind",
            "in": "path",
            "description": "The material kind's id, or its code when `by=code`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "description": "Which key the path holds: `id`, the default, or `code`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["id", "code"],
              "default": "id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialKindResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "patch": {
        "operationId": "updateMaterialKind",
        "summary": "Change a material kind",
        "description": "Changes the fields that the body carries, keeps the others, and returns the material kind. The path names the material kind by its id, or by its code with `by=code`. A `code` in the body is the kind's new code. The body names the category and each compatibility group as `{\"id\": …}` or `{\"code\": …}`. A reference that names no entity of the shop answers 400 `invalid-request` pointing at it.",
        "tags": ["Material kinds"],
        "parameters": [
          {
            "name": "material_kind",
            "in": "path",
            "description": "The material kind's id, or its code when `by=code`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "description": "Which key the path holds: `id`, the default, or `code`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["id", "code"],
              "default": "id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MaterialKindPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialKindResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/InsufficientScope"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/ContentTooLarge"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "delete": {
        "operationId": "deleteMaterialKind",
        "summary": "Delete a material kind",
        "description": "Deletes a material kind. The path names the material kind by its id, or by its code with `by=code`. While the kind has materials, the delete is refused with 409 `entity-in-use`. With `force=true`, the kind is deleted together with its materials, and past orders keep their record of those materials.",
        "tags": ["Material kinds"],
        "parameters": [
          {
            "name": "material_kind",
            "in": "path",
            "description": "The material kind's id, or its code when `by=code`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "description": "Which key the path holds: `id`, the default, or `code`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["id", "code"],
              "default": "id"
            }
          },
          {
            "name": "force",
            "in": "query",
            "description": "`true` deletes the material kind even while it has materials, and deletes them with it.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/InsufficientScope"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/materials": {
      "get": {
        "operationId": "listMaterials",
        "summary": "List the materials",
        "description": "Returns every material of the shop on one page: `next_cursor` and `previous_cursor` are always `null`.",
        "tags": ["Materials"],
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "post": {
        "operationId": "createMaterial",
        "summary": "Create a material",
        "description": "Creates a material and returns it with its id. The code must be unique in the shop: a code that another material has answers 409 `already-exists`. The body names each entity it refers to as `{\"id\": …}` or `{\"code\": …}`. A reference that names no entity of the shop answers 400 `invalid-request` pointing at it.",
        "tags": ["Materials"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MaterialDraft"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/InsufficientScope"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/ContentTooLarge"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/materials/{material}": {
      "get": {
        "operationId": "getMaterial",
        "summary": "Get a material",
        "description": "Returns one material. The path names the material by its id, or by its code with `by=code`.",
        "tags": ["Materials"],
        "parameters": [
          {
            "name": "material",
            "in": "path",
            "description": "The material's id, or its code when `by=code`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "description": "Which key the path holds: `id`, the default, or `code`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["id", "code"],
              "default": "id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "patch": {
        "operationId": "updateMaterial",
        "summary": "Change a material",
        "description": "Changes the fields that the body carries, keeps the others, and returns the material. The path names the material by its id, or by its code with `by=code`. A `code` in the body is the material's new code. The kind is set when the material is created and cannot change. In `processing_capabilities`, a slot that the body leaves out keeps its capability, and `null` clears it. The body names each entity it refers to as `{\"id\": …}` or `{\"code\": …}`. A reference that names no entity of the shop answers 400 `invalid-request` pointing at it.",
        "tags": ["Materials"],
        "parameters": [
          {
            "name": "material",
            "in": "path",
            "description": "The material's id, or its code when `by=code`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "description": "Which key the path holds: `id`, the default, or `code`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["id", "code"],
              "default": "id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MaterialPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/InsufficientScope"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/ContentTooLarge"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "delete": {
        "operationId": "deleteMaterial",
        "summary": "Delete a material",
        "description": "Deletes a material. The path names the material by its id, or by its code with `by=code`. Past orders keep their record of the material. If the material is the default material of a design kind, new designs of that kind start with the first material that the shop offers again.",
        "tags": ["Materials"],
        "parameters": [
          {
            "name": "material",
            "in": "path",
            "description": "The material's id, or its code when `by=code`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "description": "Which key the path holds: `id`, the default, or `code`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["id", "code"],
              "default": "id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The operation succeeded.",
            "headers": {
              "Api-Channel": {
                "$ref": "#/components/headers/Api-Channel"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/InsufficientScope"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Address": {
        "type": "object",
        "properties": {
          "country": {
            "anyOf": [
              {
                "type": "string",
                "const": "US",
                "enum": ["US"]
              },
              {
                "type": "string",
                "const": "GB",
                "enum": ["GB"]
              },
              {
                "type": "string",
                "const": "CA",
                "enum": ["CA"]
              },
              {
                "type": "string",
                "const": "AU",
                "enum": ["AU"]
              },
              {
                "type": "string",
                "const": "CH",
                "enum": ["CH"]
              },
              {
                "type": "string",
                "const": "AT",
                "enum": ["AT"]
              },
              {
                "type": "string",
                "const": "BE",
                "enum": ["BE"]
              },
              {
                "type": "string",
                "const": "BG",
                "enum": ["BG"]
              },
              {
                "type": "string",
                "const": "HR",
                "enum": ["HR"]
              },
              {
                "type": "string",
                "const": "CY",
                "enum": ["CY"]
              },
              {
                "type": "string",
                "const": "CZ",
                "enum": ["CZ"]
              },
              {
                "type": "string",
                "const": "DK",
                "enum": ["DK"]
              },
              {
                "type": "string",
                "const": "EE",
                "enum": ["EE"]
              },
              {
                "type": "string",
                "const": "FI",
                "enum": ["FI"]
              },
              {
                "type": "string",
                "const": "FR",
                "enum": ["FR"]
              },
              {
                "type": "string",
                "const": "DE",
                "enum": ["DE"]
              },
              {
                "type": "string",
                "const": "GR",
                "enum": ["GR"]
              },
              {
                "type": "string",
                "const": "HU",
                "enum": ["HU"]
              },
              {
                "type": "string",
                "const": "IE",
                "enum": ["IE"]
              },
              {
                "type": "string",
                "const": "IT",
                "enum": ["IT"]
              },
              {
                "type": "string",
                "const": "LV",
                "enum": ["LV"]
              },
              {
                "type": "string",
                "const": "LT",
                "enum": ["LT"]
              },
              {
                "type": "string",
                "const": "LU",
                "enum": ["LU"]
              },
              {
                "type": "string",
                "const": "MT",
                "enum": ["MT"]
              },
              {
                "type": "string",
                "const": "NL",
                "enum": ["NL"]
              },
              {
                "type": "string",
                "const": "PL",
                "enum": ["PL"]
              },
              {
                "type": "string",
                "const": "PT",
                "enum": ["PT"]
              },
              {
                "type": "string",
                "const": "RO",
                "enum": ["RO"]
              },
              {
                "type": "string",
                "const": "SK",
                "enum": ["SK"]
              },
              {
                "type": "string",
                "const": "SI",
                "enum": ["SI"]
              },
              {
                "type": "string",
                "const": "ES",
                "enum": ["ES"]
              },
              {
                "type": "string",
                "const": "SE",
                "enum": ["SE"]
              },
              {
                "type": "string"
              }
            ],
            "description": "The country, as a two-letter ISO 3166-1 code such as `DE`."
          },
          "region": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressRegion"
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "type": "string",
            "description": "The city."
          },
          "street_line": {
            "type": "string",
            "description": "The street and the house number."
          },
          "supplement_line": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A second address line, such as an apartment or a company department, or `null` when there is none."
          },
          "postal_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The postal code, or `null` when the address has none."
          }
        },
        "required": [
          "country",
          "region",
          "city",
          "street_line",
          "supplement_line",
          "postal_code"
        ],
        "description": "A postal address. `region` is `null` when the address has no region.",
        "title": "Address"
      },
      "AddressRegion": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/UsStateRegion"
          },
          {
            "$ref": "#/components/schemas/CaProvinceRegion"
          },
          {
            "$ref": "#/components/schemas/AuStateRegion"
          },
          {
            "$ref": "#/components/schemas/DeLandRegion"
          },
          {
            "$ref": "#/components/schemas/FreeFormRegion"
          }
        ],
        "description": "The state or another region of an address.",
        "title": "AddressRegion",
        "discriminator": {
          "propertyName": "kind",
          "mapping": {
            "us_state": "#/components/schemas/UsStateRegion",
            "ca_province": "#/components/schemas/CaProvinceRegion",
            "au_state": "#/components/schemas/AuStateRegion",
            "de_land": "#/components/schemas/DeLandRegion",
            "free_form": "#/components/schemas/FreeFormRegion"
          }
        }
      },
      "AlreadyExistsProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/already-exists",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/already-exists"
            ]
          },
          "title": {
            "type": "string",
            "const": "Already exists",
            "enum": ["Already exists"]
          },
          "status": {
            "type": "number",
            "const": 409,
            "enum": [409]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          },
          "entity_type": {
            "type": "string",
            "description": "The kind of the entity, for example `Order`."
          },
          "field": {
            "type": "string",
            "description": "The field whose value must be unique."
          },
          "value": {
            "type": "string",
            "description": "The value that is already taken."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "request_id",
          "entity_type",
          "field",
          "value"
        ],
        "description": "Another entity already has this value in a field that must be unique.",
        "title": "AlreadyExistsProblem"
      },
      "ApiAccessToken": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The token's id."
          },
          "name": {
            "type": "string",
            "description": "The name the shop gave the token when it created it."
          },
          "owner": {
            "type": "string",
            "const": "shop",
            "enum": ["shop"],
            "description": "The party the token belongs to and acts for. `shop`: the shop itself."
          },
          "scope": {
            "type": "string",
            "enum": ["read", "read_write"],
            "description": "What the token may do: `read`, or `read_write` to read and write."
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the token stops working; `null` when it does not expire."
          }
        },
        "required": ["id", "name", "owner", "scope", "expires_at"],
        "description": "A shop access token: its id, its name, whom it acts for, what it may do, and when it expires.",
        "title": "ApiAccessToken"
      },
      "AuStateRegion": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "au_state",
            "enum": ["au_state"]
          },
          "value": {
            "type": "string",
            "description": "The code, such as `NSW`."
          }
        },
        "required": ["kind", "value"],
        "description": "A state or territory of Australia.",
        "title": "AuStateRegion"
      },
      "BodyError": {
        "type": "object",
        "properties": {
          "detail": {
            "type": "string",
            "description": "What is wrong with this part of the request."
          },
          "pointer": {
            "type": "string",
            "description": "A JSON Pointer (RFC 6901) to the invalid part of the body. An empty string is the body as a whole."
          }
        },
        "required": ["detail", "pointer"],
        "description": "A part of the request body that is not valid, found by its JSON Pointer.",
        "title": "BodyError"
      },
      "CaProvinceRegion": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "ca_province",
            "enum": ["ca_province"]
          },
          "value": {
            "type": "string",
            "description": "The two-letter code, such as `ON`."
          }
        },
        "required": ["kind", "value"],
        "description": "A province or territory of Canada.",
        "title": "CaProvinceRegion"
      },
      "ConcurrentModificationProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/concurrent-modification",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/concurrent-modification"
            ]
          },
          "title": {
            "type": "string",
            "const": "Concurrent modification",
            "enum": ["Concurrent modification"]
          },
          "status": {
            "type": "number",
            "const": 409,
            "enum": [409]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          },
          "entity_type": {
            "type": "string",
            "description": "The kind of the entity, for example `Order`."
          },
          "id": {
            "type": "string",
            "description": "The id of the entity."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "request_id",
          "entity_type",
          "id"
        ],
        "description": "The entity changed while the request was running. Read it again, then retry.",
        "title": "ConcurrentModificationProblem"
      },
      "ContentTooLargeProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/content-too-large",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/content-too-large"
            ]
          },
          "title": {
            "type": "string",
            "const": "Content too large",
            "enum": ["Content too large"]
          },
          "status": {
            "type": "number",
            "const": 413,
            "enum": [413]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          }
        },
        "required": ["type", "title", "status", "detail", "request_id"],
        "description": "The request body is larger than 64 KiB, the most the API accepts.",
        "title": "ContentTooLargeProblem"
      },
      "DeLandRegion": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "de_land",
            "enum": ["de_land"]
          },
          "value": {
            "type": "string",
            "description": "The state's two-letter code, such as `BY`."
          }
        },
        "required": ["kind", "value"],
        "description": "A state of Germany (Land).",
        "title": "DeLandRegion"
      },
      "EntityInUseProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/entity-in-use",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/entity-in-use"
            ]
          },
          "title": {
            "type": "string",
            "const": "Entity in use",
            "enum": ["Entity in use"]
          },
          "status": {
            "type": "number",
            "const": 409,
            "enum": [409]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          },
          "entity_type": {
            "type": "string",
            "description": "The kind of the entity, for example `Order`."
          },
          "id": {
            "type": "string",
            "description": "The id of the entity."
          },
          "dependent_type": {
            "type": "string",
            "description": "The kind of the entities that depend on this one."
          },
          "dependent_count": {
            "type": "integer",
            "minimum": 1,
            "description": "How many entities depend on this one."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "request_id",
          "entity_type",
          "id",
          "dependent_type",
          "dependent_count"
        ],
        "description": "The entity cannot be deleted: other entities depend on it.",
        "title": "EntityInUseProblem"
      },
      "FeetMount": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "feet",
            "enum": ["feet"]
          },
          "leg_length_mm": {
            "type": "number",
            "description": "The length of each leg, in millimeters."
          },
          "plate_width_mm": {
            "type": "number",
            "description": "The width of each plate, in millimeters."
          },
          "plate_depth_mm": {
            "type": "number",
            "description": "The depth of each plate, in millimeters."
          }
        },
        "required": [
          "kind",
          "leg_length_mm",
          "plate_width_mm",
          "plate_depth_mm"
        ],
        "description": "Legs that stand on plates.",
        "title": "FeetMount"
      },
      "FreeFormRegion": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "free_form",
            "enum": ["free_form"]
          },
          "value": {
            "type": "string",
            "description": "The region's name."
          }
        },
        "required": ["kind", "value"],
        "description": "A region by its name, in a country without a fixed list of regions.",
        "title": "FreeFormRegion"
      },
      "InsufficientScopeProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/insufficient-scope",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/insufficient-scope"
            ]
          },
          "title": {
            "type": "string",
            "const": "Insufficient scope",
            "enum": ["Insufficient scope"]
          },
          "status": {
            "type": "number",
            "const": 403,
            "enum": [403]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          }
        },
        "required": ["type", "title", "status", "detail", "request_id"],
        "description": "The scope of the access token does not allow this operation: a `read` token sent a request that writes.",
        "title": "InsufficientScopeProblem"
      },
      "InternalProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/internal",
            "enum": ["https://developers.feinerfab.com/rest/problems/internal"]
          },
          "title": {
            "type": "string",
            "const": "Internal error",
            "enum": ["Internal error"]
          },
          "status": {
            "type": "number",
            "const": 500,
            "enum": [500]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          }
        },
        "required": ["type", "title", "status", "detail", "request_id"],
        "description": "The server failed. Quote the `request_id` when you contact support.",
        "title": "InternalProblem"
      },
      "InvalidRequestProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/invalid-request",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/invalid-request"
            ]
          },
          "title": {
            "type": "string",
            "const": "Invalid request",
            "enum": ["Invalid request"]
          },
          "status": {
            "type": "number",
            "const": 400,
            "enum": [400]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          },
          "errors": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/BodyError"
                },
                {
                  "$ref": "#/components/schemas/ParameterError"
                }
              ]
            },
            "type": "array",
            "description": "Each entry names one invalid part of the request and says what is wrong with it."
          }
        },
        "required": ["type", "title", "status", "detail", "request_id"],
        "description": "A parameter or the body is missing or malformed, or a value breaks a rule.",
        "title": "InvalidRequestProblem"
      },
      "LayerRole": {
        "type": "object",
        "properties": {
          "layer_color": {
            "type": "string",
            "description": "The layer's color, from `C00` to `C16`: the layer colors of LightBurn, `C00` being black."
          },
          "role": {
            "type": "string",
            "description": "What the laser does with the layer: `cut`, `engrave-light`, `engrave-medium` or `engrave-heavy`, or `ignore` to leave it out."
          }
        },
        "required": ["layer_color", "role"],
        "description": "What the laser does with the lines of one color in the drawing.",
        "title": "LayerRole"
      },
      "LegsMount": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "legs",
            "enum": ["legs"]
          },
          "length_mm": {
            "type": "number",
            "description": "The length of each leg, in millimeters."
          }
        },
        "required": ["kind", "length_mm"],
        "description": "Legs that go into the ground.",
        "title": "LegsMount"
      },
      "Material": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "A short code that names the material, unique in the shop. A path names the material by its code with `by=code`."
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the material's color, as the shop's customers see it, or `null` when the material has no color."
          },
          "thickness_mm": {
            "type": "number",
            "description": "The thickness of the material, in millimeters."
          },
          "price_ncu_m2": {
            "type": "number",
            "description": "The price of a square meter of the material, in the shop's currency."
          },
          "tile_size_mm": {
            "type": "number",
            "description": "The grid size for cut boxes, in millimeters. A cut box is the rectangle that the laser cuts around a design, and each of its sides is rounded up to a whole number of grid steps. `0` means no grid."
          },
          "drawing_padding_mm": {
            "type": "number",
            "description": "The space between a design and its cut box on each side, in millimeters. A cut box is the rectangle that the laser cuts around a design."
          },
          "id": {
            "type": "string",
            "description": "The material's id, a UUID."
          },
          "kind": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The entity's id, a UUID."
              }
            },
            "required": ["id"],
            "description": "The material kind of the material. It is set when the material is created and cannot change."
          },
          "status": {
            "type": "string",
            "enum": ["active", "inactive"],
            "description": "Whether the shop offers the material to its customers: `active` or `inactive`. An inactive material is left out of the catalog, and a design kind whose default material is inactive starts with the first material that the shop offers."
          },
          "appearance": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The entity's id, a UUID."
                  }
                },
                "required": ["id"]
              },
              {
                "type": "null"
              }
            ],
            "description": "The appearance that shows the material in the designer's 3D preview, or `null` when the material shows in plain gray."
          },
          "processing_capabilities": {
            "$ref": "#/components/schemas/MaterialProcessingCapabilities"
          }
        },
        "required": [
          "code",
          "color",
          "thickness_mm",
          "price_ncu_m2",
          "tile_size_mm",
          "drawing_padding_mm",
          "id",
          "kind",
          "status",
          "appearance",
          "processing_capabilities"
        ],
        "description": "A material of the shop: one material kind in one thickness and color, with its price per square meter and the capabilities that cut and engrave it.",
        "title": "Material"
      },
      "MaterialDraft": {
        "type": "object",
        "properties": {
          "kind": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              }
            ],
            "description": "The material kind of the material, by its id or code. It is set when the material is created and cannot change."
          },
          "status": {
            "type": "string",
            "enum": ["active", "inactive"],
            "description": "Whether the shop offers the material to its customers: `active` or `inactive`. An inactive material is left out of the catalog."
          },
          "appearance": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The appearance that shows the material in the designer's 3D preview, by its id or code, or `null` for plain gray. It must be a cover appearance: a glaze is refused."
          },
          "code": {
            "type": "string",
            "description": "A short code that names the material, unique in the shop. A path names the material by its code with `by=code`. Spaces at the start and the end are removed, and a code of spaces only is refused.",
            "maxLength": 30,
            "minLength": 1
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the material's color, as the shop's customers see it, or `null` for none. Spaces at the start and the end are removed, and a name of spaces only is refused."
          },
          "thickness_mm": {
            "type": "number",
            "description": "The thickness of the material, in millimeters.",
            "minimum": 0
          },
          "price_ncu_m2": {
            "type": "number",
            "description": "The price of a square meter of the material, in the shop's currency.",
            "minimum": 0
          },
          "tile_size_mm": {
            "type": "number",
            "description": "The grid size for cut boxes, in millimeters. A cut box is the rectangle that the laser cuts around a design, and each of its sides is rounded up to a whole number of grid steps. `0` means no grid.",
            "minimum": 0
          },
          "drawing_padding_mm": {
            "type": "number",
            "description": "The space between a design and its cut box on each side, in millimeters. A cut box is the rectangle that the laser cuts around a design.",
            "minimum": 0
          },
          "processing_capabilities": {
            "$ref": "#/components/schemas/MaterialProcessingCapabilitiesDraft"
          }
        },
        "additionalProperties": false,
        "required": [
          "kind",
          "code",
          "thickness_mm",
          "price_ncu_m2",
          "tile_size_mm",
          "drawing_padding_mm"
        ],
        "description": "A material to create. A material created without `color` has none, one created without `appearance` shows in plain gray, one created without `processing_capabilities` has no capability, and one created without `status` is inactive.",
        "title": "MaterialDraft"
      },
      "MaterialKind": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "The material kind's name, as the shop's staff and customers see it."
          },
          "code": {
            "type": "string",
            "description": "A short code that names the material kind, unique in the shop. A path names the kind by its code with `by=code`."
          },
          "compatibility_mode": {
            "type": "string",
            "enum": ["universal", "general", "groups"],
            "description": "Which finishings and frame profiles fit the materials of this kind. `universal`: all of them. `general`: those whose own mode is `universal` or `general`. `groups`: those whose own mode is `universal`, and those that share a compatibility group with the kind."
          },
          "id": {
            "type": "string",
            "description": "The material kind's id, a UUID."
          },
          "category": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The entity's id, a UUID."
                  }
                },
                "required": ["id"]
              },
              {
                "type": "null"
              }
            ],
            "description": "The category that groups the kind with others in the shop's material picker, or `null` when the kind has none."
          },
          "compatibility_groups": {
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The entity's id, a UUID."
                }
              },
              "required": ["id"]
            },
            "type": "array",
            "description": "The compatibility groups of the kind. The list is empty unless `compatibility_mode` is `groups`."
          }
        },
        "required": [
          "title",
          "code",
          "compatibility_mode",
          "id",
          "category",
          "compatibility_groups"
        ],
        "description": "A kind of material that the shop sells, such as plywood or acrylic. Each material of the shop belongs to one kind, and the kind's compatibility decides which finishings and frame profiles fit it.",
        "title": "MaterialKind"
      },
      "MaterialKindDraft": {
        "type": "object",
        "properties": {
          "category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The category that groups the kind with others in the shop's material picker, by its id or code, or `null` for none."
          },
          "compatibility_groups": {
            "default": [],
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ReferenceById"
                },
                {
                  "$ref": "#/components/schemas/ReferenceByCode"
                }
              ]
            },
            "type": "array",
            "description": "The compatibility groups of the kind, each by its id or code. They are allowed only with `compatibility_mode` `groups`, and then at least one is required. With another mode, leave the list out or send it empty."
          },
          "title": {
            "type": "string",
            "description": "The material kind's name, as the shop's staff and customers see it. Spaces at the start and the end are removed, and a name of spaces only is refused.",
            "maxLength": 100,
            "minLength": 1
          },
          "code": {
            "type": "string",
            "description": "A short code that names the material kind, unique in the shop. A path names the kind by its code with `by=code`. Spaces at the start and the end are removed, and a code of spaces only is refused.",
            "maxLength": 30,
            "minLength": 1
          },
          "compatibility_mode": {
            "type": "string",
            "enum": ["universal", "general", "groups"],
            "description": "Which finishings and frame profiles fit the materials of this kind. `universal`: all of them. `general`: those whose own mode is `universal` or `general`. `groups`: those whose own mode is `universal`, and those that share a compatibility group with the kind."
          }
        },
        "additionalProperties": false,
        "required": ["title", "code", "compatibility_mode"],
        "description": "A material kind to create. A kind created without `category` has no category.",
        "title": "MaterialKindDraft"
      },
      "MaterialKindPage": {
        "type": "object",
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/MaterialKind"
            },
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it as `cursor` to get the next page. `null` on the last page."
          },
          "previous_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it as `cursor` to get the page before. `null` on the first page."
          }
        },
        "required": ["results", "next_cursor", "previous_cursor"],
        "title": "MaterialKindPage"
      },
      "MaterialKindPatch": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "The material kind's name, as the shop's staff and customers see it. Spaces at the start and the end are removed, and a name of spaces only is refused.",
            "maxLength": 100,
            "minLength": 1
          },
          "code": {
            "type": "string",
            "description": "A short code that names the material kind, unique in the shop. A path names the kind by its code with `by=code`. Spaces at the start and the end are removed, and a code of spaces only is refused.",
            "maxLength": 30,
            "minLength": 1
          },
          "category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The category that groups the kind with others in the shop's material picker, by its id or code, or `null` for none."
          },
          "compatibility_mode": {
            "type": "string",
            "enum": ["universal", "general", "groups"],
            "description": "Which finishings and frame profiles fit the materials of this kind. `universal`: all of them. `general`: those whose own mode is `universal` or `general`. `groups`: those whose own mode is `universal`, and those that share a compatibility group with the kind."
          },
          "compatibility_groups": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ReferenceById"
                },
                {
                  "$ref": "#/components/schemas/ReferenceByCode"
                }
              ]
            },
            "type": "array",
            "description": "The compatibility groups of the kind, each by its id or code. They are allowed only with `compatibility_mode` `groups`, and then at least one is required. With another mode, leave the list out or send it empty."
          }
        },
        "additionalProperties": false,
        "description": "The fields to change. A field that the patch leaves out keeps its value, and `compatibility_groups` replaces the whole list. A patch that changes `compatibility_mode` away from `groups` removes the kind's groups.",
        "title": "MaterialKindPatch"
      },
      "MaterialKindResult": {
        "type": "object",
        "properties": {
          "result": {
            "$ref": "#/components/schemas/MaterialKind"
          }
        },
        "required": ["result"],
        "title": "MaterialKindResult"
      },
      "MaterialPage": {
        "type": "object",
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/Material"
            },
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it as `cursor` to get the next page. `null` on the last page."
          },
          "previous_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it as `cursor` to get the page before. `null` on the first page."
          }
        },
        "required": ["results", "next_cursor", "previous_cursor"],
        "title": "MaterialPage"
      },
      "MaterialPatch": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "A short code that names the material, unique in the shop. A path names the material by its code with `by=code`. Spaces at the start and the end are removed, and a code of spaces only is refused.",
            "maxLength": 30,
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": ["active", "inactive"],
            "description": "Whether the shop offers the material to its customers: `active` or `inactive`. An inactive material is left out of the catalog."
          },
          "appearance": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The appearance that shows the material in the designer's 3D preview, by its id or code, or `null` for plain gray. It must be a cover appearance: a glaze is refused."
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the material's color, as the shop's customers see it, or `null` for none. Spaces at the start and the end are removed, and a name of spaces only is refused."
          },
          "thickness_mm": {
            "type": "number",
            "description": "The thickness of the material, in millimeters.",
            "minimum": 0
          },
          "price_ncu_m2": {
            "type": "number",
            "description": "The price of a square meter of the material, in the shop's currency.",
            "minimum": 0
          },
          "tile_size_mm": {
            "type": "number",
            "description": "The grid size for cut boxes, in millimeters. A cut box is the rectangle that the laser cuts around a design, and each of its sides is rounded up to a whole number of grid steps. `0` means no grid.",
            "minimum": 0
          },
          "drawing_padding_mm": {
            "type": "number",
            "description": "The space between a design and its cut box on each side, in millimeters. A cut box is the rectangle that the laser cuts around a design.",
            "minimum": 0
          },
          "processing_capabilities": {
            "$ref": "#/components/schemas/MaterialProcessingCapabilitiesPatch"
          }
        },
        "additionalProperties": false,
        "description": "The fields to change. A field that the patch leaves out keeps its value. The kind is set when the material is created and cannot change.",
        "title": "MaterialPatch"
      },
      "MaterialProcessingCapabilities": {
        "type": "object",
        "properties": {
          "cutting": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The entity's id, a UUID."
                  }
                },
                "required": ["id"]
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that cuts the material, or `null` when none does."
          },
          "engraving_light": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The entity's id, a UUID."
                  }
                },
                "required": ["id"]
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that does light engraving on the material, or `null` when none does."
          },
          "engraving_medium": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The entity's id, a UUID."
                  }
                },
                "required": ["id"]
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that does medium engraving on the material, or `null` when none does."
          },
          "engraving_heavy": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The entity's id, a UUID."
                  }
                },
                "required": ["id"]
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that does heavy engraving on the material, or `null` when none does."
          }
        },
        "required": [
          "cutting",
          "engraving_light",
          "engraving_medium",
          "engraving_heavy"
        ],
        "description": "The capabilities that process the material: one for cutting, and one for each depth of engraving.",
        "title": "MaterialProcessingCapabilities"
      },
      "MaterialProcessingCapabilitiesDraft": {
        "type": "object",
        "properties": {
          "cutting": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that cuts the material, by its id or code, or `null` for none. It must be a cutting capability."
          },
          "engraving_light": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that does light engraving on the material, by its id or code, or `null` for none. It must be an engraving capability."
          },
          "engraving_medium": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that does medium engraving on the material, by its id or code, or `null` for none. It must be an engraving capability."
          },
          "engraving_heavy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that does heavy engraving on the material, by its id or code, or `null` for none. It must be an engraving capability."
          }
        },
        "additionalProperties": false,
        "description": "The capabilities that process the material: one for cutting, and one for each depth of engraving. A slot that is left out holds no capability.",
        "title": "MaterialProcessingCapabilitiesDraft"
      },
      "MaterialProcessingCapabilitiesPatch": {
        "type": "object",
        "properties": {
          "cutting": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that cuts the material, by its id or code, or `null` for none. It must be a cutting capability."
          },
          "engraving_light": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that does light engraving on the material, by its id or code, or `null` for none. It must be an engraving capability."
          },
          "engraving_medium": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that does medium engraving on the material, by its id or code, or `null` for none. It must be an engraving capability."
          },
          "engraving_heavy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReferenceById"
              },
              {
                "$ref": "#/components/schemas/ReferenceByCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The capability that does heavy engraving on the material, by its id or code, or `null` for none. It must be an engraving capability."
          }
        },
        "additionalProperties": false,
        "description": "The capabilities to change: one for cutting, and one for each depth of engraving. A slot that is left out keeps its capability, and `null` clears it.",
        "title": "MaterialProcessingCapabilitiesPatch"
      },
      "MaterialResult": {
        "type": "object",
        "properties": {
          "result": {
            "$ref": "#/components/schemas/Material"
          }
        },
        "required": ["result"],
        "title": "MaterialResult"
      },
      "Me": {
        "type": "object",
        "properties": {
          "shop": {
            "type": "string",
            "description": "The shop the token belongs to, by its slug: the `{shop}` in `{shop}.feinerfab.net`."
          },
          "token": {
            "$ref": "#/components/schemas/ApiAccessToken"
          }
        },
        "required": ["shop", "token"],
        "description": "The shop and the token of a request.",
        "title": "Me"
      },
      "MeResult": {
        "type": "object",
        "properties": {
          "result": {
            "$ref": "#/components/schemas/Me"
          }
        },
        "required": ["result"],
        "title": "MeResult"
      },
      "MethodNotAllowedProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/method-not-allowed",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/method-not-allowed"
            ]
          },
          "title": {
            "type": "string",
            "const": "Method not allowed",
            "enum": ["Method not allowed"]
          },
          "status": {
            "type": "number",
            "const": 405,
            "enum": [405]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          }
        },
        "required": ["type", "title", "status", "detail", "request_id"],
        "description": "The path does not take this method. The `Allow` header lists the methods it takes.",
        "title": "MethodNotAllowedProblem"
      },
      "NoMount": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "none",
            "enum": ["none"]
          }
        },
        "required": ["kind"],
        "description": "The panel has no mount.",
        "title": "NoMount"
      },
      "NotFoundProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/not-found",
            "enum": ["https://developers.feinerfab.com/rest/problems/not-found"]
          },
          "title": {
            "type": "string",
            "const": "Not found",
            "enum": ["Not found"]
          },
          "status": {
            "type": "number",
            "const": 404,
            "enum": [404]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          },
          "entity_type": {
            "type": "string",
            "description": "The kind of the entity, for example `Order`."
          },
          "field": {
            "type": "string",
            "description": "The field the entity was looked up by: `id`, or a key such as `code`."
          },
          "value": {
            "type": "string",
            "description": "The value that no entity has in that field."
          }
        },
        "required": ["type", "title", "status", "detail", "request_id"],
        "description": "The host serves no API, no operation has this path, or the entity does not exist.",
        "title": "NotFoundProblem"
      },
      "Order": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The order's id, a UUID."
          },
          "number": {
            "type": "string",
            "description": "The order's number, as the shop and its customers see it, such as `#1042`. It is the shop's prefix for order numbers followed by a sequence number. The prefix is `#` unless the shop changed it, and it may be empty. A new prefix applies to new orders only. The shop numbers its orders in sequence, so a number is unique in the shop."
          },
          "customer": {
            "$ref": "#/components/schemas/OrderCustomer"
          },
          "status": {
            "type": "string",
            "enum": ["draft", "open", "done", "cancelled"],
            "description": "The state of the order. `draft`: a quote that the shop has not approved yet. `open`: an approved order that is not done yet. `done`: the order was dispatched or picked up, and its payment is settled. `cancelled`: the order was cancelled."
          },
          "payment_status": {
            "type": "string",
            "enum": [
              "deferred",
              "unpaid",
              "partially_paid",
              "paid",
              "partially_refunded",
              "refunded",
              "voided"
            ],
            "description": "The state of the payment. `deferred`: the order is not approved yet, so nothing is due. `unpaid`: nothing is paid. `partially_paid`: the amount paid, less refunds, is below the total. `paid`: the amount paid, less refunds, covers the total. `partially_refunded`: as `paid`, and some amount was refunded. `refunded`: everything paid was refunded. `voided`: the order was cancelled before any payment."
          },
          "fulfillment_status": {
            "type": "string",
            "enum": [
              "on_hold",
              "pending",
              "in_progress",
              "fulfilled",
              "cancelled"
            ],
            "description": "The state of the work. `on_hold`: the order is not approved yet, or it has no payment yet and its payment is not settled. `pending`: the order is ready to be made. `in_progress`: the order is made and waits to be dispatched or picked up. `fulfilled`: the order was dispatched or picked up. `cancelled`: the order was cancelled."
          },
          "paid_amount": {
            "type": "number",
            "description": "The amount the customer paid, in `currency`, refunds not deducted."
          },
          "refunded_amount": {
            "type": "number",
            "description": "The amount refunded to the customer, in `currency`."
          },
          "grand_total_amount": {
            "type": "number",
            "description": "The total of the order, in `currency`: the lines, the taxes that the prices do not include, the delivery fee, and the surcharge or discount of the payment method."
          },
          "currency": {
            "type": "string",
            "description": "The currency of every amount of the order, as an ISO 4217 code such as `EUR`: the shop's currency at the time of the order."
          },
          "created_at": {
            "type": "string",
            "description": "The time the customer placed the order."
          },
          "approved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the shop approved the order, or `null` while the order is not approved."
          },
          "paid_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the payments reached the total, or `null` while they have not."
          },
          "settled_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the payment was settled, or `null` while it is not. A payment is settled when the payments reach the total, or when the shop settles it with an amount still open."
          },
          "manufactured_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the shop finished making the order, or `null` while it has not."
          },
          "dispatched_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the order was dispatched or picked up, or `null` while it has not been."
          },
          "cancelled_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the order was cancelled, or `null` when it is not cancelled."
          },
          "updated_at": {
            "type": "string",
            "description": "The time of the order's last change. `listOrders` explains how to sync orders with it."
          },
          "items_subtotal": {
            "type": "number",
            "description": "The sum of the lines' `total_price`, in `currency`."
          },
          "lines": {
            "items": {
              "$ref": "#/components/schemas/OrderLine"
            },
            "type": "array",
            "description": "The lines of the order, one for each design the customer ordered."
          },
          "taxes": {
            "items": {
              "$ref": "#/components/schemas/OrderTax"
            },
            "type": "array",
            "description": "The taxes applied to the order at checkout."
          },
          "payment_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderPaymentMethod"
              },
              {
                "type": "null"
              }
            ],
            "description": "The payment method the customer chose, or `null` when the order has none."
          },
          "delivery_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderDeliveryMethod"
              },
              {
                "type": "null"
              }
            ],
            "description": "The delivery method the customer chose, or `null` when the order has none and the delivery is arranged outside the shop."
          }
        },
        "required": [
          "id",
          "number",
          "customer",
          "status",
          "payment_status",
          "fulfillment_status",
          "paid_amount",
          "refunded_amount",
          "grand_total_amount",
          "currency",
          "created_at",
          "approved_at",
          "paid_at",
          "settled_at",
          "manufactured_at",
          "dispatched_at",
          "cancelled_at",
          "updated_at",
          "items_subtotal",
          "lines",
          "taxes",
          "payment_method",
          "delivery_method"
        ],
        "description": "An order with its lines, taxes, and payment and delivery methods. The lines, the taxes and the methods never change after checkout. Amounts are numbers in `currency`. Times are date-times in UTC with millisecond precision.",
        "title": "Order"
      },
      "OrderCustomer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The customer's id, a UUID."
          },
          "first_name": {
            "type": "string",
            "description": "The customer's first name."
          },
          "last_name": {
            "type": "string",
            "description": "The customer's last name."
          },
          "email": {
            "type": "string",
            "description": "The customer's e-mail address."
          },
          "phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The customer's phone number, or `null` when the customer gave none."
          }
        },
        "required": ["id", "first_name", "last_name", "email", "phone"],
        "description": "The customer as the order recorded them at checkout. A later change to the customer's details does not change the orders placed before.",
        "title": "OrderCustomer"
      },
      "OrderDeliveryFixedPrice": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "fixed",
            "enum": ["fixed"]
          },
          "amount": {
            "type": "number",
            "description": "The delivery fee, in the order's currency."
          }
        },
        "required": ["kind", "amount"],
        "description": "A fixed delivery fee, which is part of the order's total.",
        "title": "OrderDeliveryFixedPrice"
      },
      "OrderDeliveryMethod": {
        "type": "object",
        "properties": {
          "delivery_method_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the delivery method, or `null` once the delivery method is deleted."
          },
          "title": {
            "type": "string",
            "description": "The delivery method's name, as it was at checkout."
          },
          "code": {
            "type": "string",
            "description": "The delivery method's code, as it was at checkout."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The delivery method's description, as it was at checkout, or `null` when it had none."
          },
          "kind": {
            "type": "string",
            "enum": ["pickup", "delivery"],
            "description": "`pickup` when the customer picks the order up, `delivery` when the shop sends it."
          },
          "price": {
            "$ref": "#/components/schemas/OrderDeliveryPrice"
          },
          "destination": {
            "$ref": "#/components/schemas/Address"
          },
          "currency": {
            "type": "string",
            "description": "The currency of the price's amount, the same as the order's."
          }
        },
        "required": [
          "delivery_method_id",
          "title",
          "code",
          "description",
          "kind",
          "price",
          "destination",
          "currency"
        ],
        "description": "The delivery method the customer chose, as the order recorded it at checkout. `destination` is the address where the order changes hands: the pickup address for `pickup`, the customer's shipping address for `delivery`.",
        "title": "OrderDeliveryMethod"
      },
      "OrderDeliveryPrice": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/OrderDeliveryFixedPrice"
          },
          {
            "$ref": "#/components/schemas/OrderDeliveryPriceQuotedSeparately"
          }
        ],
        "description": "The price of the delivery, as it was at checkout.",
        "title": "OrderDeliveryPrice",
        "discriminator": {
          "propertyName": "kind",
          "mapping": {
            "fixed": "#/components/schemas/OrderDeliveryFixedPrice",
            "quoted_separately": "#/components/schemas/OrderDeliveryPriceQuotedSeparately"
          }
        }
      },
      "OrderDeliveryPriceQuotedSeparately": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "quoted_separately",
            "enum": ["quoted_separately"]
          }
        },
        "required": ["kind"],
        "description": "The shop tells the customer the delivery fee separately, and the order's total does not include it.",
        "title": "OrderDeliveryPriceQuotedSeparately"
      },
      "OrderLine": {
        "type": "object",
        "properties": {
          "source_url": {
            "type": "string",
            "description": "For a file design, the address of the file the customer uploaded; an empty string for the other kinds of design."
          },
          "description": {
            "type": "string",
            "description": "A short name of the design, such as the name of the uploaded file."
          },
          "material_code": {
            "type": "string",
            "description": "The material's code, as it was at checkout."
          },
          "material_description": {
            "type": "string",
            "description": "The material as the customer saw it at checkout, such as its kind, thickness and color, in the customer's language and units."
          },
          "quantity": {
            "type": "integer",
            "description": "How many items of the design the customer ordered."
          },
          "currency": {
            "type": "string",
            "description": "The currency of the line's amounts, the same as the order's."
          },
          "material_price": {
            "type": "number",
            "description": "The price of a square meter of the material, in `currency`."
          },
          "item_material_area_m2": {
            "type": "number",
            "description": "The area of material that one item takes, in square meters: the area of its cut box."
          },
          "cut_price": {
            "type": "number",
            "description": "The price of a meter of cutting, in `currency`."
          },
          "item_cut_length_m": {
            "type": "number",
            "description": "The length that the laser cuts for one item, in meters, the cut box included."
          },
          "piercing_price": {
            "type": "number",
            "description": "The price of one piercing, in `currency`. The laser pierces the material once at the start of each path it cuts."
          },
          "item_piercing_count": {
            "type": "integer",
            "description": "How many times the laser pierces the material for one item."
          },
          "engraving_price": {
            "type": "number",
            "description": "The price of a meter of engraving, in `currency`."
          },
          "item_engraving_length_m": {
            "type": "number",
            "description": "The length that the laser engraves for one item, in meters."
          },
          "setup_fee": {
            "type": "number",
            "description": "The fee for setting up the cutting of one item, in `currency`."
          },
          "frame_profile_length_m": {
            "type": "number",
            "description": "The length of frame profile that one item needs, in meters; `0` without a panel frame."
          },
          "frame_profile_price_ncu_m": {
            "type": "number",
            "description": "The price of a meter of the frame profile, in `currency`."
          },
          "frame_building_price_ncu_m": {
            "type": "number",
            "description": "The price of building a meter of the frame, in `currency`."
          },
          "frame_setup_fee": {
            "type": "number",
            "description": "The fee for setting up the building of the frame of one item, in `currency`."
          },
          "bend_count": {
            "type": "integer",
            "description": "How many times the workshop bends the sheet parts of one item; `0` for a design that is not a planter."
          },
          "bend_price": {
            "type": "number",
            "description": "The price of one bend, in `currency`; `0` for a design that is not a planter or when the workshop does not price bending."
          },
          "weld_length_m": {
            "type": "number",
            "description": "The length of the welds of one item, in meters; `0` for a design that is not a planter."
          },
          "weld_price_ncu_m": {
            "type": "number",
            "description": "The price of a meter of welding, in `currency`; `0` for a design that is not a planter or when the workshop does not price welding."
          },
          "trellis_post_length_m": {
            "type": "number",
            "description": "The length of the trellis posts of one item, in meters; `0` without a trellis."
          },
          "trellis_post_price_ncu_m": {
            "type": "number",
            "description": "The price of a meter of trellis post, in `currency`; `0` for a design that is not a planter or when the workshop does not price trellis posts."
          },
          "bending_setup_fee": {
            "type": "number",
            "description": "The fee for setting up the bending of one item, in `currency`; `0` for a design that is not a planter or when the workshop does not price bending."
          },
          "welding_setup_fee": {
            "type": "number",
            "description": "The fee for setting up the welding of one item, in `currency`; `0` for a design that is not a planter or when the workshop does not price welding."
          },
          "finishing_area_m2": {
            "type": "number",
            "description": "The area of one item that gets the finishing, in square meters; `0` without a finishing."
          },
          "finishing_material_price_ncu_m2": {
            "type": "number",
            "description": "The price of the finishing material for a square meter, in `currency`."
          },
          "finishing_application_price_ncu_m2": {
            "type": "number",
            "description": "The price of applying the finishing to a square meter, in `currency`."
          },
          "finishing_setup_fee": {
            "type": "number",
            "description": "The fee for setting up the finishing of one item, in `currency`."
          },
          "sheet_parts": {
            "items": {
              "$ref": "#/components/schemas/OrderLineSheetPart"
            },
            "type": "array",
            "description": "The parts the laser cuts out of sheet for one item. `item_material_area_m2`, `item_cut_length_m`, `item_piercing_count` and `item_engraving_length_m` are their sums over every piece."
          },
          "id": {
            "type": "string",
            "description": "The line's id, a UUID."
          },
          "material_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the material, or `null` once the material is deleted; `material_code` and `material_description` stay."
          },
          "item_price": {
            "type": "number",
            "description": "The price of one item, in `currency`: the material, the cutting, the piercings, the engraving, the frame, the bending, the welding, the trellis posts, the finishing and the setup fees."
          },
          "total_price": {
            "type": "number",
            "description": "The price of the line, in `currency`: `item_price` times `quantity`."
          },
          "design": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLineDesign"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the workshop makes for the line, or `null` when the order did not record it."
          }
        },
        "required": [
          "source_url",
          "description",
          "material_code",
          "material_description",
          "quantity",
          "currency",
          "material_price",
          "item_material_area_m2",
          "cut_price",
          "item_cut_length_m",
          "piercing_price",
          "item_piercing_count",
          "engraving_price",
          "item_engraving_length_m",
          "setup_fee",
          "frame_profile_length_m",
          "frame_profile_price_ncu_m",
          "frame_building_price_ncu_m",
          "frame_setup_fee",
          "bend_count",
          "bend_price",
          "weld_length_m",
          "weld_price_ncu_m",
          "trellis_post_length_m",
          "trellis_post_price_ncu_m",
          "bending_setup_fee",
          "welding_setup_fee",
          "finishing_area_m2",
          "finishing_material_price_ncu_m2",
          "finishing_application_price_ncu_m2",
          "finishing_setup_fee",
          "sheet_parts",
          "id",
          "material_id",
          "item_price",
          "total_price",
          "design"
        ],
        "description": "A line of an order: one design in a quantity, with the prices and the measures of one item that its price is made of. Every amount is in `currency`.",
        "title": "OrderLine"
      },
      "OrderLineDesign": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/OrderLineFileDesign"
          },
          {
            "$ref": "#/components/schemas/OrderLineShapeDesign"
          },
          {
            "$ref": "#/components/schemas/OrderLinePatternPanelDesign"
          },
          {
            "$ref": "#/components/schemas/OrderLinePlanterDesign"
          }
        ],
        "description": "What the workshop makes for the line, as the order recorded it at checkout: the material, the layer roles, the finishing, and what is special to the kind of design, which `kind` names. A source id, such as `pattern_id`, becomes `null` when that entity is deleted, and the code and the name beside it stay.",
        "title": "OrderLineDesign",
        "discriminator": {
          "propertyName": "kind",
          "mapping": {
            "file": "#/components/schemas/OrderLineFileDesign",
            "shape": "#/components/schemas/OrderLineShapeDesign",
            "pattern_panel": "#/components/schemas/OrderLinePatternPanelDesign",
            "planter": "#/components/schemas/OrderLinePlanterDesign"
          }
        }
      },
      "OrderLineFileDesign": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "file",
            "enum": ["file"]
          },
          "scale": {
            "type": "number",
            "description": "The scale the drawing is cut at: `1` cuts it at the size it was drawn."
          },
          "material_kind_title": {
            "type": "string",
            "description": "The name of the material's kind, as it was at checkout."
          },
          "material_thickness_mm": {
            "type": "number",
            "description": "The thickness of the material, in millimeters."
          },
          "material_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the material's color, as it was at checkout, or `null` when the material has no color."
          },
          "layer_roles": {
            "items": {
              "$ref": "#/components/schemas/LayerRole"
            },
            "type": "array",
            "description": "What the laser does with each layer color of the drawing."
          },
          "finishing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLineFinishing"
              },
              {
                "type": "null"
              }
            ],
            "description": "The finishing of the items, or `null` when they have none."
          }
        },
        "required": [
          "kind",
          "scale",
          "material_kind_title",
          "material_thickness_mm",
          "material_color",
          "layer_roles",
          "finishing"
        ],
        "description": "A drawing that the customer uploaded.",
        "title": "OrderLineFileDesign"
      },
      "OrderLineFinishing": {
        "type": "object",
        "properties": {
          "finishing_material_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the finishing material, or `null` once the finishing material is deleted."
          },
          "finishing_material_code": {
            "type": "string",
            "description": "The finishing material's code, as it was at checkout."
          },
          "finishing_material_title": {
            "type": "string",
            "description": "The finishing material's name, as it was at checkout."
          },
          "finishing_kind_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the finishing kind, or `null` once the finishing kind is deleted."
          },
          "finishing_kind_code": {
            "type": "string",
            "description": "The finishing kind's code, as it was at checkout."
          },
          "finishing_kind_title": {
            "type": "string",
            "description": "The finishing kind's name, as it was at checkout."
          }
        },
        "required": [
          "finishing_material_id",
          "finishing_material_code",
          "finishing_material_title",
          "finishing_kind_id",
          "finishing_kind_code",
          "finishing_kind_title"
        ],
        "description": "The finishing of the items, such as a powder coating in one color: the finishing material, with its finishing kind.",
        "title": "OrderLineFinishing"
      },
      "OrderLinePanelFrame": {
        "type": "object",
        "properties": {
          "panel_frame_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the panel frame, or `null` once the panel frame is deleted."
          },
          "code": {
            "type": "string",
            "description": "The panel frame's code, as it was at checkout."
          },
          "title": {
            "type": "string",
            "description": "The panel frame's name, as it was at checkout."
          },
          "mount": {
            "$ref": "#/components/schemas/PanelFrameMount"
          }
        },
        "required": ["panel_frame_id", "code", "title", "mount"],
        "description": "The frame around a pattern panel, with the mount the customer chose.",
        "title": "OrderLinePanelFrame"
      },
      "OrderLinePatternPanelDesign": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "pattern_panel",
            "enum": ["pattern_panel"]
          },
          "pattern_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the pattern, or `null` once the pattern is deleted."
          },
          "pattern_code": {
            "type": "string",
            "description": "The pattern's code, as it was at checkout."
          },
          "pattern_title": {
            "type": "string",
            "description": "The pattern's name, as it was at checkout."
          },
          "width_mm": {
            "type": "number",
            "description": "The width of the panel the customer ordered, in millimeters, the frame included."
          },
          "height_mm": {
            "type": "number",
            "description": "The height of the panel the customer ordered, in millimeters, the frame included."
          },
          "body_width_mm": {
            "type": "number",
            "description": "The width of the panel inside its frame, in millimeters: the part the laser cuts."
          },
          "body_height_mm": {
            "type": "number",
            "description": "The height of the panel inside its frame, in millimeters: the part the laser cuts."
          },
          "tiling_mode": {
            "type": "string",
            "enum": [
              "no_tiling",
              "fill_and_clip",
              "spaced_tiling",
              "continuous_tiling"
            ],
            "description": "How the pattern fills the panel. `no_tiling`: one copy of the pattern, scaled to fit. `fill_and_clip`: one copy of the pattern, scaled to fill the panel and clipped where it overflows. `spaced_tiling`: tiles of the pattern with gaps between them. `continuous_tiling`: tiles that join, closed at the edges and corners by the pattern's edge and corner elements."
          },
          "default_tile_width_mm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The tile width the tiling starts with, in millimeters; the tiles grow evenly from it to fill the panel. `null` for `no_tiling` and `fill_and_clip`."
          },
          "default_tile_height_mm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The tile height the tiling starts with, in millimeters; the tiles grow evenly from it to fill the panel. `null` for `no_tiling` and `fill_and_clip`."
          },
          "horizontal_spacing": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The gap between two tiles side by side, in the units of the pattern's drawing, so that it grows with the tiles. A negative gap overlaps the tiles. `null` for `no_tiling` and `fill_and_clip`."
          },
          "vertical_spacing": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The gap between two tiles one above the other, in the units of the pattern's drawing, so that it grows with the tiles. A negative gap overlaps the tiles. `null` for `no_tiling` and `fill_and_clip`."
          },
          "min_padding": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The smallest space kept around the pattern when it is scaled to fit the panel, in the units of the pattern's drawing, or `null` for none."
          },
          "center_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's center element, or `null` when the pattern has none."
          },
          "left_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's left edge element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "right_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's right edge element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "top_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's top edge element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "bottom_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's bottom edge element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "top_left_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's top left corner element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "top_right_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's top right corner element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "bottom_left_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's bottom left corner element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "bottom_right_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's bottom right corner element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "panel_frame": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLinePanelFrame"
              },
              {
                "type": "null"
              }
            ],
            "description": "The frame around the panel, or `null` for a panel without a frame."
          },
          "material_kind_title": {
            "type": "string",
            "description": "The name of the material's kind, as it was at checkout."
          },
          "material_thickness_mm": {
            "type": "number",
            "description": "The thickness of the material, in millimeters."
          },
          "material_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the material's color, as it was at checkout, or `null` when the material has no color."
          },
          "layer_roles": {
            "items": {
              "$ref": "#/components/schemas/LayerRole"
            },
            "type": "array",
            "description": "What the laser does with each layer color of the drawing."
          },
          "finishing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLineFinishing"
              },
              {
                "type": "null"
              }
            ],
            "description": "The finishing of the items, or `null` when they have none."
          }
        },
        "required": [
          "kind",
          "pattern_id",
          "pattern_code",
          "pattern_title",
          "width_mm",
          "height_mm",
          "body_width_mm",
          "body_height_mm",
          "tiling_mode",
          "default_tile_width_mm",
          "default_tile_height_mm",
          "horizontal_spacing",
          "vertical_spacing",
          "min_padding",
          "center_url",
          "left_url",
          "right_url",
          "top_url",
          "bottom_url",
          "top_left_url",
          "top_right_url",
          "bottom_left_url",
          "bottom_right_url",
          "panel_frame",
          "material_kind_title",
          "material_thickness_mm",
          "material_color",
          "layer_roles",
          "finishing"
        ],
        "description": "A panel filled with one of the shop's patterns, with a frame or without one.",
        "title": "OrderLinePatternPanelDesign"
      },
      "OrderLinePlanterConstruction": {
        "type": "object",
        "properties": {
          "planter_construction_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the planter construction, or `null` once the planter construction is deleted."
          },
          "code": {
            "type": "string",
            "description": "The planter construction's code, as it was at checkout."
          },
          "title": {
            "type": "string",
            "description": "The planter construction's name, as it was at checkout."
          }
        },
        "required": ["planter_construction_id", "code", "title"],
        "description": "How the workshop builds the planter: the planter construction its bending, welding and trellis posts were priced with.",
        "title": "OrderLinePlanterConstruction"
      },
      "OrderLinePlanterDesign": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "planter",
            "enum": ["planter"]
          },
          "width_mm": {
            "type": "number",
            "description": "The outer width of the planter box, in millimeters."
          },
          "depth_mm": {
            "type": "number",
            "description": "The outer depth of the planter box, in millimeters."
          },
          "height_mm": {
            "type": "number",
            "description": "The outer height of the planter box, in millimeters."
          },
          "bed_kind": {
            "type": "string",
            "enum": ["perforated", "solid"],
            "description": "The bottom bed of the planter: `perforated` with drainage slots or `solid`."
          },
          "has_crane_lugs": {
            "type": "boolean",
            "description": "Whether the end walls carry crane-lifting lugs at the top corners."
          },
          "trellis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLinePlanterTrellis"
              },
              {
                "type": "null"
              }
            ],
            "description": "The rear trellis of the planter, or `null` when the planter has none."
          },
          "construction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLinePlanterConstruction"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the workshop builds the planter, or `null` when the planter was ordered without one."
          },
          "material_kind_title": {
            "type": "string",
            "description": "The name of the material's kind, as it was at checkout."
          },
          "material_thickness_mm": {
            "type": "number",
            "description": "The thickness of the material, in millimeters."
          },
          "material_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the material's color, as it was at checkout, or `null` when the material has no color."
          },
          "layer_roles": {
            "items": {
              "$ref": "#/components/schemas/LayerRole"
            },
            "type": "array",
            "description": "What the laser does with each layer color of the drawing."
          },
          "finishing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLineFinishing"
              },
              {
                "type": "null"
              }
            ],
            "description": "The finishing of the items, or `null` when they have none."
          }
        },
        "required": [
          "kind",
          "width_mm",
          "depth_mm",
          "height_mm",
          "bed_kind",
          "has_crane_lugs",
          "trellis",
          "construction",
          "material_kind_title",
          "material_thickness_mm",
          "material_color",
          "layer_roles",
          "finishing"
        ],
        "description": "A planter box with a perforated or solid bed, crane lugs when ordered, and a trellis when one is attached.",
        "title": "OrderLinePlanterDesign"
      },
      "OrderLinePlanterTrellis": {
        "type": "object",
        "properties": {
          "height_mm": {
            "type": "number",
            "description": "The height of the rear trellis above the box, in millimeters."
          },
          "panel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLinePlanterTrellisPanel"
              },
              {
                "type": "null"
              }
            ],
            "description": "The pattern panel between the posts, with the files its drawing is built from, or `null` for a blank trellis."
          }
        },
        "required": ["height_mm", "panel"],
        "description": "The rear trellis of a planter: its height above the box and its optional pattern panel infill.",
        "title": "OrderLinePlanterTrellis"
      },
      "OrderLinePlanterTrellisPanel": {
        "type": "object",
        "properties": {
          "pattern_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the pattern, or `null` once the pattern is deleted."
          },
          "pattern_code": {
            "type": "string",
            "description": "The pattern's code, as it was at checkout."
          },
          "pattern_title": {
            "type": "string",
            "description": "The pattern's name, as it was at checkout."
          },
          "width_mm": {
            "type": "number",
            "description": "The width of the panel the customer ordered, in millimeters, the frame included."
          },
          "height_mm": {
            "type": "number",
            "description": "The height of the panel the customer ordered, in millimeters, the frame included."
          },
          "body_width_mm": {
            "type": "number",
            "description": "The width of the panel inside its frame, in millimeters: the part the laser cuts."
          },
          "body_height_mm": {
            "type": "number",
            "description": "The height of the panel inside its frame, in millimeters: the part the laser cuts."
          },
          "tiling_mode": {
            "type": "string",
            "enum": [
              "no_tiling",
              "fill_and_clip",
              "spaced_tiling",
              "continuous_tiling"
            ],
            "description": "How the pattern fills the panel. `no_tiling`: one copy of the pattern, scaled to fit. `fill_and_clip`: one copy of the pattern, scaled to fill the panel and clipped where it overflows. `spaced_tiling`: tiles of the pattern with gaps between them. `continuous_tiling`: tiles that join, closed at the edges and corners by the pattern's edge and corner elements."
          },
          "default_tile_width_mm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The tile width the tiling starts with, in millimeters; the tiles grow evenly from it to fill the panel. `null` for `no_tiling` and `fill_and_clip`."
          },
          "default_tile_height_mm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The tile height the tiling starts with, in millimeters; the tiles grow evenly from it to fill the panel. `null` for `no_tiling` and `fill_and_clip`."
          },
          "horizontal_spacing": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The gap between two tiles side by side, in the units of the pattern's drawing, so that it grows with the tiles. A negative gap overlaps the tiles. `null` for `no_tiling` and `fill_and_clip`."
          },
          "vertical_spacing": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The gap between two tiles one above the other, in the units of the pattern's drawing, so that it grows with the tiles. A negative gap overlaps the tiles. `null` for `no_tiling` and `fill_and_clip`."
          },
          "min_padding": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The smallest space kept around the pattern when it is scaled to fit the panel, in the units of the pattern's drawing, or `null` for none."
          },
          "center_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's center element, or `null` when the pattern has none."
          },
          "left_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's left edge element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "right_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's right edge element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "top_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's top edge element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "bottom_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's bottom edge element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "top_left_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's top left corner element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "top_right_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's top right corner element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "bottom_left_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's bottom left corner element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "bottom_right_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the file of the pattern's bottom right corner element, or `null` when the pattern has none. Only `continuous_tiling` uses the edge and corner elements."
          },
          "panel_frame": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLinePanelFrame"
              },
              {
                "type": "null"
              }
            ],
            "description": "The frame around the panel, or `null` for a panel without a frame."
          }
        },
        "required": [
          "pattern_id",
          "pattern_code",
          "pattern_title",
          "width_mm",
          "height_mm",
          "body_width_mm",
          "body_height_mm",
          "tiling_mode",
          "default_tile_width_mm",
          "default_tile_height_mm",
          "horizontal_spacing",
          "vertical_spacing",
          "min_padding",
          "center_url",
          "left_url",
          "right_url",
          "top_url",
          "bottom_url",
          "top_left_url",
          "top_right_url",
          "bottom_left_url",
          "bottom_right_url",
          "panel_frame"
        ],
        "description": "The pattern panel between the posts, with the files its drawing is built from.",
        "title": "OrderLinePlanterTrellisPanel"
      },
      "OrderLineShapeDesign": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "shape",
            "enum": ["shape"]
          },
          "shape_kind": {
            "type": "string",
            "enum": [
              "plain_rectangle",
              "rectangle_with_hole",
              "rectangular_frame",
              "l_bracket",
              "c_bracket",
              "plain_disc",
              "ring"
            ],
            "description": "The shape: a rectangle, a rectangle with a hole, a rectangular frame, an L or C bracket, a disc or a ring."
          },
          "material_kind_title": {
            "type": "string",
            "description": "The name of the material's kind, as it was at checkout."
          },
          "material_thickness_mm": {
            "type": "number",
            "description": "The thickness of the material, in millimeters."
          },
          "material_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the material's color, as it was at checkout, or `null` when the material has no color."
          },
          "layer_roles": {
            "items": {
              "$ref": "#/components/schemas/LayerRole"
            },
            "type": "array",
            "description": "What the laser does with each layer color of the drawing."
          },
          "finishing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderLineFinishing"
              },
              {
                "type": "null"
              }
            ],
            "description": "The finishing of the items, or `null` when they have none."
          }
        },
        "required": [
          "kind",
          "shape_kind",
          "material_kind_title",
          "material_thickness_mm",
          "material_color",
          "layer_roles",
          "finishing"
        ],
        "description": "A simple shape with the sizes the customer chose, such as a ring.",
        "title": "OrderLineShapeDesign"
      },
      "OrderLineSheetPart": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "whole",
              "planter_end_wall",
              "planter_long_wall",
              "planter_bed",
              "planter_trellis"
            ],
            "description": "What the part is: `whole` is a design drawn as one sheet, which the laser cuts as one part; `planter_end_wall`, `planter_long_wall`, `planter_bed` and `planter_trellis` are the sheets of a planter."
          },
          "count": {
            "type": "integer",
            "description": "How many pieces of the part one item needs."
          },
          "part_width_mm": {
            "type": "number",
            "description": "The width of the box around one piece, in millimeters."
          },
          "part_height_mm": {
            "type": "number",
            "description": "The height of the box around one piece, in millimeters."
          },
          "consumed_width_mm": {
            "type": "number",
            "description": "The width of the rectangle of sheet one piece consumes, in millimeters: the part's box with the material's padding, rounded up to the tile grid."
          },
          "consumed_height_mm": {
            "type": "number",
            "description": "The height of the rectangle of sheet one piece consumes, in millimeters: the part's box with the material's padding, rounded up to the tile grid."
          },
          "cut_length_m": {
            "type": "number",
            "description": "The length that the laser cuts for one piece, in meters, the edge of the consumed rectangle included when the laser cuts it."
          },
          "piercing_count": {
            "type": "integer",
            "description": "How many times the laser pierces the material for one piece."
          },
          "engraving_length_m": {
            "type": "number",
            "description": "The length that the laser engraves for one piece, in meters."
          }
        },
        "required": [
          "kind",
          "count",
          "part_width_mm",
          "part_height_mm",
          "consumed_width_mm",
          "consumed_height_mm",
          "cut_length_m",
          "piercing_count",
          "engraving_length_m"
        ],
        "description": "One part the laser cuts out of sheet for the line: how many pieces of it one item needs, the box around one piece, the sheet one piece consumes, and the quantities of one piece.",
        "title": "OrderLineSheetPart"
      },
      "OrderPaymentAdjustment": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "The name of the surcharge or discount, as the customer saw it."
          },
          "percentage": {
            "type": "number",
            "description": "The rate, in percent: positive for a surcharge, negative for a discount."
          },
          "amount": {
            "type": "number",
            "description": "The amount, in the order's currency: positive for a surcharge, negative for a discount."
          }
        },
        "required": ["label", "percentage", "amount"],
        "description": "A surcharge or a discount that the payment method adds to the order's total.",
        "title": "OrderPaymentAdjustment"
      },
      "OrderPaymentMethod": {
        "type": "object",
        "properties": {
          "payment_method_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the payment method, or `null` once the payment method is deleted."
          },
          "title": {
            "type": "string",
            "description": "The payment method's name, as it was at checkout."
          },
          "code": {
            "type": "string",
            "description": "The payment method's code, as it was at checkout."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The payment method's description, as it was at checkout, or `null` when it had none."
          },
          "adjustment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderPaymentAdjustment"
              },
              {
                "type": "null"
              }
            ],
            "description": "The surcharge or discount of the payment method, or `null` when it has none."
          },
          "currency": {
            "type": "string",
            "description": "The currency of the adjustment's amount, the same as the order's."
          }
        },
        "required": [
          "payment_method_id",
          "title",
          "code",
          "description",
          "adjustment",
          "currency"
        ],
        "description": "The payment method the customer chose, as the order recorded it at checkout.",
        "title": "OrderPaymentMethod"
      },
      "OrderResult": {
        "type": "object",
        "properties": {
          "result": {
            "$ref": "#/components/schemas/Order"
          }
        },
        "required": ["result"],
        "title": "OrderResult"
      },
      "OrderSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The order's id, a UUID."
          },
          "number": {
            "type": "string",
            "description": "The order's number, as the shop and its customers see it, such as `#1042`. It is the shop's prefix for order numbers followed by a sequence number. The prefix is `#` unless the shop changed it, and it may be empty. A new prefix applies to new orders only. The shop numbers its orders in sequence, so a number is unique in the shop."
          },
          "customer": {
            "$ref": "#/components/schemas/OrderCustomer"
          },
          "status": {
            "type": "string",
            "enum": ["draft", "open", "done", "cancelled"],
            "description": "The state of the order. `draft`: a quote that the shop has not approved yet. `open`: an approved order that is not done yet. `done`: the order was dispatched or picked up, and its payment is settled. `cancelled`: the order was cancelled."
          },
          "payment_status": {
            "type": "string",
            "enum": [
              "deferred",
              "unpaid",
              "partially_paid",
              "paid",
              "partially_refunded",
              "refunded",
              "voided"
            ],
            "description": "The state of the payment. `deferred`: the order is not approved yet, so nothing is due. `unpaid`: nothing is paid. `partially_paid`: the amount paid, less refunds, is below the total. `paid`: the amount paid, less refunds, covers the total. `partially_refunded`: as `paid`, and some amount was refunded. `refunded`: everything paid was refunded. `voided`: the order was cancelled before any payment."
          },
          "fulfillment_status": {
            "type": "string",
            "enum": [
              "on_hold",
              "pending",
              "in_progress",
              "fulfilled",
              "cancelled"
            ],
            "description": "The state of the work. `on_hold`: the order is not approved yet, or it has no payment yet and its payment is not settled. `pending`: the order is ready to be made. `in_progress`: the order is made and waits to be dispatched or picked up. `fulfilled`: the order was dispatched or picked up. `cancelled`: the order was cancelled."
          },
          "paid_amount": {
            "type": "number",
            "description": "The amount the customer paid, in `currency`, refunds not deducted."
          },
          "refunded_amount": {
            "type": "number",
            "description": "The amount refunded to the customer, in `currency`."
          },
          "grand_total_amount": {
            "type": "number",
            "description": "The total of the order, in `currency`: the lines, the taxes that the prices do not include, the delivery fee, and the surcharge or discount of the payment method."
          },
          "currency": {
            "type": "string",
            "description": "The currency of every amount of the order, as an ISO 4217 code such as `EUR`: the shop's currency at the time of the order."
          },
          "created_at": {
            "type": "string",
            "description": "The time the customer placed the order."
          },
          "approved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the shop approved the order, or `null` while the order is not approved."
          },
          "paid_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the payments reached the total, or `null` while they have not."
          },
          "settled_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the payment was settled, or `null` while it is not. A payment is settled when the payments reach the total, or when the shop settles it with an amount still open."
          },
          "manufactured_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the shop finished making the order, or `null` while it has not."
          },
          "dispatched_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the order was dispatched or picked up, or `null` while it has not been."
          },
          "cancelled_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time the order was cancelled, or `null` when it is not cancelled."
          },
          "updated_at": {
            "type": "string",
            "description": "The time of the order's last change. `listOrders` explains how to sync orders with it."
          }
        },
        "required": [
          "id",
          "number",
          "customer",
          "status",
          "payment_status",
          "fulfillment_status",
          "paid_amount",
          "refunded_amount",
          "grand_total_amount",
          "currency",
          "created_at",
          "approved_at",
          "paid_at",
          "settled_at",
          "manufactured_at",
          "dispatched_at",
          "cancelled_at",
          "updated_at"
        ],
        "description": "An order without its lines: the customer, the states, the amounts, and the time of each step. Amounts are numbers in `currency`. Times are date-times in UTC with millisecond precision.",
        "title": "OrderSummary"
      },
      "OrderSummaryPage": {
        "type": "object",
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/OrderSummary"
            },
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it as `cursor` to get the next page. `null` on the last page."
          },
          "previous_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it as `cursor` to get the page before. `null` on the first page."
          }
        },
        "required": ["results", "next_cursor", "previous_cursor"],
        "title": "OrderSummaryPage"
      },
      "OrderTax": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "The tax's name, as it was at checkout."
          },
          "code": {
            "type": "string",
            "description": "The tax's code, as it was at checkout."
          },
          "percentage": {
            "type": "number",
            "description": "The tax rate, in percent: `19` for 19 %."
          },
          "amount": {
            "type": "number",
            "description": "The amount of the tax, in `currency`."
          },
          "inclusion": {
            "type": "string",
            "enum": ["included", "excluded"],
            "description": "`included` when the prices already contain the tax, `excluded` when the tax adds to the order's total."
          },
          "currency": {
            "type": "string",
            "description": "The currency of `amount`, the same as the order's."
          }
        },
        "required": [
          "title",
          "code",
          "percentage",
          "amount",
          "inclusion",
          "currency"
        ],
        "description": "A tax applied to the order at checkout.",
        "title": "OrderTax"
      },
      "PanelFrameMount": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/NoMount"
          },
          {
            "$ref": "#/components/schemas/LegsMount"
          },
          {
            "$ref": "#/components/schemas/FeetMount"
          }
        ],
        "description": "What the framed panel stands on.",
        "title": "PanelFrameMount",
        "discriminator": {
          "propertyName": "kind",
          "mapping": {
            "none": "#/components/schemas/NoMount",
            "legs": "#/components/schemas/LegsMount",
            "feet": "#/components/schemas/FeetMount"
          }
        }
      },
      "ParameterError": {
        "type": "object",
        "properties": {
          "detail": {
            "type": "string",
            "description": "What is wrong with this part of the request."
          },
          "parameter": {
            "type": "string",
            "description": "The name of the invalid path or query parameter."
          }
        },
        "required": ["detail", "parameter"],
        "description": "A path or query parameter that is not valid, found by its name.",
        "title": "ParameterError"
      },
      "Problem": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/InvalidRequestProblem"
          },
          {
            "$ref": "#/components/schemas/UnauthenticatedProblem"
          },
          {
            "$ref": "#/components/schemas/InsufficientScopeProblem"
          },
          {
            "$ref": "#/components/schemas/NotFoundProblem"
          },
          {
            "$ref": "#/components/schemas/MethodNotAllowedProblem"
          },
          {
            "$ref": "#/components/schemas/AlreadyExistsProblem"
          },
          {
            "$ref": "#/components/schemas/EntityInUseProblem"
          },
          {
            "$ref": "#/components/schemas/ConcurrentModificationProblem"
          },
          {
            "$ref": "#/components/schemas/ContentTooLargeProblem"
          },
          {
            "$ref": "#/components/schemas/RateLimitedProblem"
          },
          {
            "$ref": "#/components/schemas/InternalProblem"
          },
          {
            "$ref": "#/components/schemas/ServiceUnavailableProblem"
          }
        ],
        "title": "Problem",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "https://developers.feinerfab.com/rest/problems/invalid-request": "#/components/schemas/InvalidRequestProblem",
            "https://developers.feinerfab.com/rest/problems/unauthenticated": "#/components/schemas/UnauthenticatedProblem",
            "https://developers.feinerfab.com/rest/problems/insufficient-scope": "#/components/schemas/InsufficientScopeProblem",
            "https://developers.feinerfab.com/rest/problems/not-found": "#/components/schemas/NotFoundProblem",
            "https://developers.feinerfab.com/rest/problems/method-not-allowed": "#/components/schemas/MethodNotAllowedProblem",
            "https://developers.feinerfab.com/rest/problems/already-exists": "#/components/schemas/AlreadyExistsProblem",
            "https://developers.feinerfab.com/rest/problems/entity-in-use": "#/components/schemas/EntityInUseProblem",
            "https://developers.feinerfab.com/rest/problems/concurrent-modification": "#/components/schemas/ConcurrentModificationProblem",
            "https://developers.feinerfab.com/rest/problems/content-too-large": "#/components/schemas/ContentTooLargeProblem",
            "https://developers.feinerfab.com/rest/problems/rate-limited": "#/components/schemas/RateLimitedProblem",
            "https://developers.feinerfab.com/rest/problems/internal": "#/components/schemas/InternalProblem",
            "https://developers.feinerfab.com/rest/problems/service-unavailable": "#/components/schemas/ServiceUnavailableProblem"
          }
        }
      },
      "RateLimitedProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/rate-limited",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/rate-limited"
            ]
          },
          "title": {
            "type": "string",
            "const": "Rate limited",
            "enum": ["Rate limited"]
          },
          "status": {
            "type": "number",
            "const": 429,
            "enum": [429]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          },
          "policy": {
            "type": "string",
            "description": "The name of the policy that refused the request, as in the `RateLimit-Policy` header."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "request_id",
          "policy"
        ],
        "description": "The shop has used up its request budget for the current window. Retry after the number of seconds in the `Retry-After` header.",
        "title": "RateLimitedProblem"
      },
      "ReferenceByCode": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "The entity's code, unique in the shop."
          }
        },
        "additionalProperties": false,
        "required": ["code"],
        "description": "Names an entity of the shop by its code.",
        "title": "ReferenceByCode"
      },
      "ReferenceById": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The entity's id, a UUID."
          }
        },
        "additionalProperties": false,
        "required": ["id"],
        "description": "Names an entity of the shop by its id.",
        "title": "ReferenceById"
      },
      "ServiceUnavailableProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/service-unavailable",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/service-unavailable"
            ]
          },
          "title": {
            "type": "string",
            "const": "Service unavailable",
            "enum": ["Service unavailable"]
          },
          "status": {
            "type": "number",
            "const": 503,
            "enum": [503]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          }
        },
        "required": ["type", "title", "status", "detail", "request_id"],
        "description": "A service the API depends on did not respond. Retry later.",
        "title": "ServiceUnavailableProblem"
      },
      "Station": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "The station's name, as the shop's staff see it."
          },
          "code": {
            "type": "string",
            "description": "A short code that names the station, unique in the shop. A path names the station by its code with `by=code`."
          },
          "max_width_mm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The width of the station's work area, in millimeters. It goes together with `max_height_mm`: both are numbers, or both are `null` when the work area has no limit."
          },
          "max_height_mm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The height of the station's work area, in millimeters. It goes together with `max_width_mm`: both are numbers, or both are `null` when the work area has no limit."
          },
          "work_price_ncu_hour": {
            "type": "number",
            "description": "The price of an hour of work on the station, in the shop's currency. A capability that runs on the station prices its work time at this rate."
          },
          "setup_price_ncu_hour": {
            "type": "number",
            "description": "The price of an hour of setup on the station, in the shop's currency. A capability that runs on the station prices the setup time of each job at this rate."
          },
          "id": {
            "type": "string",
            "description": "The station's id, a UUID."
          }
        },
        "required": [
          "title",
          "code",
          "max_width_mm",
          "max_height_mm",
          "work_price_ncu_hour",
          "setup_price_ncu_hour",
          "id"
        ],
        "description": "A machine or another place in the shop where capabilities run, such as a laser cutter or a powder coating room, with its work area and its hourly rates.",
        "title": "Station"
      },
      "StationDraft": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "The station's name, as the shop's staff see it. Spaces at the start and the end are removed, and a name of spaces only is refused.",
            "maxLength": 100,
            "minLength": 1
          },
          "code": {
            "type": "string",
            "description": "A short code that names the station, unique in the shop. A path names the station by its code with `by=code`. Spaces at the start and the end are removed, and a code of spaces only is refused.",
            "maxLength": 30,
            "minLength": 1
          },
          "max_width_mm": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "The width of the station's work area, in millimeters. It goes together with `max_height_mm`: both are numbers, or both are `null` when the work area has no limit."
          },
          "max_height_mm": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "The height of the station's work area, in millimeters. It goes together with `max_width_mm`: both are numbers, or both are `null` when the work area has no limit."
          },
          "work_price_ncu_hour": {
            "type": "number",
            "description": "The price of an hour of work on the station, in the shop's currency. A capability that runs on the station prices its work time at this rate.",
            "minimum": 0
          },
          "setup_price_ncu_hour": {
            "type": "number",
            "description": "The price of an hour of setup on the station, in the shop's currency. A capability that runs on the station prices the setup time of each job at this rate.",
            "minimum": 0
          }
        },
        "additionalProperties": false,
        "required": [
          "title",
          "code",
          "max_width_mm",
          "max_height_mm",
          "work_price_ncu_hour",
          "setup_price_ncu_hour"
        ],
        "description": "A station to create.",
        "title": "StationDraft"
      },
      "StationPage": {
        "type": "object",
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/Station"
            },
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it as `cursor` to get the next page. `null` on the last page."
          },
          "previous_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it as `cursor` to get the page before. `null` on the first page."
          }
        },
        "required": ["results", "next_cursor", "previous_cursor"],
        "title": "StationPage"
      },
      "StationPatch": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "The station's name, as the shop's staff see it. Spaces at the start and the end are removed, and a name of spaces only is refused.",
            "maxLength": 100,
            "minLength": 1
          },
          "code": {
            "type": "string",
            "description": "A short code that names the station, unique in the shop. A path names the station by its code with `by=code`. Spaces at the start and the end are removed, and a code of spaces only is refused.",
            "maxLength": 30,
            "minLength": 1
          },
          "max_width_mm": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "The width of the station's work area, in millimeters. It goes together with `max_height_mm`: both are numbers, or both are `null` when the work area has no limit."
          },
          "max_height_mm": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "The height of the station's work area, in millimeters. It goes together with `max_width_mm`: both are numbers, or both are `null` when the work area has no limit."
          },
          "work_price_ncu_hour": {
            "type": "number",
            "description": "The price of an hour of work on the station, in the shop's currency. A capability that runs on the station prices its work time at this rate.",
            "minimum": 0
          },
          "setup_price_ncu_hour": {
            "type": "number",
            "description": "The price of an hour of setup on the station, in the shop's currency. A capability that runs on the station prices the setup time of each job at this rate.",
            "minimum": 0
          }
        },
        "additionalProperties": false,
        "description": "The fields to change. A field that the patch leaves out keeps its value. `max_width_mm` and `max_height_mm` go together: a patch carries both of them or neither.",
        "title": "StationPatch"
      },
      "StationResult": {
        "type": "object",
        "properties": {
          "result": {
            "$ref": "#/components/schemas/Station"
          }
        },
        "required": ["result"],
        "title": "StationResult"
      },
      "UnauthenticatedProblem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "https://developers.feinerfab.com/rest/problems/unauthenticated",
            "enum": [
              "https://developers.feinerfab.com/rest/problems/unauthenticated"
            ]
          },
          "title": {
            "type": "string",
            "const": "Unauthenticated",
            "enum": ["Unauthenticated"]
          },
          "status": {
            "type": "number",
            "const": 401,
            "enum": [401]
          },
          "detail": {
            "type": "string",
            "description": "Plain English about this occurrence, for a person to read. A program tells failures apart by `type`."
          },
          "request_id": {
            "type": "string",
            "description": "The id of this request. Quote it when you contact support."
          }
        },
        "required": ["type", "title", "status", "detail", "request_id"],
        "description": "The request carries no access token, or a malformed one, or its token is unknown, expired, revoked, or belongs to another shop.",
        "title": "UnauthenticatedProblem"
      },
      "UsStateRegion": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "us_state",
            "enum": ["us_state"]
          },
          "value": {
            "type": "string",
            "description": "The state's two-letter code, such as `CA`."
          }
        },
        "required": ["kind", "value"],
        "description": "A state of the United States.",
        "title": "UsStateRegion"
      }
    },
    "responses": {
      "InvalidRequest": {
        "description": "Invalid request.",
        "headers": {
          "Api-Channel": {
            "$ref": "#/components/headers/Api-Channel"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          },
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/InvalidRequestProblem"
            }
          }
        }
      },
      "Unauthenticated": {
        "description": "Unauthenticated.",
        "headers": {
          "Api-Channel": {
            "$ref": "#/components/headers/Api-Channel"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/UnauthenticatedProblem"
            }
          }
        }
      },
      "InsufficientScope": {
        "description": "Insufficient scope.",
        "headers": {
          "Api-Channel": {
            "$ref": "#/components/headers/Api-Channel"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          },
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/InsufficientScopeProblem"
            }
          }
        }
      },
      "NotFound": {
        "description": "Not found.",
        "headers": {
          "Api-Channel": {
            "$ref": "#/components/headers/Api-Channel"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          },
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/NotFoundProblem"
            }
          }
        }
      },
      "ContentTooLarge": {
        "description": "Content too large.",
        "headers": {
          "Api-Channel": {
            "$ref": "#/components/headers/Api-Channel"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ContentTooLargeProblem"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Rate limited.",
        "headers": {
          "Api-Channel": {
            "$ref": "#/components/headers/Api-Channel"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          },
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          },
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/RateLimitedProblem"
            }
          }
        }
      },
      "Problem": {
        "description": "Any other failure, such as a conflict (409) or an internal error (500). The problem's `type` tells failures apart.",
        "headers": {
          "Api-Channel": {
            "$ref": "#/components/headers/Api-Channel"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          },
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "headers": {
      "Api-Channel": {
        "description": "The channel that served the request: `unstable`.",
        "required": true,
        "schema": {
          "type": "string",
          "enum": ["unstable"]
        }
      },
      "Request-Id": {
        "description": "The id the server gave the request. A problem carries the same id as `request_id`. Quote it when you contact support.",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "RateLimit-Policy": {
        "description": "The shop's rate-limit policy, as draft-ietf-httpapi-ratelimit-headers defines it: its name, the requests it allows (`q`), and its window in seconds (`w`). Every shop has the policy `\"standard\";q=120;w=60`: 120 requests per 60 seconds, counted over all the shop's tokens. Sent with every response to a request that carries a valid token, and with a 429. The server leaves it out when it cannot read the shop's budget.",
        "required": false,
        "schema": {
          "type": "string"
        }
      },
      "RateLimit": {
        "description": "The shop's budget in the current window: the requests left (`r`), and the seconds until the window resets (`t`), as in `\"standard\";r=117;t=42`. Sent with `RateLimit-Policy`.",
        "required": false,
        "schema": {
          "type": "string"
        }
      },
      "Retry-After": {
        "description": "The number of seconds to wait until the shop's budget resets.",
        "required": true,
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      }
    },
    "securitySchemes": {
      "shopAccessToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "A shop access token, sent as `Authorization: Bearer <token>`. Its secret starts with `ff_shop_`. The shop's staff create tokens in the shop's admin, and give each one its scope: `read`, or `read_write`."
      }
    }
  }
}
