{
  "openapi": "3.1.0",
  "info": {
    "title": "Shopamine REST API",
    "version": "1",
    "description": "Public REST API for Shopamine stores.\n\nGenerated from the backend source at tag `26.3.8` and from the same request definitions that produce the examples on https://misc.shopamine.com/restapi/. Field presence and requiredness come from the Java; types come from real captured responses.\n\nEntities described here: Address, Image, Item, Node, PaymentOption, PhysicalStore, Promotion, PromotionCoupon, Purchase, PurchaseAttempt, ShippingOption, Spec, SpecChoice, TaxClass, TimedDiscount, User, UserType, Warehouse. Others are documented on the page but deliberately absent from this spec rather than guessed at - their schemas could not be read mechanically.\n\nAuthentication is `Authorization: Bearer <token>`, header only. Every operation also requires a scope, given as `x-required-scope`.",
    "contact": {
      "name": "Shopamine support",
      "email": "support@shopamine.com"
    }
  },
  "servers": [
    {
      "url": "https://api.shopamine.com/{shop_domain}/api/v1",
      "description": "Replace `shop_domain` with the shop's domain, e.g. `www.example.com`.",
      "variables": {
        "shop_domain": {
          "default": "www.example.com"
        }
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "A token issued in the shop admin. Header only; there is no query-parameter form."
      }
    },
    "schemas": {
      "TaxClass": {
        "type": "object",
        "title": "TaxClass",
        "properties": {
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-tc"
            ]
          },
          "id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "name": {
            "type": "string",
            "examples": [
              "Tax products"
            ]
          }
        },
        "required": [
          "id",
          "name"
        ],
        "description": "Like items and users, tax classes can also be addressed by external id."
      },
      "TaxClassCreate": {
        "type": "object",
        "title": "TaxClassCreate",
        "properties": {
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-tc"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "Tax products"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "TaxClassUpdate": {
        "type": "object",
        "title": "TaxClassUpdate",
        "properties": {
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-tc"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "Tax products"
            ]
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "Warehouse": {
        "type": "object",
        "title": "Warehouse",
        "properties": {
          "admin_label": {
            "type": "string",
            "examples": [
              "Example Warehouse"
            ]
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-wh1"
            ]
          },
          "id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "physical_store": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "public_in_store": {
            "type": "boolean"
          },
          "public_name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          }
        },
        "required": [
          "admin_label",
          "external_id",
          "id",
          "public_in_store"
        ]
      },
      "WarehouseCreate": {
        "type": "object",
        "title": "WarehouseCreate",
        "properties": {
          "admin_label": {
            "type": "string",
            "examples": [
              "Example Warehouse"
            ]
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-wh1"
            ]
          },
          "public_in_store": {
            "type": "boolean"
          },
          "public_name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          }
        },
        "required": [
          "admin_label",
          "public_name"
        ]
      },
      "WarehouseUpdate": {
        "type": "object",
        "title": "WarehouseUpdate",
        "properties": {
          "admin_label": {
            "type": "string",
            "examples": [
              "Example Warehouse"
            ]
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-wh1"
            ]
          },
          "public_in_store": {
            "type": "boolean"
          },
          "public_name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "PhysicalStore": {
        "type": "object",
        "title": "PhysicalStore",
        "properties": {
          "address": {
            "type": "object",
            "examples": [
              {
                "name": "Example Store",
                "city": "Ljubljana",
                "line1": "Example Street 1",
                "postCode": "1000",
                "countryCode": "SI"
              }
            ],
            "readOnly": true
          },
          "admin_label": {
            "type": "string",
            "examples": [
              "Example Store"
            ],
            "description": "Required when creating; the code decides at runtime."
          },
          "closed": {
            "type": "string",
            "examples": [
              "2026-01-01T00:00:00Z"
            ],
            "readOnly": true
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-ps1"
            ]
          },
          "id": {
            "type": "integer",
            "examples": [
              3
            ],
            "readOnly": true
          },
          "latitude": {
            "type": "number",
            "examples": [
              46.05
            ]
          },
          "longitude": {
            "type": "number",
            "examples": [
              14.51
            ]
          },
          "opened": {
            "type": "string",
            "examples": [
              "2026-01-01T00:00:00Z"
            ],
            "readOnly": true
          },
          "order_weight": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "public_name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          }
        },
        "required": [
          "address",
          "admin_label",
          "closed",
          "external_id",
          "id",
          "latitude",
          "longitude",
          "opened",
          "order_weight",
          "public_name"
        ]
      },
      "PhysicalStoreCreate": {
        "type": "object",
        "title": "PhysicalStoreCreate",
        "properties": {
          "admin_label": {
            "type": "string",
            "examples": [
              "Example Store"
            ],
            "description": "Required on create, optional on update."
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-ps1"
            ]
          },
          "latitude": {
            "type": "number",
            "examples": [
              46.05
            ]
          },
          "longitude": {
            "type": "number",
            "examples": [
              14.51
            ]
          },
          "order_weight": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "public_name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          }
        },
        "required": [
          "admin_label"
        ]
      },
      "PhysicalStoreUpdate": {
        "type": "object",
        "title": "PhysicalStoreUpdate",
        "properties": {
          "admin_label": {
            "type": "string",
            "examples": [
              "Example Store"
            ],
            "description": "Required on create, optional on update."
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-ps1"
            ]
          },
          "latitude": {
            "type": "number",
            "examples": [
              46.05
            ]
          },
          "longitude": {
            "type": "number",
            "examples": [
              14.51
            ]
          },
          "order_weight": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "public_name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "UserType": {
        "type": "object",
        "title": "UserType",
        "properties": {
          "id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "name": {
            "type": "string",
            "examples": [
              "Seller"
            ]
          },
          "pricing_settings": {
            "type": "object",
            "examples": [
              {
                "price_to_pay": {
                  "price_key": "p3",
                  "discount_key": "d2"
                },
                "comparison_price": {
                  "price_key": "p1",
                  "discount_key": "d1"
                },
                "show_prices_without_taxes": false
              }
            ],
            "readOnly": true
          },
          "sys_tags": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          }
        },
        "required": [
          "id",
          "name"
        ],
        "description": "Customer segments. A user type can carry its own pricing settings, overriding the shop defaults."
      },
      "Image": {
        "type": "object",
        "title": "Image",
        "properties": {
          "description": {
            "type": "object"
          },
          "height": {
            "type": "integer",
            "examples": [
              50
            ],
            "readOnly": true
          },
          "id": {
            "type": "integer",
            "examples": [
              277
            ],
            "readOnly": true
          },
          "md5_hash": {
            "type": "string",
            "examples": [
              "d5c2b002766c228f93c3414122e9d86f"
            ],
            "readOnly": true
          },
          "media_type": {
            "type": "string",
            "examples": [
              "image/webp"
            ],
            "readOnly": true
          },
          "title": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "width": {
            "type": "integer",
            "examples": [
              220
            ],
            "readOnly": true
          }
        },
        "required": [
          "height",
          "id",
          "md5_hash",
          "media_type",
          "width"
        ],
        "description": "Besides JPEG, PNG and GIF, uploads may be WEBP, SVG or APNG — any `data:image/*` URI. Images can be uploaded directly using data URLs, or fetched from an external server over HTTP/S or FTP. For FTP, credentials can be supplied directly in the URL."
      },
      "ImageCreate": {
        "type": "object",
        "title": "ImageCreate",
        "properties": {
          "description": {
            "type": "object"
          },
          "title": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          }
        }
      },
      "ImageUpdate": {
        "type": "object",
        "title": "ImageUpdate",
        "properties": {
          "description": {
            "type": "object"
          },
          "title": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "Node": {
        "type": "object",
        "title": "Node",
        "properties": {
          "data_id": {
            "type": "integer"
          },
          "date_created": {
            "type": "string",
            "examples": [
              "2012-03-30T07:57:38Z"
            ],
            "readOnly": true
          },
          "date_published": {
            "type": "string",
            "examples": [
              "2012-03-30T07:57:38Z"
            ],
            "readOnly": true
          },
          "date_updated": {
            "type": "string",
            "examples": [
              "2023-05-25T07:02:46Z"
            ],
            "readOnly": true
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-nodes-tmp"
            ],
            "readOnly": true
          },
          "filters": {
            "type": "array",
            "readOnly": true
          },
          "generic_data": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "image_id": {
            "type": "integer"
          },
          "images": {
            "type": "array",
            "readOnly": true
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "node_title": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "order_weight": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "parent_node_id": {
            "type": "integer",
            "examples": [
              66
            ],
            "readOnly": true
          },
          "show_in_parent": {
            "type": "boolean",
            "examples": [
              true
            ],
            "readOnly": true
          },
          "sort_orders": {
            "type": "array",
            "readOnly": true
          },
          "sys_tags": {
            "type": "array",
            "readOnly": true
          },
          "type": {
            "type": "string",
            "examples": [
              "home"
            ],
            "readOnly": true
          },
          "url_key": {
            "type": "string",
            "examples": [
              ""
            ]
          },
          "visibility": {
            "type": "string",
            "examples": [
              "public"
            ]
          }
        },
        "required": [
          "date_created",
          "date_updated",
          "filters",
          "id",
          "name",
          "show_in_parent",
          "sort_orders",
          "type",
          "url_key",
          "visibility"
        ],
        "description": "Nodes are the hierarchy your catalogue hangs off — categories, brands and content pages. Every shop has exactly one `\"home\"` node: nodes can switch between types, but never to or from `home`, and home cannot be deleted."
      },
      "NodeCreate": {
        "type": "object",
        "title": "NodeCreate",
        "properties": {
          "data_id": {
            "type": "integer"
          },
          "image_id": {
            "type": "integer"
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "node_title": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "order_weight": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "url_key": {
            "type": "string",
            "examples": [
              ""
            ]
          },
          "visibility": {
            "type": "string",
            "examples": [
              "public"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "NodeUpdate": {
        "type": "object",
        "title": "NodeUpdate",
        "properties": {
          "data_id": {
            "type": "integer"
          },
          "image_id": {
            "type": "integer"
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "node_title": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "order_weight": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "url_key": {
            "type": "string",
            "examples": [
              ""
            ]
          },
          "visibility": {
            "type": "string",
            "examples": [
              "public"
            ]
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "Spec": {
        "type": "object",
        "title": "Spec",
        "properties": {
          "description": {
            "type": "string"
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-specs-tmp"
            ]
          },
          "hidden": {
            "type": "boolean",
            "examples": [
              false
            ]
          },
          "id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "type": {
            "type": "string",
            "examples": [
              "choice"
            ]
          },
          "unit": {
            "type": "string",
            "examples": [
              "g"
            ]
          }
        },
        "required": [
          "hidden",
          "id",
          "name",
          "type"
        ],
        "description": "Specs are the attributes attached to items — numeric, text, boolean, or choice-based. `numeric` and `discrete_numeric` are interchangeable; the only difference is how they are displayed in filters."
      },
      "SpecCreate": {
        "type": "object",
        "title": "SpecCreate",
        "properties": {
          "description": {
            "type": "string"
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-specs-tmp"
            ]
          },
          "hidden": {
            "type": "boolean",
            "examples": [
              false
            ]
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "type": {
            "type": "string",
            "examples": [
              "choice"
            ]
          },
          "unit": {
            "type": "string",
            "examples": [
              "g"
            ]
          }
        },
        "required": [
          "name",
          "type"
        ]
      },
      "SpecUpdate": {
        "type": "object",
        "title": "SpecUpdate",
        "properties": {
          "description": {
            "type": "string"
          },
          "external_id": {
            "type": "string",
            "examples": [
              "docs-example-specs-tmp"
            ]
          },
          "hidden": {
            "type": "boolean",
            "examples": [
              false
            ]
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "type": {
            "type": "string",
            "examples": [
              "choice"
            ]
          },
          "unit": {
            "type": "string",
            "examples": [
              "g"
            ]
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "TimedDiscount": {
        "type": "object",
        "title": "TimedDiscount",
        "properties": {
          "date_created": {
            "type": "string",
            "examples": [
              "2026-08-15T19:25:20Z"
            ],
            "readOnly": true
          },
          "date_updated": {
            "type": "string",
            "examples": [
              "2026-08-15T19:25:20Z"
            ],
            "readOnly": true
          },
          "discount_config": {
            "type": "object",
            "examples": [
              {
                "store_price_fields": {
                  "price_field": 1,
                  "discount_field": 1
                }
              }
            ],
            "readOnly": true
          },
          "end_at": {
            "type": "string",
            "examples": [
              "2030-01-01T00:00:00Z"
            ],
            "description": "Required when creating; the code decides at runtime."
          },
          "item_condition": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own. Required when creating; the code decides at runtime.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "paused": {
            "type": "boolean",
            "examples": [
              false
            ],
            "readOnly": true
          },
          "start_at": {
            "type": "string",
            "examples": [
              "2026-01-01T00:00:00Z"
            ],
            "description": "Required when creating; the code decides at runtime."
          },
          "status": {
            "type": "string",
            "examples": [
              "ACTIVE"
            ]
          },
          "timed_discount_id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "user_condition": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          }
        },
        "required": [
          "date_created",
          "date_updated",
          "end_at",
          "paused",
          "start_at",
          "status",
          "timed_discount_id"
        ],
        "description": "Time-limited price adjustments that automatically apply to matching items during a defined window. Unlike promotions, they are applied at the **item price level** rather than at the basket level."
      },
      "TimedDiscountCreate": {
        "type": "object",
        "title": "TimedDiscountCreate",
        "properties": {
          "end_at": {
            "type": "string",
            "examples": [
              "2030-01-01T00:00:00Z"
            ],
            "description": "Required on create, optional on update."
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own. Required on create, optional on update.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "start_at": {
            "type": "string",
            "examples": [
              "2026-01-01T00:00:00Z"
            ],
            "description": "Required on create, optional on update."
          },
          "status": {
            "type": "string",
            "examples": [
              "ACTIVE"
            ]
          }
        },
        "required": [
          "end_at",
          "name",
          "start_at"
        ]
      },
      "TimedDiscountUpdate": {
        "type": "object",
        "title": "TimedDiscountUpdate",
        "properties": {
          "end_at": {
            "type": "string",
            "examples": [
              "2030-01-01T00:00:00Z"
            ],
            "description": "Required on create, optional on update."
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own. Required on create, optional on update.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "start_at": {
            "type": "string",
            "examples": [
              "2026-01-01T00:00:00Z"
            ],
            "description": "Required on create, optional on update."
          },
          "status": {
            "type": "string",
            "examples": [
              "ACTIVE"
            ]
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "PaymentOption": {
        "type": "object",
        "title": "PaymentOption",
        "properties": {
          "id": {
            "type": "integer",
            "examples": [
              17
            ],
            "readOnly": true
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ],
            "readOnly": true
          },
          "type": {
            "type": "string",
            "examples": [
              "unhandled"
            ],
            "readOnly": true
          }
        },
        "required": [
          "id",
          "name",
          "type"
        ],
        "description": "`adyen`, `bank_koper`, `bank_koper_v2`, `bankart`, `bankart_v3`, `braintree`, `braintree_local_payment`, `leanpay`, `megapos`, `paypal`, `paypal_wp_standard`, `stripe`, `tmobile`, `ujp`, `valu_moneta`, `unhandled`."
      },
      "ShippingOption": {
        "type": "object",
        "title": "ShippingOption",
        "properties": {
          "active": {
            "type": "boolean",
            "examples": [
              true
            ],
            "readOnly": true
          },
          "id": {
            "type": "integer",
            "examples": [
              4
            ],
            "readOnly": true
          },
          "label": {
            "type": "string",
            "examples": [
              "Sam day delivery"
            ],
            "readOnly": true
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ],
            "readOnly": true
          },
          "order_weight": {
            "type": "integer",
            "examples": [
              0
            ],
            "readOnly": true
          },
          "skip_address": {
            "type": "boolean",
            "examples": [
              false
            ],
            "readOnly": true
          },
          "type": {
            "type": "string",
            "examples": [
              "simple"
            ],
            "readOnly": true
          }
        },
        "required": [
          "active",
          "id",
          "label",
          "name",
          "order_weight",
          "skip_address",
          "type"
        ],
        "description": "`flat_rate`, `free`, `international`, `item_number_based`, `price_based`, `simple`, `weight_based`."
      },
      "Promotion": {
        "type": "object",
        "title": "Promotion",
        "properties": {
          "active_from": {
            "type": "string",
            "examples": [
              "2023-12-18"
            ]
          },
          "active_until": {
            "type": "string",
            "examples": [
              "2023-12-31"
            ]
          },
          "brand_node_id": {
            "type": "integer"
          },
          "category_node_id": {
            "type": "integer",
            "examples": [
              83
            ]
          },
          "coupon_code": {
            "type": "string",
            "examples": [
              "TEST"
            ]
          },
          "date_created": {
            "type": "string",
            "examples": [
              "2023-12-19T06:22:49Z"
            ],
            "readOnly": true
          },
          "date_updated": {
            "type": "string",
            "examples": [
              "2023-12-19T08:14:02Z"
            ],
            "readOnly": true
          },
          "guest_single_use_handling": {
            "type": "string",
            "examples": [
              "GUEST_REQUIRE_LOGIN"
            ],
            "readOnly": true
          },
          "item_id": {
            "type": "integer"
          },
          "promotion_config": {
            "type": "object",
            "examples": [
              {
                "discount_rate": 0.15,
                "include_base_discount": true,
                "max_composite_discount": 0.15,
                "apply_to_items": true,
                "apply_to_shipping": false,
                "is_fixed_amount": false,
                "fixed_amount": 0
              }
            ],
            "readOnly": true
          },
          "promotion_id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "promotion_name": {
            "type": "string",
            "examples": [
              "TEST"
            ]
          },
          "promotion_type": {
            "type": "string",
            "examples": [
              "SIMPLE_COUPON"
            ]
          },
          "single_use_per_user": {
            "type": "boolean",
            "examples": [
              false
            ],
            "readOnly": true
          },
          "times_usable": {
            "type": "integer",
            "examples": [
              10
            ]
          },
          "times_used": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "uses_personal_coupons": {
            "type": "boolean",
            "examples": [
              true
            ],
            "readOnly": true
          },
          "validity_condition": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          }
        },
        "required": [
          "active_from",
          "active_until",
          "coupon_code",
          "date_created",
          "date_updated",
          "guest_single_use_handling",
          "promotion_config",
          "promotion_id",
          "promotion_name",
          "promotion_type",
          "single_use_per_user",
          "times_used",
          "uses_personal_coupons",
          "validity_condition"
        ],
        "description": "For promotions of type `SIMPLE_COUPON`, `coupon_code` must equal `promotion_name` or the request is rejected."
      },
      "PromotionCreate": {
        "type": "object",
        "title": "PromotionCreate",
        "properties": {
          "active_from": {
            "type": "string",
            "examples": [
              "2023-12-18"
            ]
          },
          "active_until": {
            "type": "string",
            "examples": [
              "2023-12-31"
            ]
          },
          "brand_node_id": {
            "type": "integer"
          },
          "category_node_id": {
            "type": "integer",
            "examples": [
              83
            ]
          },
          "coupon_code": {
            "type": "string",
            "examples": [
              "TEST"
            ]
          },
          "item_id": {
            "type": "integer"
          },
          "promotion_name": {
            "type": "string",
            "examples": [
              "TEST"
            ]
          },
          "promotion_type": {
            "type": "string",
            "examples": [
              "SIMPLE_COUPON"
            ]
          },
          "times_usable": {
            "type": "integer",
            "examples": [
              10
            ]
          }
        },
        "required": [
          "active_from",
          "active_until",
          "promotion_name",
          "promotion_type"
        ]
      },
      "PromotionUpdate": {
        "type": "object",
        "title": "PromotionUpdate",
        "properties": {
          "active_from": {
            "type": "string",
            "examples": [
              "2023-12-18"
            ]
          },
          "active_until": {
            "type": "string",
            "examples": [
              "2023-12-31"
            ]
          },
          "brand_node_id": {
            "type": "integer"
          },
          "category_node_id": {
            "type": "integer",
            "examples": [
              83
            ]
          },
          "coupon_code": {
            "type": "string",
            "examples": [
              "TEST"
            ]
          },
          "item_id": {
            "type": "integer"
          },
          "promotion_name": {
            "type": "string",
            "examples": [
              "TEST"
            ]
          },
          "promotion_type": {
            "type": "string",
            "examples": [
              "SIMPLE_COUPON"
            ]
          },
          "times_usable": {
            "type": "integer",
            "examples": [
              10
            ]
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "PromotionCoupon": {
        "type": "object",
        "title": "PromotionCoupon",
        "properties": {
          "active_from": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "active_until": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "coupon_code": {
            "type": "string",
            "examples": [
              "DOCS-EXAMPLE-10"
            ],
            "readOnly": true
          },
          "coupon_id": {
            "type": "integer",
            "examples": [
              113
            ],
            "readOnly": true
          },
          "date_created": {
            "type": "string",
            "examples": [
              "2026-08-15T19:26:03Z"
            ],
            "readOnly": true
          },
          "date_updated": {
            "type": "string",
            "examples": [
              "2026-08-15T19:26:03Z"
            ],
            "readOnly": true
          },
          "max_uses": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "promotion_id": {
            "type": "integer",
            "examples": [
              24
            ],
            "readOnly": true
          },
          "times_used": {
            "type": "integer",
            "examples": [
              0
            ],
            "readOnly": true
          },
          "user_email": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          }
        },
        "required": [
          "coupon_code",
          "coupon_id",
          "date_created",
          "date_updated",
          "promotion_id",
          "times_used"
        ],
        "description": "Promotions"
      },
      "Address": {
        "type": "object",
        "title": "Address",
        "properties": {
          "city": {
            "type": "string",
            "examples": [
              "Ljubljana"
            ]
          },
          "company": {
            "type": "string"
          },
          "country_code": {
            "type": "string",
            "examples": [
              "si"
            ]
          },
          "deleted": {
            "type": "boolean",
            "examples": [
              false
            ],
            "readOnly": true
          },
          "external_id": {
            "type": "string"
          },
          "id": {
            "type": "integer",
            "examples": [
              265
            ],
            "readOnly": true
          },
          "name": {
            "type": "string",
            "examples": [
              "Jane Doe"
            ]
          },
          "phone": {
            "type": "string"
          },
          "postal_code": {
            "type": "string",
            "examples": [
              "1000"
            ]
          },
          "state_code": {
            "type": "string"
          },
          "street_addr_1": {
            "type": "string",
            "examples": [
              "Example Street 1"
            ]
          },
          "street_addr_2": {
            "type": "string"
          },
          "tax_code": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "examples": [
              "USER_ADDRESS"
            ],
            "readOnly": true
          }
        },
        "required": [
          "city",
          "country_code",
          "deleted",
          "id",
          "name",
          "postal_code",
          "street_addr_1",
          "type"
        ],
        "description": "Users"
      },
      "AddressCreate": {
        "type": "object",
        "title": "AddressCreate",
        "properties": {
          "city": {
            "type": "string",
            "examples": [
              "Ljubljana"
            ]
          },
          "company": {
            "type": "string"
          },
          "country_code": {
            "type": "string",
            "examples": [
              "si"
            ]
          },
          "external_id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "examples": [
              "Jane Doe"
            ]
          },
          "phone": {
            "type": "string"
          },
          "postal_code": {
            "type": "string",
            "examples": [
              "1000"
            ]
          },
          "state_code": {
            "type": "string"
          },
          "street_addr_1": {
            "type": "string",
            "examples": [
              "Example Street 1"
            ]
          },
          "street_addr_2": {
            "type": "string"
          },
          "tax_code": {
            "type": "string"
          }
        },
        "required": [
          "city",
          "country_code",
          "name",
          "postal_code",
          "street_addr_1"
        ]
      },
      "User": {
        "type": "object",
        "title": "User",
        "properties": {
          "date_created": {
            "type": "string",
            "examples": [
              "2023-12-18T08:51:17Z"
            ],
            "readOnly": true
          },
          "date_updated": {
            "type": "string",
            "examples": [
              "2026-06-18T05:14:29Z"
            ],
            "readOnly": true
          },
          "email": {
            "type": "string",
            "examples": [
              "jane.doe@example.com"
            ]
          },
          "external_id": {
            "type": "string",
            "examples": [
              "1"
            ]
          },
          "gdpr_permissions": {
            "type": "array",
            "readOnly": true
          },
          "id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "locked": {
            "type": "boolean",
            "examples": [
              false
            ],
            "readOnly": true
          },
          "name": {
            "type": "string",
            "examples": [
              "Shopamine"
            ]
          },
          "nickname": {
            "type": "string"
          },
          "user_type_id": {
            "type": "integer",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "date_created",
          "date_updated",
          "email",
          "gdpr_permissions",
          "id",
          "locked"
        ],
        "description": "Customer accounts, their addresses, GDPR consents and contract pricing."
      },
      "UserCreate": {
        "type": "object",
        "title": "UserCreate",
        "properties": {
          "email": {
            "type": "string",
            "examples": [
              "jane.doe@example.com"
            ]
          },
          "external_id": {
            "type": "string",
            "examples": [
              "1"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "Shopamine"
            ]
          },
          "nickname": {
            "type": "string"
          },
          "user_type_id": {
            "type": "integer",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "email"
        ]
      },
      "UserUpdate": {
        "type": "object",
        "title": "UserUpdate",
        "properties": {
          "email": {
            "type": "string",
            "examples": [
              "jane.doe@example.com"
            ]
          },
          "external_id": {
            "type": "string",
            "examples": [
              "1"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "Shopamine"
            ]
          },
          "nickname": {
            "type": "string"
          },
          "user_type_id": {
            "type": "integer",
            "examples": [
              2
            ]
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "PurchaseAttempt": {
        "type": "object",
        "title": "PurchaseAttempt",
        "properties": {
          "date_created": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "domain": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "email": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "final_price": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "id": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "items": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "items_total": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "link": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "payment": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "phone": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "purchase_id": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "shipping_address": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "shipping_address_id": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "user": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "user_id": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "user_type": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "user_type_id": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          }
        },
        "required": [
          "date_created",
          "domain",
          "email",
          "final_price",
          "id",
          "items",
          "items_total",
          "link",
          "phone",
          "purchase_id"
        ],
        "description": "All purchase-attempt prices and costs are stored as **complex prices**. You will likely only use a field or two — the rest are there for audit purposes."
      },
      "Purchase": {
        "type": "object",
        "title": "Purchase",
        "properties": {
          "approval_status": {
            "type": "string",
            "examples": [
              "approved"
            ],
            "readOnly": true
          },
          "billing_address": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "billing_address_id": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "date_bought": {
            "type": "string",
            "examples": [
              "2023-12-18T08:55:03Z"
            ],
            "readOnly": true
          },
          "delivery_window": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "discounts_breakdown": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "domain": {
            "type": "string",
            "examples": [
              "www.example.com"
            ],
            "readOnly": true
          },
          "external_id": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "external_order_id": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "external_reference": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "grand_total": {
            "type": "object",
            "examples": [
              {
                "value": 9,
                "currency": "EUR",
                "base": 9,
                "base_with_discounts": 9,
                "base_with_taxes": 9,
                "taxes_applied": [
                  {
                    "tax_rate_id": 1,
                    "base": 4,
                    "rate": 0,
                    "amount": 0
                  }
                ]
              }
            ],
            "readOnly": true
          },
          "id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "items": {
            "type": "array",
            "readOnly": true
          },
          "items_total": {
            "type": "object",
            "examples": [
              {
                "value": 5,
                "currency": "EUR",
                "base": 5,
                "base_with_discounts": 5,
                "base_with_taxes": 5
              }
            ],
            "readOnly": true
          },
          "link": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "locale": {
            "type": "string",
            "examples": [
              "en"
            ],
            "readOnly": true
          },
          "merchant_notes": {
            "type": "string",
            "examples": [
              ""
            ],
            "readOnly": true
          },
          "payment": {
            "type": "object",
            "examples": [
              {
                "type": "unhandled",
                "name": {
                  "__": "Wire transfer"
                },
                "payment_id": 1,
                "cost": {
                  "value": 0,
                  "currency": "EUR",
                  "base": 0,
                  "base_with_discounts": 0,
                  "base_with_taxes": 0
                }
              }
            ],
            "readOnly": true
          },
          "payment_status": {
            "type": "string",
            "examples": [
              "payment_allocated"
            ],
            "readOnly": true
          },
          "payment_terms": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "purchase_attempt_id": {
            "type": "integer",
            "examples": [
              2
            ],
            "readOnly": true
          },
          "shipping": {
            "type": "object",
            "examples": [
              {
                "type": "simple",
                "name": {
                  "__": "Standard shipping"
                },
                "shipping_id": 1,
                "cost": {
                  "value": 4,
                  "currency": "EUR",
                  "base": 4,
                  "base_with_discounts": 4,
                  "base_with_taxes": 4,
                  "taxes_applied": [
                    {
                      "tax_rate_id": 1,
                      "base": 4,
                      "rate": 0,
                      "amount": 0
                    }
                  ]
                },
                "tax_class_id": 1,
                "tax_inclusive": false,
                "allows_partial_shipping": false
              }
            ],
            "readOnly": true
          },
          "shipping_address": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "shipping_address_id": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "status": {
            "type": "string",
            "examples": [
              "finished"
            ],
            "readOnly": true
          },
          "system_notes": {
            "type": "string",
            "examples": [
              "2023-12-18 10:32:33: Comissioned by: jane.doe@example.com\n"
            ],
            "readOnly": true
          },
          "tax_conf_snapshot": {
            "type": "object",
            "examples": [
              {
                "zone": {
                  "id": 1,
                  "name": "World",
                  "order_rank": 1
                },
                "classes": [
                  {
                    "id": 1,
                    "name": "Tax products"
                  },
                  {
                    "id": 3,
                    "name": "Tax-exempt products"
                  }
                ],
                "rates": [
                  {
                    "id": 1,
                    "name": {
                      "__": "VAT"
                    },
                    "tax_zone_id": 1,
                    "order_weight": 1,
                    "values": [
                      {
                        "tax_class_id": 1,
                        "rate": 0
                      }
                    ]
                  }
                ]
              }
            ],
            "readOnly": true
          },
          "user": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "user_id": {
            "type": "integer",
            "examples": [
              2
            ],
            "readOnly": true
          },
          "user_notes": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "user_type": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "user_type_id": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          }
        },
        "required": [
          "approval_status",
          "date_bought",
          "discounts_breakdown",
          "id",
          "items",
          "link",
          "payment_status",
          "purchase_attempt_id",
          "status"
        ],
        "description": "Completed orders — line items, shipping, payment, discounts and the tax snapshot used at the time of purchase."
      },
      "Item": {
        "type": "object",
        "title": "Item",
        "properties": {
          "additional_code": {
            "type": "string"
          },
          "avail_in_days": {
            "type": "integer",
            "examples": [
              5
            ]
          },
          "bar_code": {
            "type": "string",
            "examples": [
              "12347598375"
            ]
          },
          "buyable": {
            "type": "string",
            "examples": [
              "as_part_only"
            ]
          },
          "carry_over": {
            "type": "boolean",
            "examples": [
              false
            ],
            "readOnly": true
          },
          "computed_prices": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "cost_price": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "current_supplier_code": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "current_supplier_id": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "current_supplier_name": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "customization": {
            "type": "object",
            "examples": [
              {
                "apply_after_discounts": false
              }
            ],
            "readOnly": true
          },
          "d1": {
            "type": "integer",
            "examples": [
              7
            ],
            "description": "Required when creating; the code decides at runtime."
          },
          "d2": {
            "type": "string",
            "description": "Required when creating; the code decides at runtime."
          },
          "d3": {
            "type": "string",
            "description": "Required when creating; the code decides at runtime."
          },
          "date_created": {
            "type": "string",
            "examples": [
              "2023-12-05T18:51:33Z"
            ],
            "readOnly": true
          },
          "date_updated": {
            "type": "string",
            "examples": [
              "2023-12-18T12:59:54Z"
            ],
            "readOnly": true
          },
          "default_buyable": {
            "type": "string",
            "examples": [
              "as_part_only"
            ]
          },
          "discounts": {
            "type": "object",
            "examples": [
              {}
            ],
            "readOnly": true
          },
          "external_buy_settings": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "external_id": {
            "type": "string",
            "examples": [
              "134"
            ]
          },
          "external_supplier": {
            "type": "boolean",
            "examples": [
              false
            ],
            "readOnly": true
          },
          "extra_search_kws": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "final_price": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "generic_data": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "id": {
            "type": "integer",
            "examples": [
              127
            ],
            "readOnly": true
          },
          "images": {
            "type": "object",
            "examples": [
              {
                "gallery": [
                  282
                ],
                "gallery_full": [
                  {
                    "id": 282,
                    "width": 600,
                    "height": 600,
                    "media_type": "image/webp",
                    "description": {
                      "__": ""
                    },
                    "title": {
                      "__": ""
                    }
                  }
                ]
              }
            ],
            "readOnly": true
          },
          "list_desc": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "list_price": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "long_desc": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "model": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "nodes": {
            "type": "object",
            "examples": [
              {
                "brands": [
                  89
                ],
                "categories": [
                  83
                ],
                "pages": [
                  80
                ]
              }
            ],
            "readOnly": true
          },
          "p1": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "p2": {
            "type": "string"
          },
          "p3": {
            "type": "string"
          },
          "prices": {
            "type": "object",
            "examples": [
              {
                "p1": 1
              }
            ],
            "readOnly": true
          },
          "sale_over_stock": {
            "type": "boolean",
            "examples": [
              true
            ],
            "readOnly": true
          },
          "sale_qty_maximum": {
            "type": "integer"
          },
          "sale_qty_minimum": {
            "type": "integer"
          },
          "sale_qty_step": {
            "type": "integer"
          },
          "seo_data": {
            "type": "object",
            "examples": [
              {
                "keywords": {
                  "__": ""
                },
                "description": {
                  "__": ""
                },
                "no_index": false
              }
            ],
            "readOnly": true
          },
          "shipping_dimensions": {
            "type": "object",
            "examples": [
              {
                "weight": 500,
                "width": 250,
                "height": 150,
                "depth": 200
              }
            ],
            "readOnly": true
          },
          "short_desc": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "sku": {
            "type": "string",
            "examples": [
              "123SKU123"
            ]
          },
          "stock_amount": {
            "type": "integer",
            "examples": [
              50
            ]
          },
          "supplier_code": {
            "type": "string"
          },
          "suppliers": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "suppliers_combined_description": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "sys_tags": {
            "type": "array",
            "readOnly": true
          },
          "tax_class_id": {
            "type": "integer",
            "examples": [
              3
            ]
          },
          "tax_inclusive": {
            "type": "boolean",
            "examples": [
              false
            ]
          },
          "tax_rate": {
            "type": "integer",
            "examples": [
              0
            ],
            "readOnly": true
          },
          "type": {
            "type": "string",
            "examples": [
              "physical"
            ],
            "readOnly": true
          },
          "unit_of_sale": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "variant_containers": {
            "type": "array",
            "readOnly": true
          },
          "variant_members": {
            "type": "array",
            "readOnly": true
          },
          "variants_configuration": {
            "type": "object",
            "examples": [
              {
                "chooser_type": "specs",
                "chooser_specs": [
                  {
                    "spec_id": 1
                  }
                ],
                "sort_type": "GLOBAL"
              }
            ],
            "readOnly": true
          },
          "warehouses": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          },
          "warranty_months": {
            "type": "integer",
            "examples": [
              24
            ]
          },
          "wholesale": {
            "type": "string"
          },
          "wholesale_price": {
            "description": "Type not established: returned by the API but absent from every captured response.",
            "readOnly": true
          }
        },
        "required": [
          "avail_in_days",
          "buyable",
          "carry_over",
          "computed_prices",
          "date_created",
          "date_updated",
          "default_buyable",
          "discounts",
          "external_buy_settings",
          "external_supplier",
          "id",
          "images",
          "name",
          "nodes",
          "prices",
          "sale_over_stock",
          "sale_qty_maximum",
          "sale_qty_minimum",
          "sale_qty_step",
          "seo_data",
          "shipping_dimensions",
          "stock_amount",
          "suppliers",
          "type",
          "unit_of_sale",
          "variant_containers",
          "variant_members",
          "variants_configuration",
          "warehouses"
        ],
        "description": "Items are the products in your catalogue: prices, stock, specs, images and their placement in the node tree. An item of type `\"variants\"` is a collection of items, one of which must be selected when adding to basket."
      },
      "ItemCreate": {
        "type": "object",
        "title": "ItemCreate",
        "properties": {
          "additional_code": {
            "type": "string"
          },
          "avail_in_days": {
            "type": "integer",
            "examples": [
              5
            ]
          },
          "bar_code": {
            "type": "string",
            "examples": [
              "12347598375"
            ]
          },
          "buy_button_image_id": {
            "type": "string"
          },
          "buyable": {
            "type": "string",
            "examples": [
              "as_part_only"
            ]
          },
          "d1": {
            "type": "integer",
            "examples": [
              7
            ],
            "description": "Required on create, optional on update."
          },
          "d2": {
            "type": "string",
            "description": "Required on create, optional on update."
          },
          "d3": {
            "type": "string",
            "description": "Required on create, optional on update."
          },
          "default_buyable": {
            "type": "string",
            "examples": [
              "as_part_only"
            ]
          },
          "external_id": {
            "type": "string",
            "examples": [
              "134"
            ]
          },
          "extra_search_kws": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "label": {
            "type": "object"
          },
          "list_desc": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "long_desc": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "model": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "nnc": {
            "type": "string"
          },
          "order_weight": {
            "type": "integer"
          },
          "p1": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "p2": {
            "type": "string"
          },
          "p3": {
            "type": "string"
          },
          "ppc": {
            "type": "string"
          },
          "quantity_field_name": {
            "type": "object"
          },
          "sale_qty_maximum": {
            "type": "integer"
          },
          "sale_qty_minimum": {
            "type": "integer"
          },
          "sale_qty_step": {
            "type": "integer"
          },
          "short_desc": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "sku": {
            "type": "string",
            "examples": [
              "123SKU123"
            ]
          },
          "stock": {
            "type": "integer"
          },
          "stock_amount": {
            "type": "integer",
            "examples": [
              50
            ]
          },
          "supplier_code": {
            "type": "string"
          },
          "supplier_description": {
            "type": "object"
          },
          "supplier_id": {
            "type": "integer"
          },
          "supplier_item_id": {
            "type": "string"
          },
          "target_url": {
            "type": "object"
          },
          "tax_class_id": {
            "type": "integer",
            "examples": [
              3
            ]
          },
          "tax_inclusive": {
            "type": "boolean",
            "examples": [
              false
            ]
          },
          "unit_of_sale": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "value": {
            "type": "object"
          },
          "vpc": {
            "type": "string"
          },
          "warranty_months": {
            "type": "integer",
            "examples": [
              24
            ]
          },
          "wholesale": {
            "type": "string"
          }
        },
        "required": [
          "d1",
          "d2",
          "d3",
          "label",
          "name",
          "nnc",
          "p1",
          "ppc",
          "supplier_item_id",
          "target_url",
          "value"
        ]
      },
      "ItemUpdate": {
        "type": "object",
        "title": "ItemUpdate",
        "properties": {
          "additional_code": {
            "type": "string"
          },
          "avail_in_days": {
            "type": "integer",
            "examples": [
              5
            ]
          },
          "bar_code": {
            "type": "string",
            "examples": [
              "12347598375"
            ]
          },
          "buy_button_image_id": {
            "type": "string"
          },
          "buyable": {
            "type": "string",
            "examples": [
              "as_part_only"
            ]
          },
          "d1": {
            "type": "integer",
            "examples": [
              7
            ],
            "description": "Required on create, optional on update."
          },
          "d2": {
            "type": "string",
            "description": "Required on create, optional on update."
          },
          "d3": {
            "type": "string",
            "description": "Required on create, optional on update."
          },
          "default_buyable": {
            "type": "string",
            "examples": [
              "as_part_only"
            ]
          },
          "external_id": {
            "type": "string",
            "examples": [
              "134"
            ]
          },
          "extra_search_kws": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "label": {
            "type": "object"
          },
          "list_desc": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "long_desc": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "model": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "name": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "nnc": {
            "type": "string"
          },
          "order_weight": {
            "type": "integer"
          },
          "p1": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "p2": {
            "type": "string"
          },
          "p3": {
            "type": "string"
          },
          "ppc": {
            "type": "string"
          },
          "quantity_field_name": {
            "type": "object"
          },
          "sale_qty_maximum": {
            "type": "integer"
          },
          "sale_qty_minimum": {
            "type": "integer"
          },
          "sale_qty_step": {
            "type": "integer"
          },
          "short_desc": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "sku": {
            "type": "string",
            "examples": [
              "123SKU123"
            ]
          },
          "stock": {
            "type": "integer"
          },
          "stock_amount": {
            "type": "integer",
            "examples": [
              50
            ]
          },
          "supplier_code": {
            "type": "string"
          },
          "supplier_description": {
            "type": "object"
          },
          "supplier_id": {
            "type": "integer"
          },
          "supplier_item_id": {
            "type": "string"
          },
          "target_url": {
            "type": "object"
          },
          "tax_class_id": {
            "type": "integer",
            "examples": [
              3
            ]
          },
          "tax_inclusive": {
            "type": "boolean",
            "examples": [
              false
            ]
          },
          "unit_of_sale": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          },
          "value": {
            "type": "object"
          },
          "vpc": {
            "type": "string"
          },
          "warranty_months": {
            "type": "integer",
            "examples": [
              24
            ]
          },
          "wholesale": {
            "type": "string"
          }
        },
        "description": "Update bodies merge: fields you omit are left untouched, and an explicit null clears one. Nothing is required."
      },
      "SpecChoice": {
        "type": "object",
        "title": "SpecChoice",
        "properties": {
          "external_id": {
            "type": "string"
          },
          "id": {
            "type": "integer",
            "examples": [
              1
            ],
            "readOnly": true
          },
          "order_weight": {
            "type": "integer",
            "examples": [
              0
            ]
          },
          "value": {
            "type": "object",
            "description": "Localized string. Keys are locale codes; `__` is the default used when a locale has no value of its own.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "__": "Default text",
                "sl": "Slovensko besedilo"
              }
            ]
          }
        },
        "required": [
          "id",
          "value"
        ],
        "description": "Specs"
      }
    }
  },
  "paths": {
    "/tax_classes/list": {
      "get": {
        "summary": "List tax_classes",
        "tags": [
          "TaxClass"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listTaxClasses",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TaxClass"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/tax_classes/create": {
      "post": {
        "summary": "Create a TaxClass",
        "tags": [
          "TaxClass"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createTaxClass",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaxClassCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxClass"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/tax_classes/{id}": {
      "get": {
        "summary": "Retrieve one TaxClass",
        "tags": [
          "TaxClass"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getTaxClass",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxClass"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a TaxClass",
        "tags": [
          "TaxClass"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updateTaxClass",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaxClassUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxClass"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a TaxClass",
        "tags": [
          "TaxClass"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deleteTaxClass",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/warehouse/list": {
      "get": {
        "summary": "List warehouse",
        "tags": [
          "Warehouse"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listWarehouse",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warehouse"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/warehouse/create": {
      "post": {
        "summary": "Create a Warehouse",
        "tags": [
          "Warehouse"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createWarehouse",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WarehouseCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Warehouse"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/warehouse/{id}": {
      "get": {
        "summary": "Retrieve one Warehouse",
        "tags": [
          "Warehouse"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getWarehouse",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Warehouse"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a Warehouse",
        "tags": [
          "Warehouse"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updateWarehouse",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WarehouseUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Warehouse"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a Warehouse",
        "tags": [
          "Warehouse"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deleteWarehouse",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/physical_store/list": {
      "get": {
        "summary": "List physical_store",
        "tags": [
          "PhysicalStore"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listPhysicalStore",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PhysicalStore"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/physical_store/create": {
      "post": {
        "summary": "Create a PhysicalStore",
        "tags": [
          "PhysicalStore"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createPhysicalStore",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhysicalStoreCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhysicalStore"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/physical_store/{id}": {
      "get": {
        "summary": "Retrieve one PhysicalStore",
        "tags": [
          "PhysicalStore"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getPhysicalStore",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhysicalStore"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a PhysicalStore",
        "tags": [
          "PhysicalStore"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updatePhysicalStore",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhysicalStoreUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhysicalStore"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a PhysicalStore",
        "tags": [
          "PhysicalStore"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deletePhysicalStore",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/user_types/list": {
      "get": {
        "summary": "List user_types",
        "tags": [
          "UserType"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listUserTypes",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/UserType"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/user_types/{id}": {
      "get": {
        "summary": "Retrieve one UserType",
        "tags": [
          "UserType"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getUserType",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserType"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/images/list": {
      "get": {
        "summary": "List images",
        "tags": [
          "Image"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listImages",
        "x-required-scope": "images",
        "description": "Requires the `images` scope. Without it the API answers `403 You need scope \"images\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Image"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/images/create": {
      "post": {
        "summary": "Create a Image",
        "tags": [
          "Image"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createImage",
        "x-required-scope": "images",
        "description": "Requires the `images` scope. Without it the API answers `403 You need scope \"images\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Image"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/images/{id}": {
      "get": {
        "summary": "Retrieve one Image",
        "tags": [
          "Image"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getImage",
        "x-required-scope": "images",
        "description": "Requires the `images` scope. Without it the API answers `403 You need scope \"images\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Image"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a Image",
        "tags": [
          "Image"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updateImage",
        "x-required-scope": "images",
        "description": "Requires the `images` scope. Without it the API answers `403 You need scope \"images\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Image"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a Image",
        "tags": [
          "Image"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deleteImage",
        "x-required-scope": "images",
        "description": "Requires the `images` scope. Without it the API answers `403 You need scope \"images\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/nodes/list": {
      "get": {
        "summary": "List nodes",
        "tags": [
          "Node"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listNodes",
        "x-required-scope": "nodes",
        "description": "Requires the `nodes` scope. Without it the API answers `403 You need scope \"nodes\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Node"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/nodes/create": {
      "post": {
        "summary": "Create a Node",
        "tags": [
          "Node"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createNode",
        "x-required-scope": "nodes",
        "description": "Requires the `nodes` scope. Without it the API answers `403 You need scope \"nodes\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NodeCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Node"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/nodes/{id}": {
      "get": {
        "summary": "Retrieve one Node",
        "tags": [
          "Node"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getNode",
        "x-required-scope": "nodes",
        "description": "Requires the `nodes` scope. Without it the API answers `403 You need scope \"nodes\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Node"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a Node",
        "tags": [
          "Node"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updateNode",
        "x-required-scope": "nodes",
        "description": "Requires the `nodes` scope. Without it the API answers `403 You need scope \"nodes\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NodeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Node"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a Node",
        "tags": [
          "Node"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deleteNode",
        "x-required-scope": "nodes",
        "description": "Requires the `nodes` scope. Without it the API answers `403 You need scope \"nodes\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/specs/list": {
      "get": {
        "summary": "List specs",
        "tags": [
          "Spec"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listSpecs",
        "x-required-scope": "specs",
        "description": "Requires the `specs` scope. Without it the API answers `403 You need scope \"specs\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Spec"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/specs/create": {
      "post": {
        "summary": "Create a Spec",
        "tags": [
          "Spec"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createSpec",
        "x-required-scope": "specs",
        "description": "Requires the `specs` scope. Without it the API answers `403 You need scope \"specs\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpecCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Spec"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/specs/{id}": {
      "get": {
        "summary": "Retrieve one Spec",
        "tags": [
          "Spec"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getSpec",
        "x-required-scope": "specs",
        "description": "Requires the `specs` scope. Without it the API answers `403 You need scope \"specs\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Spec"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a Spec",
        "tags": [
          "Spec"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updateSpec",
        "x-required-scope": "specs",
        "description": "Requires the `specs` scope. Without it the API answers `403 You need scope \"specs\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpecUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Spec"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a Spec",
        "tags": [
          "Spec"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deleteSpec",
        "x-required-scope": "specs",
        "description": "Requires the `specs` scope. Without it the API answers `403 You need scope \"specs\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/timed_discounts/list": {
      "get": {
        "summary": "List timed_discounts",
        "tags": [
          "TimedDiscount"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listTimedDiscounts",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TimedDiscount"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/timed_discounts/create": {
      "post": {
        "summary": "Create a TimedDiscount",
        "tags": [
          "TimedDiscount"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createTimedDiscount",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimedDiscountCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimedDiscount"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/timed_discounts/{id}": {
      "get": {
        "summary": "Retrieve one TimedDiscount",
        "tags": [
          "TimedDiscount"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getTimedDiscount",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimedDiscount"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a TimedDiscount",
        "tags": [
          "TimedDiscount"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updateTimedDiscount",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimedDiscountUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimedDiscount"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a TimedDiscount",
        "tags": [
          "TimedDiscount"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deleteTimedDiscount",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/payment_options/list": {
      "get": {
        "summary": "List payment_options",
        "tags": [
          "PaymentOption"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listPaymentOptions",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PaymentOption"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/payment_options/{id}": {
      "get": {
        "summary": "Retrieve one PaymentOption",
        "tags": [
          "PaymentOption"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getPaymentOption",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentOption"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/shipping_options/list": {
      "get": {
        "summary": "List shipping_options",
        "tags": [
          "ShippingOption"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listShippingOptions",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ShippingOption"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/shipping_options/{id}": {
      "get": {
        "summary": "Retrieve one ShippingOption",
        "tags": [
          "ShippingOption"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getShippingOption",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShippingOption"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/promotions/list": {
      "get": {
        "summary": "List promotions",
        "tags": [
          "Promotion"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listPromotions",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Promotion"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/promotions/create": {
      "post": {
        "summary": "Create a Promotion",
        "tags": [
          "Promotion"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createPromotion",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromotionCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Promotion"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/promotions/{id}": {
      "get": {
        "summary": "Retrieve one Promotion",
        "tags": [
          "Promotion"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getPromotion",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Promotion"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a Promotion",
        "tags": [
          "Promotion"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updatePromotion",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromotionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Promotion"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a Promotion",
        "tags": [
          "Promotion"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deletePromotion",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/promotions/{promotion_id}/coupons/list": {
      "get": {
        "summary": "List coupons",
        "tags": [
          "PromotionCoupon"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listCoupons",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent promotions id."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PromotionCoupon"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/promotions/{promotion_id}/coupons/create": {
      "post": {
        "summary": "Create a PromotionCoupon",
        "tags": [
          "PromotionCoupon"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createPromotionCoupon",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent promotions id."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromotionCoupon"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromotionCoupon"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/promotions/{promotion_id}/coupons/{id}": {
      "get": {
        "summary": "Retrieve one PromotionCoupon",
        "tags": [
          "PromotionCoupon"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getPromotionCoupon",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent promotions id."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromotionCoupon"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a PromotionCoupon",
        "tags": [
          "PromotionCoupon"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updatePromotionCoupon",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent promotions id."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromotionCoupon"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromotionCoupon"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a PromotionCoupon",
        "tags": [
          "PromotionCoupon"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deletePromotionCoupon",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent promotions id."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/users/{user_id}/addresses/list": {
      "get": {
        "summary": "List addresses",
        "tags": [
          "Address"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listAddresses",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`.",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent users id."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Address"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/users/{user_id}/addresses/create": {
      "post": {
        "summary": "Create a Address",
        "tags": [
          "Address"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createAddress",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`.",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent users id."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddressCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Address"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/users/{user_id}/addresses/{id}": {
      "get": {
        "summary": "Retrieve one Address",
        "tags": [
          "Address"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getAddress",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`.",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent users id."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Address"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/users/list": {
      "get": {
        "summary": "List users",
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listUsers",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/User"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/users/create": {
      "post": {
        "summary": "Create a User",
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createUser",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/users/{id}": {
      "get": {
        "summary": "Retrieve one User",
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getUser",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a User",
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updateUser",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a User",
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deleteUser",
        "x-required-scope": "users",
        "description": "Requires the `users` scope. Without it the API answers `403 You need scope \"users\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/purchase_attempts/list": {
      "get": {
        "summary": "List purchase_attempts",
        "tags": [
          "PurchaseAttempt"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listPurchaseAttempts",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PurchaseAttempt"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/purchase_attempts/{id}": {
      "get": {
        "summary": "Retrieve one PurchaseAttempt",
        "tags": [
          "PurchaseAttempt"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getPurchaseAttempt",
        "x-required-scope": "settings",
        "description": "Requires the `settings` scope. Without it the API answers `403 You need scope \"settings\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseAttempt"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/purchases/list": {
      "get": {
        "summary": "List purchases",
        "tags": [
          "Purchase"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listPurchases",
        "x-required-scope": "purchases",
        "description": "Requires the `purchases` scope. Without it the API answers `403 You need scope \"purchases\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Purchase"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/purchases/{id}": {
      "get": {
        "summary": "Retrieve one Purchase",
        "tags": [
          "Purchase"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getPurchase",
        "x-required-scope": "purchases",
        "description": "Requires the `purchases` scope. Without it the API answers `403 You need scope \"purchases\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Purchase"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/items/list": {
      "get": {
        "summary": "List items",
        "tags": [
          "Item"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listItems",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Item"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/items/create": {
      "post": {
        "summary": "Create a Item",
        "tags": [
          "Item"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "createItem",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ItemCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Item"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/items/{id}": {
      "get": {
        "summary": "Retrieve one Item",
        "tags": [
          "Item"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getItem",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Item"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "post": {
        "summary": "Update a Item",
        "tags": [
          "Item"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "updateItem",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`. Updates merge: fields absent from the request are left untouched; send an explicit `null` to clear one.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ItemUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Item"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      },
      "delete": {
        "summary": "Delete a Item",
        "tags": [
          "Item"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "deleteItem",
        "x-required-scope": "items",
        "description": "Requires the `items` scope. Without it the API answers `403 You need scope \"items\"`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted."
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/specs/{spec_id}/choices/list": {
      "get": {
        "summary": "List choices",
        "tags": [
          "SpecChoice"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "listChoices",
        "x-required-scope": "specs",
        "description": "Requires the `specs` scope. Without it the API answers `403 You need scope \"specs\"`.",
        "parameters": [
          {
            "name": "spec_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent specs id."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "description": "Page size. Each entity has its own maximum."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Sort field(s), comma separated. Prefix with `-` to reverse."
          }
        ],
        "responses": {
          "200": {
            "description": "A single `data` array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SpecChoice"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    },
    "/specs/{spec_id}/choices/{id}": {
      "get": {
        "summary": "Retrieve one SpecChoice",
        "tags": [
          "SpecChoice"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "getSpecChoice",
        "x-required-scope": "specs",
        "description": "Requires the `specs` scope. Without it the API answers `403 You need scope \"specs\"`.",
        "parameters": [
          {
            "name": "spec_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The parent specs id."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpecChoice"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the required scope."
          },
          "404": {
            "description": "No such entity."
          }
        }
      }
    }
  }
}
