{
  "openapi": "3.0.0",
  "servers": [
    {
      "description": "Sellavi USA API",
      "url": "https://api.sellavi.com"
    }
  ],
  "info": {
    "description": "Public API reference for Sellavi stores in United States. Start with [Authentication](/authentication) or [Explore the API](/explore).",
    "version": "1.0.3",
    "title": "Sellavi US API",
    "contact": {
      "email": "support@sellavi.com"
    }
  },
  "security": [
    {
      "Token": []
    }
  ],
  "tags": [
    {
      "name": "Products",
      "description": "Create and maintain products, inventory and bulk updates."
    },
    {
      "name": "Categories",
      "description": "Organize your catalog and maintain category content."
    },
    {
      "name": "Products options",
      "description": "Manage product options and their available values."
    },
    {
      "name": "Custom field",
      "description": "Define and maintain additional fields for your commerce data."
    },
    {
      "name": "Orders",
      "description": "Read orders, update status, create invoices and manage shipments."
    },
    {
      "name": "Customers",
      "description": "Manage customer profiles and assign loyalty ranks."
    },
    {
      "name": "Custom orders",
      "description": "Create and manage pay-by-link custom orders."
    },
    {
      "name": "Coupons",
      "description": "List coupons and read their details."
    },
    {
      "name": "Points",
      "description": "Manage loyalty ranks and reward thresholds. See the [Points guide](/points)."
    },
    {
      "name": "Store design",
      "description": "Customize appearance, mobile options, layouts and shared header/footer settings. See [Store design](/design)."
    },
    {
      "name": "Modules",
      "description": "Create and arrange storefront content blocks and banners. See [Modules and banners](/modules)."
    },
    {
      "name": "Store themes",
      "description": "Read and update custom CSS/JS, browse saved versions and upload media."
    },
    {
      "name": "Dynamic fields",
      "description": "Manage reusable fields for storefront content."
    },
    {
      "name": "Shipping",
      "description": "Discover shipping methods and read their settings."
    },
    {
      "name": "Webhook",
      "description": "Subscribe to store events and manage webhook destinations."
    },
    {
      "name": "Misc",
      "description": "Look up languages, currencies, dimensions and stock statuses."
    }
  ],
  "paths": {
    "/customers": {
      "post": {
        "tags": [
          "Customers"
        ],
        "description": "Get list of customers with filters",
        "summary": "list of customers",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "In case of succes return list of customers",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerListResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "ListOfCustomers"
      }
    },
    "/customer": {
      "post": {
        "tags": [
          "Customers"
        ],
        "description": "Create single customer",
        "summary": "Customer create",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "CustomerCreate"
      }
    },
    "/customer/{customer_id}": {
      "put": {
        "tags": [
          "Customers"
        ],
        "description": "Edit exist customer",
        "summary": "list of customers",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "Customer id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "ListOfCustomersPutCustomerCustomerId"
      },
      "delete": {
        "tags": [
          "Customers"
        ],
        "description": "Delete customer by its id",
        "summary": "Delete customer",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "Customer id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "DeleteCustomer"
      },
      "get": {
        "tags": [
          "Customers"
        ],
        "description": "Get customer details by its id",
        "summary": "Customer details",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "Customer id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "In case of succes return single customer`s details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerSingleResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "CustomerDetails"
      }
    },
    "/order_status_list": {
      "get": {
        "tags": [
          "Orders"
        ],
        "description": "Get order Status ids that can be passed to order list method",
        "summary": "Get order status ids",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusList"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetOrderStatusIds"
      }
    },
    "/orders": {
      "post": {
        "tags": [
          "Orders"
        ],
        "description": "Get full list with all orders with date filter",
        "summary": "Get full list with all orders with date filter",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderListResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date_from": {
                    "type": "string",
                    "description": "Valid date (year-month-day) wich we start the filter from",
                    "example": "2020-01-20"
                  },
                  "date_to": {
                    "type": "string",
                    "description": "Valid date (year-month-day) wich we end the filter",
                    "example": "2020-01-25"
                  },
                  "limit": {
                    "type": "integer",
                    "description": "Limit orders per page (minimum 1)",
                    "minimum": 1,
                    "maximum": 100,
                    "example": 10
                  },
                  "page": {
                    "type": "integer",
                    "description": "Limit orders per page (minimum 1)",
                    "minimum": 1,
                    "example": 1
                  },
                  "order_status_ids": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Array of valid order status ids - Leave empty or dont pass this property to get full list",
                    "example": [
                      1,
                      5
                    ]
                  }
                },
                "required": [
                  "date_from",
                  "date_to",
                  "limit",
                  "page"
                ]
              }
            }
          }
        },
        "operationId": "GetFullListWithAllOrdersWithDateFilter"
      }
    },
    "/order/{order_id}": {
      "get": {
        "tags": [
          "Orders"
        ],
        "description": "Get order details by order id",
        "summary": "Get order details by order Id",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderSingleResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetOrderDetailsByOrderId"
      }
    },
    "/order/{order_id}/update_status": {
      "post": {
        "tags": [
          "Orders"
        ],
        "description": "Updating single order status and adding comment , with optional notify",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "description": "Determine if update action executed successfullyy",
                          "example": true
                        },
                        "message": {
                          "type": "string",
                          "description": "Include short description if there is an error or success",
                          "example": "Order status updated successfully"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/BaseResponseBottom"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderStatusUpdateRequest"
              }
            }
          }
        },
        "summary": "POST /order/{order_id}/update_status",
        "operationId": "POSTOrderOrderIdUpdateStatus"
      }
    },
    "/custom_order/create": {
      "post": {
        "tags": [
          "Custom orders"
        ],
        "description": "Create new order",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "description": "Determine if create action executed successfully"
                        },
                        "message": {
                          "type": "string",
                          "description": "Include short description if there is an error or success",
                          "example": "Custom order created successfully"
                        },
                        "response": {
                          "type": "object",
                          "properties": {
                            "order_id": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/BaseResponseBottom"
                    }
                  ]
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomOrderCreateRequest"
              }
            }
          }
        },
        "summary": "Create a custom order",
        "operationId": "CreateACustomOrder"
      }
    },
    "/custom_order/{order_id}": {
      "get": {
        "tags": [
          "Custom orders"
        ],
        "description": "Get custom order",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Custom order info",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomOrderSingleResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "summary": "GET /custom_order/{order_id}",
        "operationId": "GETCustomOrderOrderId"
      }
    },
    "/custom_order/{order_id}/generate_qr": {
      "get": {
        "tags": [
          "Custom orders"
        ],
        "description": "Download QR-code",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "QR-code in SVG format",
            "content": {
              "image/svg+xml": {}
            }
          }
        },
        "summary": "GET /custom_order/{order_id}/generate_qr",
        "operationId": "GETCustomOrderOrderIdGenerateQr"
      }
    },
    "/custom_order/{order_id}/expiry_refresh": {
      "put": {
        "tags": [
          "Custom orders"
        ],
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "refresh": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "refresh"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Custom order info",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomOrderSingleResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "summary": "PUT /custom_order/{order_id}/expiry_refresh",
        "description": "PUT /custom_order/{order_id}/expiry_refresh.",
        "operationId": "PUTCustomOrderOrderIdExpiryRefresh"
      }
    },
    "/custom_fields/{limit}/{page}": {
      "get": {
        "tags": [
          "Custom field"
        ],
        "description": "Get list of custom fields",
        "summary": "Get custom field list",
        "parameters": [
          {
            "in": "path",
            "name": "limit",
            "description": "the limit of the custom fields recieved each call",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "in": "path",
            "name": "page",
            "description": "the page number (start page is 0)",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldSingle"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetCustomFieldList"
      }
    },
    "/custom_field/{custom_field_id}": {
      "get": {
        "tags": [
          "Custom field"
        ],
        "description": "Get single custom field full details",
        "summary": "Get single custom field",
        "parameters": [
          {
            "name": "custom_field_id",
            "in": "path",
            "required": true,
            "description": "custom field id",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldSingle"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetSingleCustomField"
      },
      "put": {
        "tags": [
          "Custom field"
        ],
        "description": "Update existing custom field",
        "summary": "Update existing custom field",
        "parameters": [
          {
            "name": "custom_field_id",
            "in": "path",
            "required": true,
            "description": "custom field id",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomFieldCrudStructure"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Custom field deleted successfullyy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldResponse200"
                }
              }
            }
          },
          "403": {
            "description": "Process failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldResponse403"
                }
              }
            }
          }
        },
        "operationId": "UpdateExistingCustomField"
      },
      "delete": {
        "tags": [
          "Custom field"
        ],
        "description": "Delete existing custom field",
        "summary": "Delete existing custom field",
        "parameters": [
          {
            "name": "custom_field_id",
            "in": "path",
            "required": true,
            "description": "custom field id",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Custom field deleted successfullyy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldResponse200"
                }
              }
            }
          },
          "403": {
            "description": "Process failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldResponse403"
                }
              }
            }
          }
        },
        "operationId": "DeleteExistingCustomField"
      }
    },
    "/custom_field": {
      "post": {
        "tags": [
          "Custom field"
        ],
        "description": "Create new custom field",
        "summary": "Create new custom field",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomFieldCrudStructure"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Custom field deleted successfullyy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldPostResponse200"
                }
              }
            }
          },
          "403": {
            "description": "Process failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldResponse403"
                }
              }
            }
          }
        },
        "operationId": "CreateNewCustomField"
      }
    },
    "/custom_field_info/types": {
      "get": {
        "tags": [
          "Custom field"
        ],
        "description": "Get list of custom field types",
        "summary": "Get list of custom field types",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldTypes"
                }
              }
            }
          },
          "403": {
            "description": "Auth error"
          }
        },
        "operationId": "GetListOfCustomFieldTypes"
      }
    },
    "/custom_field_info/locations": {
      "get": {
        "tags": [
          "Custom field"
        ],
        "description": "Get list of custom field types",
        "summary": "Get list of custom field types",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldLocations"
                }
              }
            }
          },
          "403": {
            "description": "Auth error"
          }
        },
        "operationId": "GetListOfCustomFieldTypesGetCustomFieldInfoLocations"
      }
    },
    "/categories": {
      "post": {
        "tags": [
          "Categories"
        ],
        "description": "Create new Cateogry",
        "summary": "Create New Category",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CategoryCreateEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/BaseResponseTop"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "response": {
                          "type": "string",
                          "example": "Category created successfully, id: 126"
                        },
                        "category_id": {
                          "type": "integer",
                          "example": 126
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/BaseResponseBottom"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "CreateNewCategory"
      },
      "get": {
        "tags": [
          "Categories"
        ],
        "description": "Get all categories",
        "summary": "Get all categories",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "description": "The array is the first block of the structure , contains object for each category",
                  "items": {
                    "$ref": "#/components/schemas/CategoryListResponse"
                  }
                }
              }
            }
          }
        },
        "operationId": "GetAllCategories"
      }
    },
    "/categories/{category_id}": {
      "put": {
        "tags": [
          "Categories"
        ],
        "description": "Edit existing category by category ID",
        "summary": "Edit existing category",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CategoryCreateEdit"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "category_id",
            "in": "path",
            "description": "Category Id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/BaseResponseTop"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "response": {
                          "type": "string",
                          "example": "Category updated successfully, id: 126"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/BaseResponseBottom"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "EditExistingCategory"
      },
      "delete": {
        "tags": [
          "Categories"
        ],
        "description": "Delete category by Id",
        "summary": "Delete existing category",
        "parameters": [
          {
            "name": "category_id",
            "required": true,
            "in": "path",
            "description": "Category Id",
            "schema": {
              "type": "integer",
              "example": 12500,
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/BaseResponseTop"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "response": {
                          "type": "string",
                          "example": "Category deleted successfully, id: 126"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/BaseResponseBottom"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "DeleteExistingCategory"
      },
      "get": {
        "tags": [
          "Categories"
        ],
        "description": "Get Category data by ID",
        "summary": "Get existing category data",
        "parameters": [
          {
            "name": "category_id",
            "in": "path",
            "required": true,
            "description": "category ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategorySingleSingle"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetExistingCategoryData"
      }
    },
    "/products/{limit}/{page}": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Get products to store",
        "operationId": "ListProducts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductListResponse"
                }
              }
            }
          },
          "403": {
            "description": "Wrong Token"
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "path",
            "description": "Limit of recieve products",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "page",
            "in": "path",
            "description": "Page number",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 1
            }
          }
        ],
        "description": "Read products with path-based pagination and a maximum page size of 100. Data is returned in the lowercase products array. Empty results return HTTP 422."
      }
    },
    "/products/{product_id}": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Get product by id",
        "operationId": "GetProductById",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductSingleResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "parameters": [
          {
            "name": "product_id",
            "in": "path",
            "description": "Product Id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "description": "Get product by id."
      },
      "put": {
        "tags": [
          "Products"
        ],
        "summary": "Update an existing Product",
        "operationId": "UpdateProductById",
        "responses": {
          "200": {
            "description": "successfully request",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/BaseResponseTop"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "response": {
                          "type": "string",
                          "example": "Product Updated successfully, productID: 216"
                        },
                        "product_id": {
                          "type": "number",
                          "example": 216
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/BaseResponseBottom"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "parameters": [
          {
            "name": "product_id",
            "in": "path",
            "description": "Product Id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductEditRequest"
              }
            }
          }
        },
        "description": "Update an existing Product."
      },
      "delete": {
        "tags": [
          "Products"
        ],
        "summary": "Delete Product",
        "operationId": "DeleteProductById",
        "responses": {
          "200": {
            "description": "successfully request",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/BaseResponseTop"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "response": {
                          "type": "string",
                          "example": "Product was delete successfully"
                        },
                        "product_id": {
                          "type": "number",
                          "example": 216
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/BaseResponseBottom"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "parameters": [
          {
            "name": "product_id",
            "in": "path",
            "description": "Product Id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "description": "Delete Product."
      }
    },
    "/products/bulk": {
      "put": {
        "tags": [
          "Products"
        ],
        "summary": "Edit multiple products in single request",
        "operationId": "EditProductsBulk",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductBulkEditResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductBulkEditRequest"
              }
            }
          }
        },
        "description": "Edit multiple products in single request."
      }
    },
    "/products": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Create New Product",
        "operationId": "CreateProduct",
        "responses": {
          "200": {
            "description": "successfully request",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/BaseResponseTop"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "response": {
                          "type": "string",
                          "example": "Product created successfully, productID: 970"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/BaseResponseBottom"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductAddRequest"
              }
            }
          }
        },
        "description": "Create New Product."
      }
    },
    "/options": {
      "get": {
        "tags": [
          "Products options"
        ],
        "summary": "List options",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptionListResponse"
                }
              }
            }
          }
        },
        "description": "List options.",
        "operationId": "ListOptions"
      },
      "post": {
        "tags": [
          "Products options"
        ],
        "summary": "Create option",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptionCreateResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OptionCreateRequest"
              }
            }
          }
        },
        "description": "Create option.",
        "operationId": "CreateOption"
      }
    },
    "/options/{option_id}": {
      "get": {
        "tags": [
          "Products options"
        ],
        "summary": "Get option",
        "parameters": [
          {
            "name": "option_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptionSingleResponse"
                }
              }
            }
          }
        },
        "description": "Get option.",
        "operationId": "GetOption"
      },
      "put": {
        "tags": [
          "Products options"
        ],
        "summary": "Update option",
        "parameters": [
          {
            "name": "option_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptionSingleResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OptionUpdateRequest"
              }
            }
          }
        },
        "description": "Update option.",
        "operationId": "UpdateOption"
      },
      "delete": {
        "tags": [
          "Products options"
        ],
        "summary": "Delete option",
        "parameters": [
          {
            "name": "option_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptionDeleteResponse"
                }
              }
            }
          }
        },
        "description": "Delete option.",
        "operationId": "DeleteOption"
      }
    },
    "/coupons": {
      "post": {
        "tags": [
          "Coupons"
        ],
        "summary": "Get list of coupons with filters",
        "description": "Get list of coupons with filters",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CouponResponseStructureArray"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CouponListRequest"
              }
            }
          }
        },
        "operationId": "GetListOfCouponsWithFilters"
      }
    },
    "/coupon/{coupon_id}": {
      "get": {
        "parameters": [
          {
            "name": "coupon_id",
            "in": "path",
            "description": "The coupon id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "tags": [
          "Coupons"
        ],
        "summary": "Get single coupon info",
        "description": "Get full data and info for a single coupon",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CouponResponseStructure"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetSingleCouponInfo"
      }
    },
    "/shipping_methods": {
      "get": {
        "tags": [
          "Shipping"
        ],
        "summary": "Get list of shipping methods",
        "description": "Get full list of all client's shipping methods created by system with their settings and statuses",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShippingMethodListResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetListOfShippingMethods"
      }
    },
    "/shipping/{shipping_id}": {
      "get": {
        "parameters": [
          {
            "name": "shipping_id",
            "in": "path",
            "description": "Id of shipping we look for",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "tags": [
          "Shipping"
        ],
        "summary": "Get single shipping method",
        "description": "Get single shipping method created by system with it's settings and statuses",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShippingSingleResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetSingleShippingMethod"
      }
    },
    "/automation/webhooks": {
      "post": {
        "tags": [
          "Webhook"
        ],
        "summary": "Get list of webhooks",
        "description": "Get list of webhooks the data related and events",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "description": "Array of webhook objects",
                  "items": {
                    "$ref": "#/components/schemas/webhookSingle"
                  }
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhookListRequest"
              }
            }
          }
        },
        "operationId": "GetListOfWebhooks"
      }
    },
    "/automation/webhook": {
      "post": {
        "tags": [
          "Webhook"
        ],
        "summary": "Create single webhook",
        "description": "Create single webhook",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhookCrudResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhookCreateUpdateRequest"
              }
            }
          }
        },
        "operationId": "CreateSingleWebhook"
      }
    },
    "/automation/webhook/{webhook_id}": {
      "get": {
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "description": "Id of Webhook we look for",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "tags": [
          "Webhook"
        ],
        "summary": "Get single webhook",
        "description": "Get single webhook with the data related and events",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhookSingle"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetSingleWebhook"
      },
      "put": {
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "description": "Id of Webhook we update",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "tags": [
          "Webhook"
        ],
        "summary": "Update single webhook",
        "description": "Update single webhook",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhookCrudResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhookCreateUpdateRequest"
              }
            }
          }
        },
        "operationId": "UpdateSingleWebhook"
      },
      "delete": {
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "description": "Id of Webhook we delete",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "tags": [
          "Webhook"
        ],
        "summary": "Delete single webhook",
        "description": "Delete single webhook",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhookCrudResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "DeleteSingleWebhook"
      }
    },
    "/automation/webhook_events": {
      "get": {
        "tags": [
          "Webhook"
        ],
        "summary": "Get list of event ids",
        "description": "Get list of event ids and slug explaination",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/webhookEventListResponse"
                  }
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetListOfEventIds"
      }
    },
    "/store_themes/js": {
      "get": {
        "tags": [
          "Store themes"
        ],
        "summary": "Get custom JS code",
        "description": "Requires API permission `themesJs`. Reads custom JS for the authenticated United States store. Omit version_id to preserve the current/latest behavior and existing response shape. Supply version_id from the matching versions list to read historical content without changing live code. No current code returns code=\"\". See [Saved CSS/JS versions](/design#saved-cssjs-versions).",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreThemeCodeResponse"
                }
              }
            }
          },
          "403": {
            "description": "Requires API permission `themesJs`."
          },
          "422": {
            "description": "Invalid version_id, or JS version not found for the authenticated store. Missing/foreign IDs do not fall back to the current version."
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          }
        },
        "parameters": [
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "description": "Optional saved version ID from this store and code type. If supplied, must be a non-empty positive integer; null and empty values are invalid.",
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "example": 123
          }
        ],
        "operationId": "GetCustomJSCode"
      },
      "put": {
        "tags": [
          "Store themes"
        ],
        "summary": "Update custom JS code",
        "description": "Create or update the custom JS code for the authenticated store.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StoreThemeCodeUpdateRequest"
              },
              "example": {
                "code": "console.log('store loaded');"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreThemeUpdateResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "UpdateCustomJSCode"
      }
    },
    "/store_themes/css": {
      "get": {
        "tags": [
          "Store themes"
        ],
        "summary": "Get custom CSS code",
        "description": "Requires API permission `themesCss`. Reads custom CSS for the authenticated United States store. Omit version_id to preserve the current/latest behavior and existing response shape. Supply version_id from the matching versions list to read historical content without changing live code. No current code returns code=\"\". See [Saved CSS/JS versions](/design#saved-cssjs-versions).",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreThemeCodeResponse"
                }
              }
            }
          },
          "403": {
            "description": "Requires API permission `themesCss`."
          },
          "422": {
            "description": "Invalid version_id, or CSS version not found for the authenticated store. Missing/foreign IDs do not fall back to the current version."
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          }
        },
        "parameters": [
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "description": "Optional saved version ID from this store and code type. If supplied, must be a non-empty positive integer; null and empty values are invalid.",
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "example": 123
          }
        ],
        "operationId": "GetCustomCSSCode"
      },
      "put": {
        "tags": [
          "Store themes"
        ],
        "summary": "Update custom CSS code",
        "description": "Create or update the custom CSS code for the authenticated store.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StoreThemeCodeUpdateRequest"
              },
              "example": {
                "code": ".product-title { color: #111111; }"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreThemeUpdateResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "UpdateCustomCSSCode"
      }
    },
    "/store_themes/media/upload": {
      "post": {
        "tags": [
          "Store themes"
        ],
        "summary": "Upload store theme media",
        "description": "Upload a media file for the authenticated store theme. Send a multipart/form-data request with the file field named file. Supported image formats are jpg, jpeg, png, gif, and webp; mp4 is accepted only when video banners are enabled for the store.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/StoreThemeMediaUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreThemeMediaUploadResponse"
                },
                "example": {
                  "success": true,
                  "image": "https://cdn.sellavi.com/image/upload/clients/12345/store-theme-media.webp",
                  "request_id": "1ef2da0b-6f98-6fec-b13f-06c63b84be49"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "UploadStoreThemeMedia"
      }
    },
    "/language_list": {
      "get": {
        "tags": [
          "Misc"
        ],
        "summary": "Get language detail list",
        "description": "Get language detail list",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LanguageList"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetLanguageDetailList"
      }
    },
    "/currency_list": {
      "get": {
        "tags": [
          "Misc"
        ],
        "summary": "List of currencies",
        "description": "Get list of available currencies",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CurrencyList"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "ListOfCurrencies"
      }
    },
    "/dimension_list": {
      "get": {
        "tags": [
          "Misc"
        ],
        "summary": "List of valid dimensions",
        "description": "Get List of valid dimension with their ids and descriptions",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DimensionList"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "ListOfValidDimensions"
      }
    },
    "/stock_status_list": {
      "get": {
        "tags": [
          "Misc"
        ],
        "summary": "Get stock status list",
        "description": "Get stock status list",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StockStatusList"
                }
              }
            }
          }
        },
        "operationId": "GetStockStatusList"
      }
    },
    "/points": {
      "get": {
        "tags": [
          "Points"
        ],
        "summary": "Get point ranks list",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PointRankListResponse"
                }
              }
            }
          },
          "404": {
            "description": "Points feature inactive."
          },
          "422": {
            "description": "Invalid request, no ranks found, or attempted deletion of the default rank."
          }
        },
        "description": "Get point ranks list.",
        "operationId": "GetPointRanksList"
      },
      "post": {
        "tags": [
          "Points"
        ],
        "summary": "Create new point rank",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdResponse"
                }
              }
            }
          },
          "404": {
            "description": "Points feature inactive."
          },
          "422": {
            "description": "Invalid request, no ranks found, or attempted deletion of the default rank."
          }
        },
        "description": "Create new point rank.",
        "operationId": "CreateNewPointRank"
      }
    },
    "/points/{point_rank_id}": {
      "get": {
        "tags": [
          "Points"
        ],
        "summary": "Get point rank",
        "parameters": [
          {
            "name": "point_rank_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PointRankSingleResponse"
                }
              }
            }
          },
          "404": {
            "description": "Points feature inactive."
          },
          "422": {
            "description": "Invalid request, no ranks found, or attempted deletion of the default rank."
          }
        },
        "description": "Get point rank.",
        "operationId": "GetPointRank"
      },
      "put": {
        "tags": [
          "Points"
        ],
        "summary": "Update point rank",
        "parameters": [
          {
            "name": "point_rank_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdResponse"
                }
              }
            }
          },
          "404": {
            "description": "Points feature inactive."
          },
          "422": {
            "description": "Invalid request, no ranks found, or attempted deletion of the default rank."
          }
        },
        "description": "Update point rank.",
        "operationId": "UpdatePointRank"
      },
      "delete": {
        "tags": [
          "Points"
        ],
        "summary": "Delete point rank",
        "parameters": [
          {
            "name": "point_rank_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdResponse"
                }
              }
            }
          },
          "404": {
            "description": "Points feature inactive."
          },
          "422": {
            "description": "Invalid request, no ranks found, or attempted deletion of the default rank."
          }
        },
        "description": "Delete point rank.",
        "operationId": "DeletePointRank"
      }
    },
    "/dynamic_fields": {
      "get": {
        "tags": [
          "Dynamic fields"
        ],
        "summary": "Get dynamic fields list",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DynamicFieldListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Invalid request or dynamic field not found."
          }
        },
        "description": "Get dynamic fields list.",
        "operationId": "GetDynamicFieldsList"
      },
      "post": {
        "tags": [
          "Dynamic fields"
        ],
        "summary": "Create dynamic field",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdResponse"
                }
              }
            }
          },
          "422": {
            "description": "Invalid request or dynamic field not found."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DynamicFieldCreateRequest"
              }
            }
          }
        },
        "description": "Create a reusable content field. Publishing requires an active Dynamic Fields feature.",
        "operationId": "CreateDynamicField"
      }
    },
    "/dynamic_fields/{dynamic_field_id}": {
      "get": {
        "tags": [
          "Dynamic fields"
        ],
        "summary": "Get dynamic field",
        "parameters": [
          {
            "name": "dynamic_field_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DynamicFieldSingleResponse"
                }
              }
            }
          },
          "422": {
            "description": "Invalid request or dynamic field not found."
          }
        },
        "description": "Get dynamic field.",
        "operationId": "GetDynamicField"
      },
      "put": {
        "tags": [
          "Dynamic fields"
        ],
        "summary": "Update dynamic field",
        "parameters": [
          {
            "name": "dynamic_field_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResponse"
                },
                "example": {
                  "response": {
                    "message": "Dynamic field 123 updated successfully."
                  }
                }
              }
            }
          },
          "422": {
            "description": "Invalid request or dynamic field not found."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DynamicFieldUpdateRequest"
              }
            }
          }
        },
        "description": "Update only supplied fields. Read the field first to preserve settings and localized content.",
        "operationId": "UpdateDynamicField"
      },
      "delete": {
        "tags": [
          "Dynamic fields"
        ],
        "summary": "Delete dynamic field",
        "parameters": [
          {
            "name": "dynamic_field_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResponse"
                },
                "example": {
                  "response": {
                    "message": "Dynamic field 123 deleted successfully."
                  }
                }
              }
            }
          },
          "422": {
            "description": "Invalid request or dynamic field not found."
          }
        },
        "description": "Delete dynamic field.",
        "operationId": "DeleteDynamicField"
      }
    },
    "/modules": {
      "get": {
        "tags": [
          "Modules"
        ],
        "summary": "List modules",
        "operationId": "ModulesList",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. See [Modules guide](/modules). Ordered by sort_order, then layout_module_id. Empty lists return 200 with response=[], results=0 and pages=0.",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Missing themesModules permission, or selected layout inaccessible."
          },
          "422": {
            "description": "Validation failed or module creation failed. Validation errors include message and errors; creation failures include success=false and message."
          }
        },
        "parameters": [
          {
            "name": "layout_id",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Filter by layout; 0 selects global header/footer modules. Omit for all layouts."
          },
          {
            "name": "position",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "content_top",
                "content_bottom",
                "header",
                "footer"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Modules"
        ],
        "summary": "Create module",
        "operationId": "ModulesCreate",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. See [Modules guide](/modules).",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleCreateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Missing themesModules permission, or selected layout inaccessible."
          },
          "422": {
            "description": "Validation failed or module creation failed. Validation errors include message and errors; creation failures include success=false and message."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModuleWriteRequest"
              },
              "example": {
                "layout_id": 0,
                "code": "custom_content",
                "component": "header",
                "position": "header",
                "sort_order": 1,
                "settings": {
                  "status": 1,
                  "text": {
                    "1": "Welcome to our store"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/modules/{layout_module_id}": {
      "get": {
        "tags": [
          "Modules"
        ],
        "summary": "Get module",
        "operationId": "ModulesSingle",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. See [Modules guide](/modules).",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleSingleResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Missing themesModules permission, or selected layout inaccessible."
          },
          "404": {
            "description": "Module not found in this store.",
            "content": {
              "application/json": {
                "example": {
                  "success": false,
                  "message": "Module not found.",
                  "request_id": "request-id"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or module creation failed. Validation errors include message and errors; creation failures include success=false and message."
          }
        },
        "parameters": [
          {
            "name": "layout_module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Module ID belonging to the authenticated store."
          }
        ]
      },
      "put": {
        "tags": [
          "Modules"
        ],
        "summary": "Update module",
        "operationId": "ModulesUpdate",
        "description": "Requires API permission `themesModules`. Updates the authenticated store only. Send only changed fields. Omitted module fields, settings and translations keep their saved values; supplied nested settings lists replace that list. Omitted banners are retained, including when banners is []. Read first. Applies immediately to the live store; no version check. See [Modules and banners](/modules).",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleMessageResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Missing themesModules permission, or selected layout inaccessible."
          },
          "404": {
            "description": "Module not found in this store.",
            "content": {
              "application/json": {
                "example": {
                  "success": false,
                  "message": "Module not found.",
                  "request_id": "request-id"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or module creation failed. Validation errors include message and errors; creation failures include success=false and message."
          },
          "400": {
            "description": "A banner ID appears more than once in the update."
          }
        },
        "parameters": [
          {
            "name": "layout_module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Module ID belonging to the authenticated store."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModuleUpdateRequest"
              },
              "examples": {
                "hide": {
                  "summary": "Hide a module without changing other settings",
                  "value": {
                    "settings": {
                      "status": 0
                    }
                  }
                },
                "bannerLink": {
                  "summary": "Change one existing banner link",
                  "value": {
                    "banners": [
                      {
                        "banner_image_id": 45,
                        "link": "https://example.com/sale"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Modules"
        ],
        "summary": "Delete module",
        "operationId": "ModulesDelete",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. See [Modules guide](/modules). Deleting a banners module also deletes its related banner images through the existing module lifecycle.",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleMessageResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Missing themesModules permission, or selected layout inaccessible."
          },
          "404": {
            "description": "Module not found in this store.",
            "content": {
              "application/json": {
                "example": {
                  "success": false,
                  "message": "Module not found.",
                  "request_id": "request-id"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or module creation failed. Validation errors include message and errors; creation failures include success=false and message."
          }
        },
        "parameters": [
          {
            "name": "layout_module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Module ID belonging to the authenticated store."
          }
        ]
      },
      "patch": {
        "tags": [
          "Modules"
        ],
        "summary": "Partially update module",
        "operationId": "ModulesPatch",
        "description": "Requires API permission `themesModules`. Updates the authenticated store only. Send only changed fields. Omitted module fields, settings and translations keep their saved values; supplied nested settings lists replace that list. Omitted banners are retained, including when banners is []. Read first. Applies immediately to the live store; no version check. See [Modules and banners](/modules).",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleMessageResponse"
                }
              }
            }
          },
          "400": {
            "description": "A banner ID appears more than once in the update."
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Missing themesModules permission, or selected layout inaccessible."
          },
          "404": {
            "description": "Module not found in this store.",
            "content": {
              "application/json": {
                "example": {
                  "success": false,
                  "message": "Module not found.",
                  "request_id": "request-id"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or module creation failed. Validation errors include message and errors; creation failures include success=false and message."
          }
        },
        "parameters": [
          {
            "name": "layout_module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Module ID belonging to the authenticated store."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModuleUpdateRequest"
              },
              "examples": {
                "hide": {
                  "summary": "Hide a module without changing other settings",
                  "value": {
                    "settings": {
                      "status": 0
                    }
                  }
                },
                "bannerLink": {
                  "summary": "Change one existing banner link",
                  "value": {
                    "banners": [
                      {
                        "banner_image_id": 45,
                        "link": "https://example.com/sale"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/store_themes/settings": {
      "get": {
        "tags": [
          "Store design"
        ],
        "summary": "Read general design settings",
        "operationId": "DesignSettingsRead",
        "description": "Requires API permission `themesModify`. Access is restricted to the authenticated store. Returns current theme, color and options plus available themes/colors and fonts when available. Read before editing. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSettingsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      },
      "put": {
        "tags": [
          "Store design"
        ],
        "summary": "Update general design settings",
        "operationId": "DesignSettingsUpdate",
        "description": "Requires API permission `themesModify`. Access is restricted to the authenticated store. Send only changed fields. Omitted settings keep saved values. Changes are live immediately; no isolated preview or version check. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DesignSettingsRequest"
              },
              "example": {
                "theme_options": {
                  "mobile_grid": 2
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSettingsUpdateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      },
      "patch": {
        "tags": [
          "Store design"
        ],
        "summary": "Partially update general design settings",
        "operationId": "DesignSettingsPatch",
        "description": "Requires API permission `themesModify`. Access is restricted to the authenticated store. Send only changed fields. Omitted settings keep saved values. Changes are live immediately; no isolated preview or version check. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DesignSettingsRequest"
              },
              "example": {
                "theme_options": {
                  "mobile_grid": 2
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSettingsUpdateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      }
    },
    "/layouts": {
      "get": {
        "tags": [
          "Store design"
        ],
        "summary": "List existing page layouts",
        "operationId": "LayoutsList",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. Returns editable layout types, IDs, routes, URL templates, saved settings, allowed modules and positions. Does not create or duplicate layouts. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayoutListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      }
    },
    "/layouts/{layout_id}": {
      "get": {
        "tags": [
          "Store design"
        ],
        "summary": "Read a layout and its modules",
        "operationId": "LayoutsSingle",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. Includes module settings and banners with descriptions. Entity-specific pages require a real ID in the returned URL template. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "parameters": [
          {
            "name": "layout_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Existing ID belonging to the authenticated store."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayoutSingleResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "404": {
            "description": "Requested layout, module or banner not found in this store."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      }
    },
    "/layouts/{layout_id}/settings": {
      "put": {
        "tags": [
          "Store design"
        ],
        "summary": "Update existing layout settings",
        "operationId": "LayoutSettingsUpdate",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. Only supplied fields supported by the layout route are saved. Send settings directly without a wrapper. Supplied lists replace the list. Changes affect the live store immediately. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "parameters": [
          {
            "name": "layout_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Existing ID belonging to the authenticated store."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutSettingsUpdate"
              },
              "example": {
                "product_limit": 24
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayoutSettingsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "404": {
            "description": "Requested layout, module or banner not found in this store."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      },
      "patch": {
        "tags": [
          "Store design"
        ],
        "summary": "Partially update layout settings",
        "operationId": "LayoutSettingsPatch",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. Only supplied fields supported by the layout route are saved. Send settings directly without a wrapper. Supplied lists replace the list. Changes affect the live store immediately. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "parameters": [
          {
            "name": "layout_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Existing ID belonging to the authenticated store."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutSettingsUpdate"
              },
              "example": {
                "product_limit": 24
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayoutSettingsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "404": {
            "description": "Requested layout, module or banner not found in this store."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      }
    },
    "/modules/global_settings/{position}": {
      "get": {
        "tags": [
          "Store design"
        ],
        "summary": "Read shared header or footer settings",
        "operationId": "GlobalSettingsRead",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. Returns position, settings and allowed module codes. These shared settings are separate from modules in the header/footer. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "parameters": [
          {
            "name": "position",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "header",
                "footer"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalSettingsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      },
      "put": {
        "tags": [
          "Store design"
        ],
        "summary": "Update shared header or footer settings",
        "operationId": "GlobalSettingsUpdate",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. Send header/footer settings directly without a settings wrapper. Omitted fields remain saved. A supplied footer bottom_bar replaces that list. Changes are live immediately. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "parameters": [
          {
            "name": "position",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "header",
                "footer"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GlobalSettingsUpdate"
              },
              "example": {
                "sticky": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedSettingsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      },
      "patch": {
        "tags": [
          "Store design"
        ],
        "summary": "Partially update shared header/footer settings",
        "operationId": "GlobalSettingsPatch",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. Send header/footer settings directly without a settings wrapper. Omitted fields remain saved. A supplied footer bottom_bar replaces that list. Changes are live immediately. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "parameters": [
          {
            "name": "position",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "header",
                "footer"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GlobalSettingsUpdate"
              },
              "example": {
                "sticky": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedSettingsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      }
    },
    "/modules/order_change": {
      "post": {
        "tags": [
          "Modules"
        ],
        "summary": "Reorder or move modules",
        "operationId": "ModulesOrderChange",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. Listed modules come first; unlisted modules in supplied positions retain relative order afterwards. For a move from another layout also send layout_module_id and include it in the order. Destination must allow the module. Changing layouts clears old related_ids. Affects the live store. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModuleOrderRequest"
              },
              "example": {
                "layout_id": 12,
                "sorted_modules": {
                  "content_top": [
                    105,
                    103
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleMessageResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid ordering or duplicate module IDs."
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "404": {
            "description": "Requested layout, module or banner not found in this store."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      }
    },
    "/modules/{layout_module_id}/banners/{banner_image_id}": {
      "delete": {
        "tags": [
          "Modules"
        ],
        "summary": "Delete one banner image",
        "operationId": "ModuleBannerDelete",
        "description": "Requires API permission `themesModules`. Access is restricted to the authenticated store. Permanently removes the selected banner belonging to this module/store. Other banners remain. Affects the live store; CSS/JS snapshots cannot undo it. No request body or confirmed field is used by this REST endpoint. See [Store design](/design).",
        "security": [
          {
            "Token": []
          }
        ],
        "parameters": [
          {
            "name": "layout_module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Existing ID belonging to the authenticated store."
          },
          {
            "name": "banner_image_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Existing ID belonging to the authenticated store."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleMessageResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Missing permission or layout not accessible."
          },
          "404": {
            "description": "Requested layout, module or banner not found in this store."
          },
          "422": {
            "description": "Validation failed. Check message and errors for invalid fields; theme save failure is reported with success=false and message."
          },
          "429": {
            "description": "Rate limit exceeded. Respect Retry-After."
          }
        }
      }
    },
    "/store_themes/css/versions": {
      "get": {
        "tags": [
          "Store themes"
        ],
        "summary": "List saved custom CSS versions",
        "description": "Requires API permission `themesCss`. Returns only date, version and version_id for up to 30 available saved CSS versions belonging to the authenticated United States store. Newest creation date first, then highest ID. No code content or pagination. Read content using GET /store_themes/css?version_id=123. Empty history returns response=[]. Reading history never changes live code.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreThemeVersionsResponse"
                },
                "example": {
                  "success": true,
                  "response": [
                    {
                      "date": "2026-10-31T12:00:00.000000Z",
                      "version": 123,
                      "version_id": 123
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Requires API permission `themesCss`."
          }
        },
        "operationId": "ListSavedCustomCSSVersions"
      }
    },
    "/store_themes/js/versions": {
      "get": {
        "tags": [
          "Store themes"
        ],
        "summary": "List saved custom JS versions",
        "description": "Requires API permission `themesJs`. Returns only date, version and version_id for up to 30 available saved JS versions belonging to the authenticated United States store. Newest creation date first, then highest ID. No code content or pagination. Read content using GET /store_themes/js?version_id=123. Empty history returns response=[]. Reading history never changes live code.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreThemeVersionsResponse"
                },
                "example": {
                  "success": true,
                  "response": [
                    {
                      "date": "2026-10-31T12:00:00.000000Z",
                      "version": 123,
                      "version_id": 123
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired authentication."
          },
          "403": {
            "description": "Requires API permission `themesJs`."
          }
        },
        "operationId": "ListSavedCustomJSVersions"
      }
    },
    "/customer/{customer_id}/point_rank": {
      "put": {
        "tags": [
          "Customers"
        ],
        "summary": "Set customer point rank",
        "operationId": "CustomerPointRankUpdate",
        "description": "Requires API permission `customersEdit`, an active points app, and the points system enabled in store settings. The customer and enabled rank must belong to the authenticated store. Adjusts the non-expired reward total to the selected rank threshold; the spendable customer points balance is unchanged. Saving the currently matching rank does not add a reward. Current rank is the highest enabled rank whose points threshold is no greater than the reward total, including zero. See [Points guide](/points).",
        "security": [
          {
            "Token": []
          }
        ],
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerPointRankUpdateRequest"
              },
              "example": {
                "point_rank_id": 123
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Customer point rank updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Required customers:update scope or customersEdit permission missing."
          },
          "404": {
            "description": "Points app inactive or invalid numeric URL."
          },
          "422": {
            "description": "Invalid point_rank_id, customer or enabled rank not found in this store, or points system disabled in store settings."
          },
          "429": {
            "description": "API rate limit exceeded."
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Integration guides",
    "url": "https://apidocs.sellavi.com/introduction"
  },
  "components": {
    "responses": {
      "403": {
        "description": "Auth error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request succeeded. This is false for an error response.",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "description": "Message describes the issue",
                  "example": "Sorry, wrong token"
                }
              }
            }
          }
        }
      },
      "422": {
        "description": "Any error not related to auth, can be missing parameters | no data found | action already registered and etc...",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request succeeded. This is false for an error response.",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "description": "Message describes the issue",
                  "example": "No data found"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "BaseResponseTop": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          }
        }
      },
      "BaseResponseBottom": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "example": "1ef2da0b-6f98-6fec-b13f-06c63b84be49"
          }
        }
      },
      "BaseResponsePagination": {
        "type": "object",
        "properties": {
          "results": {
            "type": "number",
            "example": 233
          },
          "pages": {
            "type": "number",
            "example": 100
          },
          "page": {
            "type": "number",
            "example": 4
          },
          "per_page": {
            "type": "number",
            "example": 2
          }
        }
      },
      "CustomFieldResponse403": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": false
          },
          "response": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string",
                "description": "Additional message if process succeed",
                "example": "Cant delete custom field - contact the support"
              }
            }
          }
        }
      },
      "CustomFieldResponse200": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string",
                "description": "Additional message if process succeed",
                "example": "Custom field removed"
              }
            }
          }
        }
      },
      "CustomFieldPostResponse200": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string",
                "description": "Additional message if process succeed",
                "example": "Custom field removed"
              },
              "custom_field_id": {
                "type": "integer",
                "description": "Return the id of the created custom field",
                "example": 23
              }
            }
          }
        }
      },
      "CustomFieldLocations": {
        "type": "object",
        "description": "Object that contains success status and response content",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Each element in this array is valid location for custom field",
                  "example": "address"
                }
              }
            }
          }
        }
      },
      "CustomFieldTypes": {
        "type": "object",
        "description": "Object that contains success status and response content",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "single_value": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Each element in this array represent valid custom field type (single value type)",
                      "example": "textarea"
                    }
                  },
                  "multi_value": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Each element in this array represent valid custom field type (multi value type)",
                      "example": "checkbox"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "CustomFieldSingle": {
        "type": "object",
        "description": "Object that contains success status and response content",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "custom_field_id": {
                    "type": "object",
                    "properties": {
                      "custom_field_id": {
                        "type": "integer",
                        "example": 232
                      },
                      "value": {
                        "type": "string",
                        "description": "The value of the custom field insreted automatically (If its signle value field)",
                        "example": "My value"
                      },
                      "validation": {
                        "type": "string",
                        "description": "valid pattern for reges (optional)"
                      },
                      "type": {
                        "type": "string",
                        "description": "The type of the custom field",
                        "example": "text"
                      },
                      "location": {
                        "type": "string",
                        "description": "The location of the field in the store pages",
                        "example": "address"
                      },
                      "slug": {
                        "type": "string",
                        "description": "Stable field identifier used by the API. Renaming the field does not change this value.",
                        "example": "street-number"
                      },
                      "status": {
                        "type": "integer",
                        "description": "status of custom field (if active its '1')",
                        "example": 1
                      },
                      "sort_order": {
                        "type": "integer",
                        "description": "The order of the custom field",
                        "example": 6
                      },
                      "custom_field_customer_group": {
                        "type": "object",
                        "description": "Object with objects of customer group info (for now there is only default customer group id for the store)",
                        "properties": {
                          "custom_field_id": {
                            "type": "integer",
                            "example": 232
                          },
                          "customer_group_id": {
                            "type": "integer",
                            "example": 55,
                            "description": "The default id of the customer group"
                          },
                          "required": {
                            "type": "integer",
                            "description": "Required field getting 1/0, if 1 it means the field is required",
                            "example": 1
                          }
                        }
                      },
                      "name": {
                        "type": "object",
                        "description": "Object of names reffered to language id",
                        "properties": {
                          "language_id": {
                            "description": "The index represent the language id of the name of the custom field",
                            "type": "string",
                            "example": "number of house"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "CustomerListRequest": {
        "type": "object",
        "description": "Object with filters for the customer list",
        "properties": {
          "limit": {
            "type": "number",
            "format": "int64",
            "description": "The limit of the results return - can be between 0 and 100",
            "default": 10,
            "example": 15
          },
          "page": {
            "type": "number",
            "format": "int64",
            "description": "The page/index of the results related to the result number",
            "default": 0,
            "example": 2
          },
          "search": {
            "type": "string",
            "description": "Search the customers by name or email - case sensitive",
            "example": "Jhon"
          },
          "direction": {
            "type": "string",
            "description": "The direction of return results by the customer creation date",
            "enum": [
              "desc",
              "asc"
            ]
          }
        }
      },
      "CustomerListResponse": {
        "type": "array",
        "description": "Array of objects containing each customer details",
        "items": {
          "type": "object",
          "properties": {
            "customer_id": {
              "type": "number",
              "format": "int64",
              "description": "Customer unique id - use to delete/get/edit customer",
              "example": 123
            },
            "customer_group_id": {
              "type": "number",
              "format": "int64",
              "description": "Customer group id",
              "example": 23
            },
            "name": {
              "type": "string",
              "description": "Full customer name",
              "example": "Jhon Doe"
            },
            "email": {
              "type": "string",
              "format": "email",
              "description": "Customers email",
              "example": "customer@example.com"
            },
            "telephone": {
              "type": "string",
              "description": "Customer`s phone",
              "example": "+12025550123"
            },
            "date_added": {
              "type": "string",
              "format": "date",
              "description": "Date customer added or registered"
            },
            "addresses": {
              "type": "array",
              "items": {
                "type": "object",
                "description": "Address object with address details",
                "properties": {
                  "address_id": {
                    "type": "number",
                    "description": "Unique address id - used for edit the customers address",
                    "example": 3221
                  },
                  "firstname": {
                    "type": "string",
                    "description": "Customer first name",
                    "example": "Jhon"
                  },
                  "lastname": {
                    "type": "string",
                    "description": "Customer last name",
                    "example": "Doe"
                  },
                  "address_1": {
                    "type": "string",
                    "description": "The address details exclude city",
                    "example": "Herzel street 25"
                  },
                  "city": {
                    "type": "string",
                    "description": "The city name",
                    "example": "Tel aviv"
                  },
                  "postcode": {
                    "type": "number",
                    "description": "The post code of the address",
                    "format": "int64",
                    "example": 43324
                  }
                }
              }
            }
          }
        }
      },
      "CustomerSingleResponse": {
        "type": "object",
        "description": "Object of customer`s details",
        "properties": {
          "customer_id": {
            "type": "number",
            "format": "int64",
            "description": "Customer unique id - use to delete/get/edit customer",
            "example": 123
          },
          "customer_group_id": {
            "type": "number",
            "format": "int64",
            "description": "Customer group id",
            "example": 23
          },
          "name": {
            "type": "string",
            "description": "Full customer name",
            "example": "Jhon Doe"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Customers email",
            "example": "customer@example.com"
          },
          "telephone": {
            "type": "string",
            "description": "Customer`s phone",
            "example": "+12025550123"
          },
          "date_added": {
            "type": "string",
            "format": "date",
            "description": "Date customer added or registered"
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Address object with address details",
              "properties": {
                "address_id": {
                  "type": "number",
                  "description": "Unique address id - used for edit the customers address",
                  "example": 3221
                },
                "firstname": {
                  "type": "string",
                  "description": "Customer first name",
                  "example": "Jhon"
                },
                "lastname": {
                  "type": "string",
                  "description": "Customer last name",
                  "example": "Doe"
                },
                "address_1": {
                  "type": "string",
                  "description": "The address details exclude city",
                  "example": "Herzel street 25"
                },
                "city": {
                  "type": "string",
                  "description": "The city name",
                  "example": "Tel aviv"
                },
                "postcode": {
                  "type": "number",
                  "description": "The post code of the address",
                  "format": "int64",
                  "example": 43324
                }
              }
            }
          }
        }
      },
      "CustomerCreate": {
        "type": "object",
        "properties": {
          "firstname": {
            "type": "string",
            "description": "Customer first name",
            "example": "Jhon"
          },
          "lastname": {
            "type": "string",
            "description": "Customer last name",
            "example": "Doe"
          },
          "email": {
            "type": "string",
            "description": "Customers email",
            "example": "customer@example.com"
          },
          "telephone": {
            "type": "string",
            "description": "Customers telephone",
            "example": "+12025550123"
          },
          "password": {
            "type": "string",
            "description": "Password that will be related to this customer to login to the store",
            "writeOnly": true
          },
          "confirm": {
            "type": "string",
            "description": "Password confirmation",
            "writeOnly": true
          },
          "responder_list": {
            "type": "number",
            "format": "int64",
            "description": "Responder list id for subscription to newsletter",
            "example": 3221
          },
          "address": {
            "type": "object",
            "description": "Object of the main address will be related to the new customer",
            "properties": {
              "1": {
                "type": "object",
                "description": "The id must be 1 for customer creation",
                "properties": {
                  "address_1": {
                    "type": "string",
                    "description": "The address details exclude city",
                    "example": "Herzel street 25"
                  },
                  "city": {
                    "type": "string",
                    "description": "The city name",
                    "example": "Tel aviv"
                  },
                  "postcode": {
                    "type": "number",
                    "description": "The post code of the address",
                    "format": "int64",
                    "example": 43324
                  }
                }
              }
            }
          },
          "newsletter": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "Subscribe to or unsubscribe from the newsletter"
          }
        }
      },
      "CustomerEdit": {
        "type": "object",
        "properties": {
          "firstname": {
            "type": "string",
            "description": "Customer first name",
            "example": "Jhon"
          },
          "lastname": {
            "type": "string",
            "description": "Customer last name",
            "example": "Doe"
          },
          "email": {
            "type": "string",
            "description": "Customers email",
            "example": "customer@example.com"
          },
          "telephone": {
            "type": "string",
            "description": "Customers telephone",
            "example": "+12025550123"
          },
          "password": {
            "type": "string",
            "description": "Password that will be related to this customer to login to the store (If you dont want to change password dont pass this and confirm field)",
            "writeOnly": true
          },
          "confirm": {
            "type": "string",
            "description": "Password confirmation",
            "writeOnly": true
          },
          "address": {
            "type": "object",
            "description": "Object of the main address will be related to the new customer",
            "properties": {
              "address_id": {
                "type": "object",
                "description": "replace the object key address_id with the actual address id, If incorrect id will create new address and relate it to customer",
                "properties": {
                  "address_1": {
                    "type": "string",
                    "description": "The address details exclude city",
                    "example": "Herzel street 25"
                  },
                  "city": {
                    "type": "string",
                    "description": "The city name",
                    "example": "Tel aviv"
                  },
                  "postcode": {
                    "type": "number",
                    "description": "The post code of the address",
                    "format": "int64",
                    "example": 43324
                  },
                  "address_id": {
                    "type": "number",
                    "description": "The address id we edit if incorrect will create new address and relate it to customer",
                    "format": "int64",
                    "example": 43324
                  }
                }
              }
            }
          },
          "newsletter": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "Subscribe to or unsubscribe from the newsletter"
          }
        }
      },
      "PaymentData": {
        "type": "object",
        "properties": {
          "unique_id": {
            "type": "string"
          },
          "lang": {
            "type": "string"
          },
          "auth_number": {
            "type": "integer",
            "description": "the auth number of the order"
          },
          "responce_mac": {
            "type": "string",
            "description": "responses code that get back from CG after transaction"
          },
          "terminal_num": {
            "type": "integer",
            "description": "the terminal num (updated once a day)"
          },
          "mutav_no": {
            "type": "integer",
            "description": "The dealer num"
          },
          "card_token": {
            "type": "integer",
            "description": "the card token can be use for delayed order transacrions"
          },
          "card_exp": {
            "type": "integer",
            "description": "First two numbers are month , 2nd two numbers are year"
          },
          "card_mask": {
            "type": "integer",
            "description": "The card number with mask at the middle (not full number)"
          },
          "tx_id": {
            "type": "string",
            "description": "successfully transactions give back special transaction id that can be used for refunding and more"
          },
          "number_of_payment": {
            "type": "integer"
          },
          "first_payment": {
            "type": "integer",
            "description": "Relevant only if there is payment_lastname"
          },
          "periodical_payment": {
            "type": "integer",
            "description": "Relevant only if there is payment_lastname"
          },
          "mpiValidation": {
            "type": "string",
            "description": "Describe the type of the transaction",
            "enum": [
              "AutoComm",
              "Verify"
            ]
          }
        }
      },
      "StockStatusList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "statuses": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "stock_status_id": {
                      "type": "integer",
                      "description": "Represents the stock status Id",
                      "example": 7
                    },
                    "language_id": {
                      "type": "integer",
                      "description": "Represents the default admin language id",
                      "example": 3
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the stock status",
                      "example": "in stock"
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "customFieldResponse": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "custom_field_id": {
              "type": "integer",
              "description": "Represents order custom field id"
            },
            "custom_field_value_id": {
              "type": "integer",
              "description": "Represents custom field value id"
            },
            "name": {
              "type": "string",
              "description": "The name of the custom field",
              "example": "Shoes size"
            },
            "value": {
              "type": "string",
              "description": "The value of the field",
              "example": "XL"
            },
            "type": {
              "type": "string",
              "description": "The type of the field entered",
              "example": "text"
            },
            "location": {
              "type": "string",
              "description": "The location of the field in the checkout page",
              "example": "address"
            },
            "slug": {
              "type": "string",
              "description": "Permament slug for api usage",
              "example": "house-number"
            }
          }
        }
      },
      "LanguageList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "languages": {
                "type": "array",
                "description": "Array of language objects",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "The numeric id of the language we are using later for all the language related operations",
                      "example": 1
                    },
                    "name": {
                      "type": "string",
                      "description": "The description of the language on its own language translation",
                      "example": "Eng"
                    },
                    "code": {
                      "type": "string",
                      "description": "The code of the current language you can use for other validations to detect the language without the id",
                      "example": "en-gb"
                    },
                    "image": {
                      "type": "string",
                      "description": "Url to image related to current language",
                      "example": "http://cdn.sellavi.com/image/upload/store_assets/en-gb.png"
                    },
                    "selected": {
                      "type": "integer",
                      "description": "1 - If language selected for current store | 0 - If not",
                      "enum": [
                        1,
                        0
                      ]
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "CurrencyList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "currencies": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "The numeric id of the currency we are using later for all the currency related operations",
                      "example": 5
                    },
                    "name": {
                      "type": "string",
                      "description": "The description of the currency",
                      "example": "Dollar"
                    },
                    "code": {
                      "type": "string",
                      "description": "The code of the current currency you can use for other validations to detect the currency without the id",
                      "example": "USD"
                    },
                    "symbol": {
                      "type": "string",
                      "description": "The symbol of the currency",
                      "example": "$"
                    },
                    "selected": {
                      "type": "integer",
                      "description": "1 - If currency selected for current store | 0 - If not",
                      "enum": [
                        1,
                        0
                      ]
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "DimensionList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "weights": {
                "type": "array",
                "description": "Array of valid weight classes inc their description",
                "items": {
                  "type": "object",
                  "properties": {
                    "weight_class_id": {
                      "type": "integer",
                      "format": "int32",
                      "description": "The id of the weight class, this id passed to the product crud object",
                      "example": 1
                    },
                    "language_id": {
                      "type": "integer",
                      "format": "int32",
                      "description": "The default system language id (the description translation related to the system language)",
                      "example": 2
                    },
                    "title": {
                      "type": "string",
                      "description": "The description full title of the current class",
                      "example": "Kilogram"
                    },
                    "unit": {
                      "type": "string",
                      "description": "The shortcut unit used for current class",
                      "example": "kg"
                    }
                  }
                }
              },
              "lengths": {
                "type": "array",
                "description": "Array of valid length dimension classes",
                "items": {
                  "type": "object",
                  "properties": {
                    "length_class_id": {
                      "type": "integer",
                      "format": "int32",
                      "description": "The id of the length class, this id passed to the product crud object",
                      "example": 1
                    },
                    "language_id": {
                      "type": "integer",
                      "format": "int32",
                      "description": "The default system language id (the description translation related to the system language)",
                      "example": 2
                    },
                    "title": {
                      "type": "string",
                      "description": "The description full title of the current class",
                      "example": "Mililtre"
                    },
                    "unit": {
                      "type": "string",
                      "description": "The shortcut unit used for current class",
                      "example": "ml"
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "CouponListRequest": {
        "description": "Additional params for the list filter, no one is required",
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9999,
            "description": "The start page for list pagination",
            "example": 1,
            "default": 1
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The results count limit between 1 - 100",
            "example": 50,
            "default": 50
          },
          "date_start": {
            "type": "string",
            "format": "date",
            "description": "Set the min date the coupon is valid from for usage",
            "example": "2021-04-03"
          },
          "date_end": {
            "type": "string",
            "format": "date",
            "description": "Set the max date the coupon is valid from for usage",
            "example": "2021-04-03"
          },
          "order_used_start": {
            "type": "string",
            "format": "date",
            "description": "The mininmum date for the order related to current coupon",
            "example": "2021-04-03"
          },
          "order_used_end": {
            "type": "string",
            "format": "date",
            "description": "The maximum date for the order related to current coupon",
            "example": "2021-04-03"
          },
          "date_added_start": {
            "type": "string",
            "format": "date",
            "description": "The mininmum date from the coupon added to system",
            "example": "2021-04-03"
          },
          "date_added_end": {
            "type": "string",
            "format": "date",
            "description": "The maximum date from the coupon added to system",
            "example": "2021-04-03"
          },
          "name": {
            "type": "string",
            "description": "The name of the coupon or part of it",
            "example": "summer sale"
          },
          "code": {
            "type": "string",
            "description": "The code of the coupon or part of it",
            "example": "SUMMER1012"
          },
          "type": {
            "type": "string",
            "description": "The type of the coupon for filter",
            "enum": [
              "percent",
              "P",
              "fixed",
              "F",
              "gift",
              "D"
            ]
          },
          "order_id": {
            "type": "integer",
            "format": "int32",
            "description": "The order id related to the coupon",
            "example": 54222
          }
        }
      },
      "CouponResponseStructureArray": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/CouponResponseStructureArray"
        }
      },
      "CouponResponseStructure": {
        "type": "object",
        "properties": {
          "coupon_id": {
            "type": "integer",
            "description": "The id represent the coupon for CRUD and etc",
            "example": 23
          },
          "name": {
            "type": "string",
            "description": "The coupon name",
            "example": "Gift for november"
          },
          "code": {
            "type": "string",
            "description": "The Coupon code",
            "example": "JHG34G"
          },
          "type": {
            "type": "string",
            "description": "The type of the coupon (The letters at the example are the same as the string before)",
            "enum": [
              "percent",
              "P",
              "fixed",
              "F",
              "gift",
              "D"
            ]
          },
          "discount": {
            "type": "number",
            "format": "int64",
            "description": "The discount value of the coupon (the behaviour depends on the coupon type)",
            "example": 44
          },
          "logged": {
            "type": "integer",
            "format": "int32",
            "description": "1 - The coupon only for logged customers | 2 - coupon available for everyone",
            "enum": [
              0,
              1
            ]
          },
          "shipping": {
            "type": "integer",
            "format": "int32",
            "description": "0 - Exclude shipping | 1 - Free shipping | 2 - Include the shipping at the math action for this coupon",
            "enum": [
              0,
              1,
              2
            ]
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "The minimum total sum the customer have to reach in his cart to apply the coupon",
            "example": 100
          },
          "date_start": {
            "type": "string",
            "format": "date",
            "description": "The date the coupon is available from",
            "example": "2021-04-03"
          },
          "date_end": {
            "type": "string",
            "format": "date",
            "description": "The maximum date the coupon is available",
            "example": "2021-04-03"
          },
          "date_added": {
            "type": "string",
            "format": "date",
            "description": "The date the coupon added",
            "example": "2021-04-03"
          },
          "uses_total": {
            "type": "string",
            "description": "The maximum total uses for this coupon",
            "example": "3"
          },
          "uses_customer": {
            "type": "string",
            "description": "The maximum uses available for each registered customer (if the coupon only for registered customers)",
            "example": "10"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "1 - The coupon is active | 0 - The coupon not active",
            "enum": [
              0,
              1
            ]
          },
          "multiple_deals": {
            "type": "integer",
            "format": "int32",
            "description": "1 - The coupon enables more discounts | 0 - If coupon active other discounts will not work",
            "example": 1
          },
          "total_used": {
            "type": "integer",
            "format": "int32",
            "description": "The total times the current coupon used at the system",
            "example": 45
          }
        }
      },
      "ShippingSingleResponse": {
        "type": "object",
        "description": "Object with all shipping settings and transaltes",
        "properties": {
          "display_name": {
            "type": "string",
            "description": "The display name of the shipping",
            "example": "My brand shipping"
          },
          "code": {
            "type": "string",
            "description": "Unique code for shipping for other systems usage",
            "example": "xyz_shipping"
          },
          "sort_order": {
            "type": "integer",
            "description": "The sort order of the shipping compared to other shipping methods",
            "example": 1
          },
          "from_sum": {
            "type": "number",
            "format": "int64",
            "description": "If there is from sum requirement for current shipping",
            "example": 450
          },
          "limit_sum": {
            "type": "number",
            "format": "int64",
            "description": "If there is limit sum requirement for current shipping",
            "example": 850
          },
          "status": {
            "type": "integer",
            "description": "The status of the shipping (1 - active and used, 0 - disabled)",
            "example": 1
          },
          "type": {
            "type": "integer",
            "description": "The shipping type (0 - regular cart shipping, 1 - product related shipping type)",
            "example": 1
          },
          "cost": {
            "type": "number",
            "format": "int64",
            "description": "The shipping cost in system's currency",
            "example": 265
          },
          "tax_class_id": {
            "type": "integer",
            "description": "The id of the tax class",
            "example": 0
          },
          "shipping_feed_status": {
            "type": "boolean",
            "format": "int32",
            "description": "0 - not showing in feeds, 1 - showing in feeds",
            "example": true
          },
          "settings": {
            "type": "object",
            "description": "object with different shipping extra settings"
          },
          "descriptions": {
            "type": "object",
            "description": "Object with current shipping descriptions",
            "properties": {
              "language_id": {
                "type": "string",
                "description": "The key replaced with the actual language id numeric and the value is the description itself"
              }
            },
            "example": {
              "1": "Shipping description language id 1",
              "3": "Shipping description language id 3"
            }
          },
          "titles": {
            "type": "object",
            "description": "Object with current shipping titles",
            "properties": {
              "language_id": {
                "type": "string",
                "description": "The key replaced with the actual language id numeric and the value is the title itself"
              }
            },
            "example": {
              "1": "Shipping title language id 1",
              "3": "Shipping title language id 3"
            }
          },
          "additional_notes": {
            "type": "object",
            "description": "Object with current shipping additional_notes",
            "properties": {
              "language_id": {
                "type": "string",
                "description": "The key replaced with the actual language id numeric and the value is the additional_note itself"
              }
            },
            "example": {
              "1": "Shipping title additional_note id 1",
              "3": "Shipping title additional_note id 3"
            }
          }
        }
      },
      "ShippingMethodListResponse": {
        "type": "array",
        "items": {
          "type": "object",
          "description": "Object of single shipping method",
          "properties": {
            "shipping_id": {
              "type": "integer",
              "description": "The shipping ID (used for /shipping/{shipping_id} request)",
              "example": 33
            },
            "display_name": {
              "type": "string",
              "description": "The display name of the shipping",
              "example": "My brand shipping"
            },
            "code": {
              "type": "string",
              "description": "Unique code for shipping for other systems usage",
              "example": "xyz_shipping"
            },
            "sort_order": {
              "type": "integer",
              "description": "The sort order of the shipping compared to other shipping methods",
              "example": 1
            },
            "from_sum": {
              "type": "number",
              "format": "int64",
              "description": "If there is from sum requirement for current shipping",
              "example": 450
            },
            "limit_sum": {
              "type": "number",
              "format": "int64",
              "description": "If there is limit sum requirement for current shipping",
              "example": 850
            },
            "status": {
              "type": "integer",
              "description": "The status of the shipping (1 - active and used, 0 - disabled)",
              "example": 1
            },
            "type": {
              "type": "integer",
              "description": "The shipping type (0 - regular cart shipping, 1 - product related shipping type)",
              "example": 1
            },
            "cost": {
              "type": "number",
              "format": "int64",
              "description": "The shipping cost in system's currency",
              "example": 265
            },
            "tax_class_id": {
              "type": "integer",
              "description": "The id of the tax class",
              "example": 0
            },
            "shipping_feed_status": {
              "type": "boolean",
              "format": "int32",
              "description": "0 - not showing in feeds, 1 - showing in feeds",
              "example": true
            },
            "settings": {
              "type": "object",
              "description": "object with different shipping extra settings"
            }
          }
        }
      },
      "CustomFieldCrudStructure": {
        "type": "object",
        "properties": {
          "name": {
            "type": "object",
            "description": "Object of names by lagnuage id",
            "example": {
              "3": "House num"
            },
            "properties": {
              "language_id": {
                "type": "string",
                "description": "Assosiate the the language id to the chosen language and fill the name of the custom field"
              }
            }
          },
          "type": {
            "type": "string",
            "description": "Fill the type of the custom field (there is api request for valid list of types)",
            "example": "radio"
          },
          "location": {
            "type": "string",
            "description": "The location of the custom field (now only 'address available')",
            "example": "address"
          },
          "validation": {
            "type": "string",
            "description": "A valid regex pattern for the custom field (leave empty to allow all chars)",
            "example": ""
          },
          "sort_order": {
            "type": "integer",
            "description": "The order of the custom field in the relation to another fields"
          },
          "slug": {
            "type": "string",
            "description": "Field identifier without spaces. Omit it to generate one automatically."
          },
          "status": {
            "type": "integer",
            "description": "The status of the custom field ('1' means its active)",
            "enum": [
              0,
              1
            ]
          },
          "required": {
            "type": "integer",
            "description": "If field is required pass '1'",
            "enum": [
              0,
              1
            ]
          },
          "custom_field_value": {
            "type": "array",
            "description": "Array of objects with data of the custom field values (only if its multi value field like radio or checkbox)",
            "items": {
              "type": "object",
              "description": "Object with custom field value data",
              "properties": {
                "custom_field_value_description": {
                  "type": "object",
                  "description": "Contains the names of the values assosiated to language id",
                  "example": {
                    "3": {
                      "name": "No street num"
                    }
                  },
                  "properties": {
                    "language_id": {
                      "type": "object",
                      "description": "Replace the 'language_id' with valid id (there is api request to get list of languages), and pass the name of the custom field value for each language you are using",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of current value",
                          "example": "no st num"
                        }
                      }
                    }
                  }
                },
                "sort_order": {
                  "type": "integer",
                  "description": "the order of the custom field value in relation to another values in same custom field"
                }
              }
            }
          }
        }
      },
      "webhookSingle": {
        "type": "object",
        "description": "Object with single webhook data",
        "properties": {
          "webhook_id": {
            "type": "integer",
            "description": "The ID of the webhook used for single webhook actions",
            "example": 4
          },
          "name": {
            "type": "string",
            "description": "Webhook name to recognize",
            "example": "Webhook name"
          },
          "description": {
            "type": "string",
            "description": "Webhook description",
            "example": "Webhook description"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "integer",
              "description": "Id of webhook event (see webhook events request)",
              "example": 1
            }
          },
          "action": {
            "type": "string",
            "description": "Request action (post/get/put/delete)",
            "example": "post"
          },
          "url": {
            "type": "string",
            "description": "Valid url for webhook",
            "example": "https://webhook.site/7b152643-b570-46dd-976c-bee83497af41"
          },
          "headers": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Object for each header",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "Key of header sent",
                  "example": "key1"
                },
                "value": {
                  "type": "string",
                  "description": "Value of the header sent",
                  "example": "value1"
                }
              }
            }
          },
          "content_type": {
            "type": "string",
            "description": "The body content type (system/custom)",
            "example": "system"
          }
        }
      },
      "webhookListRequest": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "description": "The offset of the results (start from offset and get the limit)",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "description": "The limit of results for pagination",
            "maximum": 50,
            "example": 20
          },
          "search": {
            "type": "string",
            "description": "Search webhooks by name or description",
            "example": "my webhook 2"
          }
        }
      },
      "webhookCrudResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string",
                "description": "Message that describes the success action",
                "example": "webhook updated/created/deleted successfullyy"
              },
              "webhook_id": {
                "type": "integer",
                "description": "The webhook id that proccessed",
                "example": 4
              }
            }
          }
        }
      },
      "webhookCreateUpdateRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the webhook",
            "example": "webhook1"
          },
          "description": {
            "type": "string",
            "description": "The description of the webhook",
            "example": "description1"
          },
          "events": {
            "type": "array",
            "description": "Array of evnt ids (check webhook event request)",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2
            ]
          },
          "action": {
            "type": "string",
            "description": "The action of the webhook request (post/put/delete/get)",
            "example": "post"
          },
          "url": {
            "type": "string",
            "description": "The url of the webhook request",
            "example": "https://webhook.site/7b152643-b570-46dd-976c-bee83497af41"
          },
          "headers": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Object for each header (key > value)",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "The key of the header"
                },
                "value": {
                  "type": "string",
                  "description": "The value of the header"
                }
              },
              "example": {
                "1": {
                  "key": "key1",
                  "value": "value1"
                },
                "2": {
                  "key": "key2",
                  "value": "value2"
                }
              }
            }
          },
          "content_type": {
            "type": "string",
            "description": "The body sent type can be \"json\" / \"system\"",
            "example": "system"
          }
        }
      },
      "webhookEventListResponse": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "integer",
            "description": "The event id used to create/update webhooks",
            "example": 1
          },
          "event_slug": {
            "type": "string",
            "description": "The event short description formated to slug",
            "example": "new_order"
          },
          "event_group": {
            "type": "string",
            "description": "The event group current slug related to (not used)",
            "example": "orders"
          }
        }
      },
      "ProductSingleResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "product": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "example": 123
                  },
                  "seo_h1": {
                    "type": "string",
                    "example": "Example SEO H1"
                  },
                  "brand": {
                    "type": "object",
                    "properties": {
                      "brand_id": {
                        "type": "integer",
                        "example": 56
                      },
                      "name": {
                        "type": "string",
                        "example": "Brand Name Example"
                      },
                      "image": {
                        "type": "string",
                        "format": "uri",
                        "example": "https://cdn.sellavi.com/image/upload/clients/example/brand_image.jpg"
                      },
                      "sort_order": {
                        "type": "integer",
                        "example": 5
                      }
                    }
                  },
                  "sku": {
                    "type": "string",
                    "example": "a1b2c3d4e5f6g7h8i9j0"
                  },
                  "model": {
                    "type": "string",
                    "example": "Example Model"
                  },
                  "image": {
                    "type": "string",
                    "format": "uri",
                    "example": "https://cdn.sellavi.com/image/upload/clients/example/product_image.jpg"
                  },
                  "images": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "product_image_id": {
                          "type": "integer",
                          "example": 321
                        },
                        "image": {
                          "type": "string",
                          "format": "uri",
                          "example": "https://cdn.sellavi.com/image/upload/clients/example/product_image_1.jpg"
                        },
                        "sort_order": {
                          "type": "integer",
                          "example": 1
                        }
                      }
                    }
                  },
                  "price": {
                    "type": "number",
                    "format": "float",
                    "example": 49.99
                  },
                  "product_pricing": {
                    "type": "object",
                    "properties": {
                      "original_price": {
                        "type": "number",
                        "format": "float",
                        "description": "The original price of product if exist in system for price management",
                        "example": 10
                      }
                    }
                  },
                  "tax_value": {
                    "type": "number",
                    "format": "float",
                    "example": 5
                  },
                  "price_formated": {
                    "type": "string",
                    "example": "$49.99"
                  },
                  "rating": {
                    "type": "number",
                    "format": "float",
                    "example": 4.5
                  },
                  "product_description": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "language_id": {
                          "type": "integer",
                          "example": 1
                        },
                        "name": {
                          "type": "string",
                          "example": "Example Product Name"
                        },
                        "description": {
                          "type": "string",
                          "example": "This is an example product description."
                        },
                        "instructions": {
                          "type": "string",
                          "example": "Example instructions."
                        },
                        "tag": {
                          "type": "string",
                          "example": "example,product"
                        },
                        "meta_title": {
                          "type": "string",
                          "example": "Example Meta Title"
                        },
                        "meta_description": {
                          "type": "string",
                          "example": "Example meta description."
                        },
                        "meta_keyword": {
                          "type": "string",
                          "example": "example, keyword"
                        }
                      }
                    }
                  },
                  "product_attributes": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "special": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "options": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Color"
                        },
                        "type": {
                          "type": "string",
                          "example": "select"
                        },
                        "option_id": {
                          "type": "integer",
                          "example": 10
                        },
                        "required": {
                          "type": "integer",
                          "example": 1
                        },
                        "product_option_id": {
                          "type": "integer",
                          "example": 20
                        },
                        "option_value": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "image": {
                                "type": "string",
                                "format": "uri",
                                "example": "https://cdn.sellavi.com/image/upload/clients/example/option_image.jpg"
                              },
                              "price": {
                                "type": "string",
                                "example": "5.0000"
                              },
                              "price_formated": {
                                "type": "string",
                                "example": "$5.00"
                              },
                              "price_prefix": {
                                "type": "string",
                                "example": "+"
                              },
                              "product_option_value_id": {
                                "type": "integer",
                                "example": 1234
                              },
                              "option_value_id": {
                                "type": "integer",
                                "example": 5678
                              },
                              "name": {
                                "type": "string",
                                "example": "Red"
                              },
                              "quantity": {
                                "type": "integer",
                                "example": 10
                              },
                              "subtract": {
                                "type": "integer",
                                "example": 1
                              },
                              "points": {
                                "type": "integer",
                                "example": 10
                              },
                              "points_prefix": {
                                "type": "string",
                                "example": "+"
                              },
                              "weight": {
                                "type": "string",
                                "example": "0.00000000"
                              },
                              "weight_prefix": {
                                "type": "string",
                                "example": "+"
                              },
                              "sku": {
                                "type": "string",
                                "example": ""
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "product_recurrings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "recurring_id": {
                          "type": "integer",
                          "example": 17
                        },
                        "language_id": {
                          "type": "integer",
                          "example": 3
                        },
                        "name": {
                          "type": "string",
                          "example": "Parking 2"
                        }
                      }
                    }
                  },
                  "minimum": {
                    "type": "integer",
                    "example": 1
                  },
                  "maximum": {
                    "type": "integer",
                    "example": 0
                  },
                  "upc": {
                    "type": "string",
                    "example": ""
                  },
                  "ean": {
                    "type": "string",
                    "example": ""
                  },
                  "jan": {
                    "type": "string",
                    "example": ""
                  },
                  "isbn": {
                    "type": "string",
                    "example": ""
                  },
                  "mpn": {
                    "type": "string",
                    "example": ""
                  },
                  "location": {
                    "type": "string",
                    "example": ""
                  },
                  "stock_status": {
                    "type": "integer",
                    "example": 7
                  },
                  "brand_id": {
                    "type": "integer",
                    "example": 84
                  },
                  "tax_class_id": {
                    "type": "integer",
                    "example": 0
                  },
                  "date_available": {
                    "type": "string",
                    "format": "date",
                    "example": "2023-02-15"
                  },
                  "weight": {
                    "type": "string",
                    "example": "0.0000"
                  },
                  "weight_class_id": {
                    "type": "integer",
                    "example": 1
                  },
                  "length": {
                    "type": "string",
                    "example": "0.0000"
                  },
                  "width": {
                    "type": "string",
                    "example": "0.0000"
                  },
                  "height": {
                    "type": "string",
                    "example": "0.0000"
                  },
                  "length_class_id": {
                    "type": "integer",
                    "example": 1
                  },
                  "subtract": {
                    "type": "integer",
                    "example": 0
                  },
                  "sort_order": {
                    "type": "integer",
                    "example": 10
                  },
                  "status": {
                    "type": "integer",
                    "example": 1
                  },
                  "date_added": {
                    "type": "string",
                    "format": "date-time",
                    "example": "2023-02-15 09:46:10"
                  },
                  "date_modified": {
                    "type": "string",
                    "format": "date-time",
                    "example": "2024-06-18 21:28:58"
                  },
                  "viewed": {
                    "type": "integer",
                    "example": 577
                  },
                  "weight_class": {
                    "type": "string",
                    "example": "kg"
                  },
                  "length_class": {
                    "type": "string",
                    "example": "m"
                  },
                  "reward": {
                    "type": "string",
                    "example": null
                  },
                  "points": {
                    "type": "integer",
                    "example": 0
                  },
                  "keyword": {
                    "type": "string",
                    "example": "example-keyword"
                  },
                  "shipping": {
                    "type": "integer",
                    "example": 1
                  },
                  "category": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "category_id": {
                            "type": "integer",
                            "example": 35
                          },
                          "name": {
                            "type": "string",
                            "example": "Example Category"
                          },
                          "description": {
                            "type": "string",
                            "example": ""
                          },
                          "sort_order": {
                            "type": "integer",
                            "example": 0
                          },
                          "meta_title": {
                            "type": "string",
                            "example": "Example Meta Title"
                          },
                          "meta_description": {
                            "type": "string",
                            "example": ""
                          },
                          "meta_keyword": {
                            "type": "string",
                            "example": ""
                          },
                          "language_id": {
                            "type": "string",
                            "example": "3"
                          }
                        }
                      }
                    }
                  },
                  "quantity": {
                    "type": "integer",
                    "example": 3
                  },
                  "reviews": {
                    "type": "object",
                    "properties": {
                      "review_total": {
                        "type": "integer",
                        "example": 0
                      }
                    }
                  },
                  "product_relateds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "product_id": {
                          "type": "integer",
                          "example": 134
                        },
                        "name": {
                          "type": "string",
                          "example": "Example Related Product"
                        }
                      }
                    }
                  },
                  "product_filters": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "filter_id": {
                          "type": "integer",
                          "example": 61
                        },
                        "filter_name": {
                          "type": "string",
                          "example": "Example Filter"
                        },
                        "filter_group_id": {
                          "type": "integer",
                          "example": 21
                        },
                        "filter_group_name": {
                          "type": "string",
                          "example": "Example Filter Group"
                        }
                      }
                    }
                  },
                  "product_upsale": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "product_id": {
                          "type": "integer",
                          "example": 200
                        },
                        "name": {
                          "type": "string",
                          "example": "Example Upsale Product"
                        }
                      }
                    }
                  },
                  "product_shipping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "shipping_id": {
                          "type": "integer",
                          "example": 965
                        },
                        "shipping_name": {
                          "type": "string",
                          "example": "Example Shipping"
                        }
                      }
                    }
                  },
                  "product_url": {
                    "type": "string",
                    "format": "uri",
                    "example": "https://shop.example.com/example-product"
                  },
                  "hidden": {
                    "type": "integer",
                    "example": 0
                  },
                  "zap": {
                    "type": "integer",
                    "example": 0
                  },
                  "feed_category": {
                    "type": "string",
                    "example": "2"
                  },
                  "fb_feed": {
                    "type": "integer",
                    "example": 1
                  },
                  "google_feed": {
                    "type": "integer",
                    "example": 1
                  },
                  "tiktok_feed": {
                    "type": "integer",
                    "example": 1
                  },
                  "product_downloads": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "download_id": {
                          "type": "integer",
                          "example": 11
                        },
                        "filename": {
                          "type": "string",
                          "example": "example_file.pdf"
                        },
                        "mask": {
                          "type": "string",
                          "example": "example_mask.pdf"
                        },
                        "store_id": {
                          "type": "integer",
                          "readOnly": true,
                          "description": "Store identifier returned with this record. Determined by authentication; not a request field."
                        },
                        "date_added": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2022-10-03 16:51:34"
                        },
                        "product_id": {
                          "type": "integer",
                          "example": 216
                        },
                        "language_id": {
                          "type": "integer",
                          "example": 3
                        },
                        "name": {
                          "type": "string",
                          "example": "Example Download"
                        }
                      }
                    }
                  },
                  "product_booking": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "example": "VUE"
                    }
                  },
                  "stickers": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/ProductStickerObject"
                    }
                  },
                  "currency_id": {
                    "type": "integer",
                    "example": 4
                  },
                  "currency_code": {
                    "type": "string",
                    "example": "ILS"
                  },
                  "currency_value": {
                    "type": "number",
                    "format": "float",
                    "example": 1
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "ProductBulkEditResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "string",
                "example": "Product bulk edit complete"
              },
              "updated_products": {
                "type": "array",
                "description": "List of items that updated",
                "items": {
                  "type": "integer"
                },
                "example": [
                  64222,
                  53331
                ]
              },
              "nothing_to_update_products": {
                "type": "array",
                "description": "List of items that were nothing to update",
                "items": {
                  "type": "integer"
                },
                "example": [
                  54222,
                  23331
                ]
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "ProductBulkEditRequest": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "product_id": {
              "type": "integer",
              "description": "Product ID that we update",
              "example": 23331
            },
            "quantity": {
              "type": "integer",
              "description": "Updated product's quantity",
              "example": 3
            },
            "price": {
              "type": "number",
              "description": "Product's price",
              "format": "float",
              "example": 56.76
            }
          }
        }
      },
      "ProductListResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "products": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 134
                    },
                    "product_id": {
                      "type": "integer",
                      "example": 134
                    },
                    "model": {
                      "type": "string",
                      "example": "Example Model"
                    },
                    "sku": {
                      "type": "string",
                      "example": "17"
                    },
                    "upc": {
                      "type": "string",
                      "example": ""
                    },
                    "ean": {
                      "type": "string",
                      "example": ""
                    },
                    "jan": {
                      "type": "string",
                      "example": ""
                    },
                    "isbn": {
                      "type": "string",
                      "example": ""
                    },
                    "mpn": {
                      "type": "string",
                      "example": ""
                    },
                    "location": {
                      "type": "string",
                      "example": ""
                    },
                    "quantity": {
                      "type": "integer",
                      "example": 3
                    },
                    "stock_status_id": {
                      "type": "integer",
                      "example": 7
                    },
                    "image": {
                      "type": "string",
                      "format": "uri",
                      "example": "https://cdn.sellavi.com/image/upload/clients/example/product_image.jpg"
                    },
                    "brand_id": {
                      "type": "integer",
                      "example": 0
                    },
                    "shipping": {
                      "type": "integer",
                      "example": 1
                    },
                    "points": {
                      "type": "integer",
                      "example": 0
                    },
                    "tax_class_id": {
                      "type": "integer",
                      "example": 0
                    },
                    "date_available": {
                      "type": "string",
                      "format": "date",
                      "example": "2023-02-15"
                    },
                    "weight": {
                      "type": "string",
                      "example": "0.0000"
                    },
                    "weight_class_id": {
                      "type": "integer",
                      "example": 1
                    },
                    "length": {
                      "type": "string",
                      "example": "0.0000"
                    },
                    "width": {
                      "type": "string",
                      "example": "0.0000"
                    },
                    "height": {
                      "type": "string",
                      "example": "0.0000"
                    },
                    "length_class_id": {
                      "type": "integer",
                      "example": 1
                    },
                    "subtract": {
                      "type": "integer",
                      "example": 0
                    },
                    "minimum": {
                      "type": "integer",
                      "example": 1
                    },
                    "maximum": {
                      "type": "integer",
                      "example": 0
                    },
                    "sort_order": {
                      "type": "integer",
                      "example": 1
                    },
                    "status": {
                      "type": "integer",
                      "example": 1
                    },
                    "price": {
                      "type": "string",
                      "example": "180.0000"
                    },
                    "viewed": {
                      "type": "integer",
                      "example": 340
                    },
                    "date_added": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2023-02-15 09:41:41"
                    },
                    "date_modified": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2024-06-13 15:56:02"
                    },
                    "hidden": {
                      "type": "integer",
                      "example": 0
                    },
                    "zap": {
                      "type": "integer",
                      "example": 0
                    },
                    "product_description": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Example Product Name"
                          },
                          "language_id": {
                            "type": "integer",
                            "example": 3
                          }
                        }
                      }
                    },
                    "options": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Color"
                          },
                          "type": {
                            "type": "string",
                            "example": "select"
                          },
                          "option_id": {
                            "type": "integer",
                            "example": 10
                          },
                          "required": {
                            "type": "integer",
                            "example": 1
                          },
                          "product_option_id": {
                            "type": "integer",
                            "example": 20
                          },
                          "option_value": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "image": {
                                  "type": "string",
                                  "format": "uri",
                                  "example": "https://cdn.sellavi.com/image/upload/clients/example/option_image.jpg"
                                },
                                "price": {
                                  "type": "string",
                                  "example": "5.0000"
                                },
                                "price_formated": {
                                  "type": "string",
                                  "example": "$5.00"
                                },
                                "price_prefix": {
                                  "type": "string",
                                  "example": "+"
                                },
                                "product_option_value_id": {
                                  "type": "integer",
                                  "example": 1234
                                },
                                "option_value_id": {
                                  "type": "integer",
                                  "example": 5678
                                },
                                "name": {
                                  "type": "string",
                                  "example": "Red"
                                },
                                "quantity": {
                                  "type": "integer",
                                  "example": 10
                                },
                                "subtract": {
                                  "type": "integer",
                                  "example": 1
                                },
                                "points": {
                                  "type": "integer",
                                  "example": 10
                                },
                                "points_prefix": {
                                  "type": "string",
                                  "example": "+"
                                },
                                "weight": {
                                  "type": "string",
                                  "example": "0.00000000"
                                },
                                "weight_prefix": {
                                  "type": "string",
                                  "example": "+"
                                },
                                "sku": {
                                  "type": "string",
                                  "example": ""
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponsePagination"
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "ProductAddRequest": {
        "type": "object",
        "properties": {
          "sku": {
            "type": "string",
            "example": "dkasj234",
            "description": "The SKU od the product"
          },
          "model": {
            "type": "string"
          },
          "minimum": {
            "type": "integer",
            "description": "minimum items to add to cart",
            "example": 10
          },
          "upc": {
            "type": "string",
            "description": "UPC code for current product"
          },
          "weight": {
            "type": "number",
            "format": "float",
            "description": "Numeric value of the weight of the product, if not passed it is zero",
            "example": 40
          },
          "weight_class_id": {
            "type": "integer",
            "format": "int32",
            "description": "The id of the weight class you are using for current product (There is separate API request that return all the weight classes, check \"misc/dimension_lst\")",
            "example": 3
          },
          "length": {
            "type": "number",
            "format": "float",
            "description": "Numeric value of the length of the product, if not passed it is zero",
            "example": 15
          },
          "width": {
            "type": "number",
            "format": "float",
            "description": "Numeric value of the width of the product, if not passed it is zero",
            "example": 15
          },
          "height": {
            "type": "number",
            "format": "float",
            "description": "Numeric value of the height of the product, if not passed it is zero",
            "example": 15
          },
          "length_class_id": {
            "type": "integer",
            "format": "int32",
            "description": "The id of the length class you are using for current product (There is separate API request that return all the weight classes, check \"misc/dimension_lst\")",
            "example": 3
          },
          "stock_status": {
            "type": "integer",
            "description": "Valid stock status id (you can find them in separate API call the returns stock status ids)",
            "example": 7
          },
          "subtract": {
            "type": "integer",
            "description": "Pass '1' if you want to activate subtruct feature, if not pass '0'",
            "enum": [
              0,
              1
            ]
          },
          "sort_order": {
            "type": "integer",
            "description": "The order of the product related to another products",
            "example": 9
          },
          "status": {
            "type": "integer",
            "description": "If you want disactivate the product pass '0' else pass '1'",
            "enum": [
              0,
              1
            ]
          },
          "keyword": {
            "type": "string",
            "description": "Keyword related to SEO",
            "example": "food"
          },
          "quantity": {
            "type": "integer",
            "description": "The quantity of your product",
            "example": 10
          },
          "hidden": {
            "type": "integer",
            "example": 0,
            "description": "Hide your product from the customers by passing '1' else pass '0'",
            "enum": [
              0,
              1
            ]
          },
          "image": {
            "type": "string",
            "description": "Valid URL for valid image format (jpg,jpeg,png)"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "image": {
                  "type": "string",
                  "description": "Valid image url with valid image types same as the main image"
                },
                "sort_order": {
                  "type": "integer",
                  "format": "int64",
                  "description": "The order of the curront image related to another images for this product"
                }
              }
            }
          },
          "price": {
            "type": "number",
            "format": "float",
            "example": 56.76
          },
          "product_pricing": {
            "type": "object",
            "properties": {
              "original_price": {
                "type": "number",
                "format": "float",
                "description": "The value of the original price of the product for pricing profit management",
                "example": 10
              }
            }
          },
          "product_related": {
            "type": "array",
            "items": {
              "type": "integer",
              "description": "Each element in this array is product id that will be related to current product"
            },
            "example": [
              12,
              15,
              33
            ]
          },
          "product_category": {
            "type": "array",
            "items": {
              "type": "integer",
              "description": "Each element in this array is category id that will be related to current product"
            },
            "example": [
              555,
              444,
              123
            ]
          },
          "product_description": {
            "$ref": "#/components/schemas/ProductLanguageObject"
          },
          "product_attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductAttributes"
            }
          },
          "product_special": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductSpecials"
            }
          },
          "product_option": {
            "type": "array",
            "description": "Array of options objects",
            "items": {
              "$ref": "#/components/schemas/ProductCrudOptionObject"
            }
          },
          "shipping_product": {
            "type": "array",
            "description": "Array of numeric shipping ids that valid for product (type 1 and above)",
            "items": {
              "type": "integer",
              "format": "int64",
              "description": "Id of shipping that valid for product (type 1 and above) can be found by using [get] shipping_methods request"
            },
            "example": [
              12,
              45,
              77
            ]
          },
          "stickers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductStickerObject"
            }
          },
          "points": {
            "type": "integer",
            "description": "Cost in Points. Can be left empty or 0 if this product is not sold for points or is automatically converted by the general points club settings."
          },
          "product_reward": {
            "type": "object",
            "description": "Points accumulation according to the points club",
            "properties": {
              "point_rank_id": {
                "type": "integer"
              },
              "points": {
                "type": "integer"
              }
            }
          }
        },
        "required": [
          "product_description"
        ]
      },
      "ProductEditRequest": {
        "type": "object",
        "properties": {
          "sku": {
            "type": "string",
            "example": "dkasj234",
            "description": "The SKU od the product"
          },
          "model": {
            "type": "string"
          },
          "minimum": {
            "type": "integer",
            "description": "minimum items to add to cart",
            "example": 10
          },
          "upc": {
            "type": "string",
            "description": "UPC code for current product"
          },
          "weight": {
            "type": "number",
            "format": "float",
            "description": "Numeric value of the weight of the product, if not passed it is zero",
            "example": 40
          },
          "weight_class_id": {
            "type": "integer",
            "format": "int32",
            "description": "The id of the weight class you are using for current product (There is separate API request that return all the weight classes, check \"misc/dimension_lst\")",
            "example": 3
          },
          "length": {
            "type": "number",
            "format": "float",
            "description": "Numeric value of the length of the product, if not passed it is zero",
            "example": 15
          },
          "width": {
            "type": "number",
            "format": "float",
            "description": "Numeric value of the width of the product, if not passed it is zero",
            "example": 15
          },
          "height": {
            "type": "number",
            "format": "float",
            "description": "Numeric value of the height of the product, if not passed it is zero",
            "example": 15
          },
          "length_class_id": {
            "type": "integer",
            "format": "int32",
            "description": "The id of the length class you are using for current product (There is separate API request that return all the weight classes, check \"misc/dimension_lst\")",
            "example": 3
          },
          "stock_status": {
            "type": "integer",
            "description": "Valid stock status id (you can find them in separate API call the returns stock status ids)",
            "example": 7
          },
          "subtract": {
            "type": "integer",
            "description": "Pass '1' if you want to activate subtruct feature, if not pass '0'",
            "enum": [
              0,
              1
            ]
          },
          "sort_order": {
            "type": "integer",
            "description": "The order of the product related to another products",
            "example": 9
          },
          "status": {
            "type": "integer",
            "description": "If you want disactivate the product pass '0' else pass '1'",
            "enum": [
              0,
              1
            ]
          },
          "keyword": {
            "type": "string",
            "description": "Keyword related to SEO",
            "example": "food"
          },
          "quantity": {
            "type": "integer",
            "description": "The quantity of your product",
            "example": 10
          },
          "hidden": {
            "type": "integer",
            "example": 0,
            "description": "Hide your product from the customers by passing '1' else pass '0'",
            "enum": [
              0,
              1
            ]
          },
          "image": {
            "type": "string",
            "description": "Valid URL for valid image format (jpg,jpeg,png)"
          },
          "images": {
            "type": "array",
            "description": "Array of additional images sent for each product (optional)",
            "items": {
              "type": "object",
              "properties": {
                "image": {
                  "type": "string",
                  "description": "Valid image url with valid image types same as the main image",
                  "example": "https://www.exampleserver.com/myimage.png"
                },
                "sort_order": {
                  "type": "integer",
                  "format": "int64",
                  "description": "The order of the curront image related to another images for this product",
                  "example": 1
                }
              }
            }
          },
          "price": {
            "type": "number",
            "format": "float",
            "example": 56.76
          },
          "product_pricing": {
            "type": "object",
            "properties": {
              "original_price": {
                "type": "number",
                "format": "float",
                "description": "The value of the original price of the product for pricing profit management",
                "example": 10
              }
            }
          },
          "product_related": {
            "type": "array",
            "items": {
              "type": "integer",
              "description": "Each element in this array is product id that will be related to current product"
            },
            "example": [
              12,
              15,
              33
            ]
          },
          "product_category": {
            "type": "array",
            "items": {
              "type": "integer",
              "description": "Each element in this array is category id that will be related to current product"
            },
            "example": [
              555,
              444,
              123
            ]
          },
          "product_description": {
            "$ref": "#/components/schemas/ProductLanguageObject"
          },
          "stickers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductStickerObject"
            }
          },
          "product_option": {
            "type": "array",
            "description": "Array of options objects (If you want to empty the option pass empty array !)",
            "items": {
              "$ref": "#/components/schemas/ProductCrudOptionObject"
            }
          },
          "shipping_product": {
            "type": "array",
            "description": "Array of numeric shipping ids that valid for product (type 1 and above)",
            "items": {
              "type": "integer",
              "format": "int64",
              "description": "Id of shipping that valid for product (type 1 and above) can be found by using [get] shipping_methods request"
            },
            "example": [
              12,
              45,
              77
            ]
          },
          "product_special": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductSpecials"
            }
          },
          "points": {
            "type": "integer",
            "description": "Cost in Points. Can be left empty or 0 if this product is not sold for points or is automatically converted by the general points club settings."
          },
          "product_reward": {
            "type": "object",
            "description": "Points accumulation according to the points club",
            "properties": {
              "point_rank_id": {
                "type": "integer"
              },
              "points": {
                "type": "integer"
              }
            }
          }
        }
      },
      "ProductStickerObject": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Existing product sticker id. If not passed, a new sticker will be created"
          },
          "sticker_status": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "sticker_type": {
            "type": "string",
            "description": "Defines the type of the sticker",
            "enum": [
              "empty",
              "percent",
              "sum",
              "custom"
            ]
          },
          "date_start": {
            "type": "string",
            "format": "date-time"
          },
          "date_end": {
            "type": "string",
            "format": "date-time"
          },
          "sticker_settings": {
            "type": "object",
            "description": "The sticker text styling",
            "properties": {
              "image_type": {
                "type": "string",
                "enum": [
                  "default",
                  "custom"
                ]
              },
              "color": {
                "type": "string",
                "description": "The color compared",
                "example": "#ff0000"
              },
              "family": {
                "type": "string",
                "description": "The font family (only google global && with capital letter)",
                "example": "Arial"
              },
              "size": {
                "type": "integer",
                "description": "Font size (px)",
                "minimum": 5,
                "maximum": 40,
                "example": 30
              },
              "bold": {
                "type": "integer",
                "description": "Defines if the font weight is bold",
                "enum": [
                  0,
                  1
                ]
              },
              "italic": {
                "type": "integer",
                "description": "Defines if the font style is italic",
                "enum": [
                  0,
                  1
                ]
              }
            }
          },
          "sticker_image": {
            "type": "string",
            "description": "Image URL for the sticker"
          },
          "sticker_text": {
            "type": "object",
            "description": "The text appears on sticker (referenced by language id) in case of custom text chosen",
            "properties": {
              "language_id": {
                "type": "string",
                "description": "The sticker text itself, replace this key with numeric language id",
                "example": "SALE!"
              }
            }
          }
        }
      },
      "ProductLanguageObject": {
        "type": "object",
        "properties": {
          "language_id": {
            "type": "object",
            "description": "Valid language id that activated in your system",
            "properties": {
              "name": {
                "type": "string",
                "description": "The name of the product related to the language id passed"
              },
              "description": {
                "type": "string",
                "description": "The description of the product related to the language id passed"
              },
              "meta_description": {
                "type": "string",
                "description": "The meta description of the product related to the language id passed"
              },
              "meta_title": {
                "type": "string",
                "description": "The meta title of the product related to the language id passed"
              },
              "tag": {
                "type": "string"
              }
            }
          }
        },
        "example": {
          "3": {
            "name": "Green socks",
            "description": "My brand socks"
          }
        },
        "required": [
          "language_id",
          "name",
          "description",
          "meta_description",
          "meta_title",
          "tag"
        ]
      },
      "ProductAttributes": {
        "type": "object",
        "properties": {
          "attribute_id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "language_number": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "language_id": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        }
      },
      "ProductSpecials": {
        "type": "object",
        "properties": {
          "price": {
            "type": "number",
            "description": "The price of the discount for current product must be float type more then zero",
            "format": "float",
            "example": 0
          },
          "date_start": {
            "type": "string",
            "description": "Start date for current discount is required, format {Y-m-d} see example below",
            "format": "date",
            "example": "2018-12-02"
          },
          "date_end": {
            "type": "string",
            "description": "End date for current discount is required, format {Y-m-d} see example below",
            "format": "date",
            "example": "2018-12-02"
          }
        }
      },
      "ProductOptionsValues": {
        "type": "object",
        "description": "Single object with details of the current option value",
        "properties": {
          "option_value_id": {
            "type": "integer",
            "description": "The id of the current option value related to the father option (shown from list)",
            "example": 44
          },
          "quantity": {
            "type": "integer",
            "description": "The quantity of the current value (not required)"
          },
          "subtract": {
            "type": "integer",
            "description": "Set '1' if this value is subtractable or '0' if not",
            "example": 1,
            "enum": [
              0,
              1
            ]
          },
          "price": {
            "type": "number",
            "format": "float",
            "description": "If there is additional price for current value or maybe discount add it here",
            "example": 12.99
          },
          "price_prefix": {
            "type": "string",
            "description": "Set \"+\" (plus) if the price is additional or \"-\" (minus) if the price will be less for current value",
            "enum": [
              "+",
              "-"
            ]
          },
          "image": {
            "type": "string",
            "description": "Valid url if an image will be related to current value (available only for \"select\" type of option for now)",
            "example": "https://www.exampleweb.com/example_img.jpg"
          },
          "groups": {
            "type": "array",
            "description": "Array of related options and option values to current value that will be subtracted together. Requires the \"Advanced Inventory Management\" app to be activated",
            "items": {
              "type": "object",
              "description": "Object with relation details",
              "properties": {
                "option_id": {
                  "description": "The related option id (The parent of the option value that comes after)",
                  "example": 3,
                  "type": "number",
                  "format": "int64"
                },
                "option_value_id": {
                  "description": "The related option value id",
                  "example": 4,
                  "type": "number",
                  "format": "int64"
                }
              }
            }
          }
        }
      },
      "ProductCrudOptionObject": {
        "type": "object",
        "description": "Object with data about each option",
        "properties": {
          "product_option_id": {
            "description": "Product option id (if exist)",
            "example": 23,
            "type": "number"
          },
          "name": {
            "description": "The name of the option (chosen from option list may include multiple languages)",
            "example": "size",
            "type": "string"
          },
          "option_id": {
            "description": "The option id (return from option list GET request) have to be numeric string",
            "type": "string",
            "example": "123"
          },
          "type": {
            "type": "string",
            "description": "The option type (Also return from option GET list each option has type)",
            "example": "checkbox"
          },
          "required": {
            "type": "integer",
            "description": "Set '1' if this option is required to proceed the product purchase",
            "enum": [
              0,
              1
            ]
          },
          "product_option_value": {
            "type": "array",
            "description": "Array of option values that will be shown related to product",
            "items": {
              "$ref": "#/components/schemas/ProductOptionsValues"
            }
          }
        }
      },
      "CategorySingleSingle": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "$ref": "#/components/schemas/CategoryMutualResponse"
          },
          {
            "type": "object",
            "properties": {
              "description": {
                "type": "object",
                "description": "The key of the object represent the language id",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "meta_title": {
                      "type": "string"
                    },
                    "meta_description": {
                      "type": "string"
                    },
                    "meta_keyword": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "3": {
                    "name": "Canned Goods",
                    "description": "Assorted canned goods.",
                    "meta_title": "Canned Goods",
                    "meta_description": "Variety of canned goods.",
                    "meta_keyword": "Canned,Goods,Food"
                  }
                }
              },
              "category_filters": {
                "type": "object",
                "additionalProperties": {
                  "description": "The key represent filter_group_id",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "filter_id": {
                        "type": "integer",
                        "example": 30
                      },
                      "filter_name": {
                        "type": "string",
                        "example": "Added Value"
                      },
                      "filter_group_id": {
                        "type": "integer",
                        "example": 16
                      },
                      "filter_group_name": {
                        "type": "string",
                        "example": "Value Group"
                      }
                    }
                  }
                },
                "example": {
                  "30": {
                    "filter_id": 30,
                    "filter_name": "Added Value",
                    "filter_group_id": 16,
                    "filter_group_name": "Value Group"
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "CategoryCreateEdit": {
        "type": "object",
        "properties": {
          "descriptions": {
            "type": "object",
            "description": "Object with language ids as index",
            "properties": {
              "lang_id": {
                "type": "object",
                "description": "Replace the 'lang_id' with the language id (must be numeric and valid from language id list)",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the category"
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the category"
                  },
                  "meta_title": {
                    "type": "string",
                    "description": "Meta title tag"
                  },
                  "meta_description": {
                    "type": "string",
                    "description": "Meta description tag"
                  },
                  "meta_keyword": {
                    "type": "string",
                    "description": "Meta keyword tag"
                  }
                },
                "required": [
                  "name"
                ]
              }
            },
            "example": {
              "3": {
                "name": "T-shirts",
                "description": "My T-shirts description",
                "meta_title": "T-shirts",
                "meta_description": "My T-shirts description",
                "meta_keyword": "My,T-shirts,clothes"
              }
            }
          },
          "parent_id": {
            "type": "string",
            "description": "Set parent category (from your own categories ids), set 0 to ignore this option",
            "example": "2",
            "default": 0
          },
          "keyword": {
            "type": "string",
            "description": "Set url keyword",
            "example": "my-category"
          },
          "image": {
            "type": "string",
            "description": "Inser valid image url (best to use cloudinary service to upload there first)"
          },
          "top": {
            "type": "integer",
            "description": "Show/Hide this category at the top bar (0/1)",
            "enum": [
              0,
              1
            ]
          },
          "sort_order": {
            "type": "integer",
            "description": "Set category order number (affect the visual part in the store)",
            "example": 12
          },
          "homefeatured": {
            "type": "integer",
            "description": "Show/Hide this category at the main page (1/0)",
            "enum": [
              0,
              1
            ]
          },
          "status": {
            "type": "integer",
            "description": "Enable/Disable this category (1/0)",
            "enum": [
              0,
              1
            ]
          },
          "hidden": {
            "type": "integer",
            "description": "Show/Hide the category from the store area (will be available by direct link to)",
            "enum": [
              0,
              1
            ]
          }
        }
      },
      "CategoryListResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "array",
                "items": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Full name of category",
                          "example": "Parent > child category"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/CategoryMutualResponse"
                    }
                  ]
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "CategoryMutualResponse": {
        "type": "object",
        "properties": {
          "category_id": {
            "type": "integer",
            "example": 45
          },
          "sort_order": {
            "type": "integer",
            "example": 10
          },
          "top": {
            "type": "integer",
            "example": 0
          },
          "parent_id": {
            "type": "integer",
            "example": 2
          },
          "status": {
            "type": "integer",
            "example": 1
          },
          "image": {
            "type": "string",
            "example": "https://example.com/images/sample-image.png"
          },
          "keyword": {
            "type": "string",
            "example": "new-keyword-123"
          },
          "homefeatured": {
            "type": "integer",
            "example": 1
          },
          "hidden": {
            "type": "integer",
            "example": 1
          },
          "url": {
            "type": "string",
            "example": "https://example.com/new-category-url"
          }
        }
      },
      "OrderListResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "array",
                "description": "array with all orders",
                "items": {
                  "type": "object",
                  "properties": {
                    "order_id": {
                      "type": "integer",
                      "description": "ID of each order"
                    },
                    "name": {
                      "type": "string",
                      "description": "full name of the customer"
                    },
                    "status": {
                      "type": "string",
                      "description": "the current order status",
                      "example": "If succesffuly paid"
                    },
                    "date_added": {
                      "type": "string",
                      "format": "date",
                      "description": "The date this order added"
                    },
                    "products": {
                      "type": "integer",
                      "description": "the amount of products purchased this  order"
                    },
                    "total": {
                      "type": "integer",
                      "description": "The total sum of current order",
                      "example": 123
                    },
                    "currency_Code": {
                      "type": "string",
                      "description": "The code of the current currency that used at this order",
                      "example": "ILS"
                    },
                    "order_status_id": {
                      "type": "integer",
                      "description": "Order current status (from order status list)",
                      "example": 5
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponsePagination"
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OrderSingleResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "order_id": {
                    "type": "integer",
                    "description": "The related order id",
                    "example": 233423
                  },
                  "firstname": {
                    "type": "string",
                    "description": "Customer first name",
                    "example": "Jhon"
                  },
                  "lastname": {
                    "type": "string",
                    "description": "Customer last name",
                    "example": "Doe"
                  },
                  "email": {
                    "type": "string",
                    "description": "Customers email",
                    "example": "customer@example.com"
                  },
                  "telephone": {
                    "type": "string",
                    "description": "Customers phone number",
                    "example": "+12025550123"
                  },
                  "payment_firstname": {
                    "type": "string",
                    "description": "Customer payment details related first name",
                    "example": "Jhon"
                  },
                  "payment_lastname": {
                    "type": "string",
                    "description": "Customer payment details related first name",
                    "example": "Doe"
                  },
                  "payment_company": {
                    "type": "string",
                    "description": "Customer company (if exist)",
                    "example": "Brandies"
                  },
                  "payment_address_1": {
                    "type": "string",
                    "description": "Customers address related to payment details",
                    "example": "Herzel st"
                  },
                  "payment_address_2": {
                    "type": "string",
                    "description": "Customers 2nd address (if exist), might include additional address details",
                    "example": "3rd floor, 12 appartment"
                  },
                  "payment_postcode": {
                    "type": "string",
                    "description": "Customer post code related to payment details",
                    "example": "34221"
                  },
                  "payment_city": {
                    "type": "string",
                    "description": "Customers city name related to payment details",
                    "example": "Tel aviv"
                  },
                  "payment_country_id": {
                    "type": "integer",
                    "description": "Billing country ID."
                  },
                  "payment_country": {
                    "type": "string",
                    "description": "Related to country id"
                  },
                  "payment_method": {
                    "type": "string",
                    "description": "The name of the payment method used",
                    "example": "credit card"
                  },
                  "payment_code": {
                    "type": "string",
                    "description": "The slug of the payment method for programatic purpose",
                    "example": "creditguard"
                  },
                  "shipping_firstname": {
                    "type": "string",
                    "description": "The first name of the package reciever (only if different from the payment name)",
                    "example": "Antony"
                  },
                  "shipping_lastname": {
                    "type": "string",
                    "description": "The last name of the package reciever (only if different from the payment name)",
                    "example": "Doe"
                  },
                  "shipping_address_1": {
                    "type": "string",
                    "description": "The address of the reciever (only if different from the payment address)",
                    "example": "Moshe bekker 32"
                  },
                  "shipping_address_2": {
                    "type": "string",
                    "description": "Additional address details of the reciever (only if different from the payment address)",
                    "example": "Entrance 2, floor 6"
                  },
                  "shipping_postcode": {
                    "type": "string",
                    "description": "Post code of the reciever if shipping details set",
                    "example": "42666"
                  },
                  "shipping_city": {
                    "type": "string",
                    "description": "The city of the reciever if different shipping details set"
                  },
                  "shipping_method": {
                    "type": "string",
                    "description": "The shipping method description in system's language",
                    "example": "Fast delivery 1-2 days"
                  },
                  "shipping_code": {
                    "type": "string",
                    "description": "The code slug of the shipping method used",
                    "example": "x_company_shipping23342"
                  },
                  "total": {
                    "type": "number",
                    "description": "The total sum Paid for current order",
                    "example": 234.23
                  },
                  "order_status_id": {
                    "type": "integer",
                    "description": "ID of order status (you can use order list request to get descriptions for each id)",
                    "example": 5
                  },
                  "order_status": {
                    "type": "string",
                    "description": "The string descrion of the order status",
                    "example": "Paid"
                  },
                  "language_id": {
                    "type": "integer",
                    "description": "Integer id related to the language used for current order",
                    "example": 3
                  },
                  "language_code": {
                    "type": "string",
                    "description": "The lagnuage code that used for current order",
                    "example": "he-il"
                  },
                  "currency_id": {
                    "type": "integer",
                    "description": "The id of the currency used at this order",
                    "example": 4
                  },
                  "currency_code": {
                    "type": "string",
                    "description": "The code of the currency used at this order",
                    "example": "ILS"
                  },
                  "date_added": {
                    "type": "string",
                    "format": "date",
                    "description": "The date this order added first time",
                    "example": "2020-12-24T10:36:46"
                  },
                  "date_modified": {
                    "type": "string",
                    "format": "date",
                    "description": "The date this order had last modifies and changes (like status update)",
                    "example": "2020-12-25T11:20:40"
                  },
                  "payment_Data": {
                    "$ref": "#/components/schemas/PaymentData"
                  },
                  "products": {
                    "$ref": "#/components/schemas/OrderProductsData"
                  },
                  "totals": {
                    "$ref": "#/components/schemas/OrderTotalsData"
                  },
                  "histories": {
                    "$ref": "#/components/schemas/OrderProductsHistories"
                  },
                  "custom_field": {
                    "$ref": "#/components/schemas/customFieldResponse"
                  },
                  "marketing_url_params": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "utm_source": {
                          "type": "string",
                          "example": "google"
                        },
                        "utm_medium": {
                          "type": "string",
                          "example": "cpc"
                        },
                        "utm_content": {
                          "type": "string",
                          "example": "g"
                        },
                        "gclid": {
                          "type": "string",
                          "example": "AIaIQobChMIzebi787z5gIVTdreCh2BJQiVEAAYAyAA"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OrderProductsHistories": {
        "type": "array",
        "description": "All the status changes with the messages and notes sent to clients",
        "items": {
          "type": "object",
          "properties": {
            "notify": {
              "type": "boolean",
              "description": "If notifed the customer about the status change it will be \"yes\" in local language",
              "example": true
            },
            "status": {
              "type": "string",
              "description": "The status that set in current change",
              "example": "paid"
            },
            "date_added": {
              "type": "string",
              "format": "date",
              "description": "The date when the status changed for current object",
              "example": "14/06/2020"
            }
          }
        }
      },
      "OrderTotalsData": {
        "type": "array",
        "items": {
          "type": "object",
          "description": "Array with all totals description and value",
          "properties": {
            "title": {
              "type": "string",
              "description": "Description of the total",
              "example": "Discount for coupon"
            },
            "value": {
              "type": "integer",
              "description": "The value is the sum that current total paid/discounted",
              "example": 245
            },
            "code": {
              "type": "string",
              "description": "The code of current total item",
              "example": "shipping"
            }
          }
        }
      },
      "OrderProductsData": {
        "type": "array",
        "description": "Array of all the products with their details, that purchased in current order requested",
        "items": {
          "type": "object",
          "properties": {
            "order_product_id": {
              "type": "integer"
            },
            "product_id": {
              "type": "integer",
              "description": "The product id"
            },
            "name": {
              "type": "string",
              "description": "The product name"
            },
            "model": {
              "type": "string"
            },
            "sku": {
              "type": "string"
            },
            "quantity": {
              "type": "integer",
              "description": "The quantity of this product at the current order"
            },
            "price": {
              "type": "integer",
              "description": "The price of this current product"
            },
            "special": {
              "type": "integer",
              "description": "Represents special price if was enabled"
            },
            "original_price": {
              "type": "integer",
              "description": "Assiciated with the special (show the original price)"
            },
            "weight": {
              "type": "number",
              "format": "float",
              "description": "Numeric value of the weight of the product, if not passed it is zero",
              "example": 40
            },
            "weight_class_id": {
              "type": "integer",
              "format": "int32",
              "description": "The id of the weight class you are using for current product (There is separate API request that return all the weight classes, check \"misc/dimension_lst\")",
              "example": 3
            },
            "length": {
              "type": "number",
              "format": "float",
              "description": "Numeric value of the length of the product, if not passed it is zero",
              "example": 15
            },
            "width": {
              "type": "number",
              "format": "float",
              "description": "Numeric value of the width of the product, if not passed it is zero",
              "example": 15
            },
            "height": {
              "type": "number",
              "format": "float",
              "description": "Numeric value of the height of the product, if not passed it is zero",
              "example": 15
            },
            "length_class_id": {
              "type": "integer",
              "format": "int32",
              "description": "The id of the length class you are using for current product (There is separate API request that return all the weight classes, check \"misc/dimension_lst\")",
              "example": 3
            },
            "option": {
              "type": "array",
              "items": {
                "type": "object",
                "description": "Object with option details",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the product option value",
                    "example": "sizes"
                  },
                  "value": {
                    "type": "string",
                    "description": "The value of current product option",
                    "example": "XL"
                  },
                  "type": {
                    "type": "string",
                    "description": "The type of the option",
                    "example": "select box"
                  },
                  "option_id": {
                    "type": "integer",
                    "description": "Product option ID.",
                    "example": 23
                  },
                  "sku": {
                    "type": "string",
                    "description": "The sku of the product option",
                    "example": "dds3234sd"
                  }
                }
              }
            }
          }
        }
      },
      "OrderCreateDocRequest": {
        "type": "object",
        "properties": {
          "doc_type": {
            "type": "string",
            "description": "The document type must be one of (invrec,invoice,receipt,refund)",
            "enum": [
              "invrec",
              "invoice",
              "receipt",
              "refund"
            ],
            "example": "invoice"
          },
          "company_personal_name": {
            "type": "string",
            "description": "Not required field that allows you to override the exist name with new personal/company name for invoice",
            "example": "My Company LTD"
          },
          "company_personal_id": {
            "type": "string",
            "description": "Not required field that allows you to override the esit persona; id with new personal/company Bn Number",
            "example": "23455234234"
          },
          "telephone": {
            "type": "string",
            "description": "Not required field that allows you to override order's phone for the document",
            "example": "+12025550123"
          },
          "email": {
            "type": "string",
            "description": "Not required field that allows you to override order's email for the document receiver",
            "example": "customer@example.com"
          },
          "refund_sum": {
            "oneOf": [
              {
                "type": "integer",
                "description": "This field is required in case you try to create refund doc, you can pass numeric value between 0 and maximum order's total OR the string \"full\" to make full refund doc",
                "example": 15
              },
              {
                "type": "string",
                "description": "This field is required in case you try to create refund doc, you can pass numeric value between 0 and maximum order's total OR the string \"full\" to make full refund doc",
                "example": "full"
              }
            ]
          }
        }
      },
      "OrderCreateShippingRequest": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "description": "Required field what shipping provider to create",
            "enum": [
              "chita"
            ],
            "example": "chita"
          },
          "packages_number": {
            "type": "integer",
            "description": "The package number you will send and will be charged for (and get sticker for each package)",
            "example": 3
          },
          "shipping_type": {
            "type": "string",
            "description": "The shipping type for current provider not required",
            "enum": [
              "door_to_door",
              "lockers"
            ],
            "example": "door_to_door"
          }
        }
      },
      "OrderProviderShippingRequest": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "description": "Required field what shipping provider to create",
            "enum": [
              "chita"
            ],
            "example": "chita"
          }
        }
      },
      "OrderCreateDocResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "Message with action proceed description",
                    "example": "Doc created successfullyy"
                  },
                  "doc_url": {
                    "type": "string",
                    "description": "Url of the original doc created",
                    "example": "https://example_docs.com/3M3dGcXVESUUr"
                  },
                  "doc_copy_url": {
                    "type": "string",
                    "description": "Url of the copy doc created",
                    "example": "https://example_docs.com/rVytzWitqbzNj"
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OrderCreateShippingResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "Message with action proceed description",
                    "example": "Chita shipping for order 15780 created"
                  },
                  "package_number": {
                    "type": "integer",
                    "description": "The tracking id of shipping provider",
                    "example": 68832798
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OrderStatusShippingResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "delivered": {
                    "type": "boolean",
                    "description": "true if delivered or false if not",
                    "example": true
                  },
                  "statuses": {
                    "type": "array",
                    "description": "Array of statuses",
                    "items": {
                      "type": "object",
                      "description": "Single object of each status",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "represent code from provider company",
                          "example": "244"
                        },
                        "datetime": {
                          "type": "string",
                          "description": "Represent the date that this statues chaged",
                          "example": "1505902122"
                        },
                        "desc": {
                          "type": "string",
                          "description": "Description on local language for current status",
                          "example": "Sent"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OrderStatusList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "language_id": {
                    "type": "array",
                    "description": "Array sorted by language id, contains the order statuses by language",
                    "items": {
                      "type": "object",
                      "properties": {
                        "order_status_id": {
                          "type": "integer",
                          "description": "The actual id of the order status",
                          "example": 5
                        },
                        "name": {
                          "type": "string",
                          "description": "The name of current order status",
                          "example": "Complete"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "1": [
                    {
                      "order_status_id": 2,
                      "name": "Processing"
                    },
                    {
                      "order_status_id": 3,
                      "name": "Shipped"
                    }
                  ]
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "CustomOrderCreateRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "John Doe"
          },
          "telephone": {
            "type": "string",
            "example": "+12025550123"
          },
          "email": {
            "type": "string",
            "format": "email",
            "example": "customer@example.com"
          },
          "address": {
            "type": "string",
            "example": "123 Main St, Sofia"
          },
          "additional_data": {
            "type": "object",
            "nullable": true,
            "properties": {
              "payment_sku": {
                "type": "string",
                "nullable": true,
                "maxLength": 12,
                "description": "Optional payment SKU",
                "example": "PAYMENT-1001"
              }
            }
          },
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "product_name": {
                  "type": "string",
                  "example": "Product A"
                },
                "price": {
                  "type": "number",
                  "example": 19.99
                },
                "quantity": {
                  "type": "integer",
                  "example": 2
                }
              },
              "required": [
                "product_name",
                "price",
                "quantity"
              ]
            }
          }
        }
      },
      "CustomOrderSingleResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "order_id": {
                "type": "integer",
                "example": 1
              },
              "url": {
                "type": "string",
                "format": "uri",
                "example": "https://mystore.sellavi.com/pay?token=Ae2iDA0jlzwQoaAl"
              },
              "url_expire": {
                "type": "string",
                "example": "2025-08-05 14:30:59"
              },
              "status": {
                "type": "string",
                "enum": [
                  "Pending",
                  "Expired",
                  "Paid",
                  "Reversed",
                  "Failed"
                ]
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OrderStatusUpdateRequest": {
        "type": "object",
        "properties": {
          "comment": {
            "type": "string",
            "description": "Comment that will appear in the order status history related to the status you update",
            "example": "Sent to customer X"
          },
          "order_status_id": {
            "type": "integer",
            "description": "Number that represent valid order status id (you can find API call for this statuses)",
            "example": 2
          },
          "notify": {
            "type": "integer",
            "description": "Pass 1 if you want to notifiy the customer abouth the status change",
            "enum": [
              0,
              1
            ],
            "default": 0
          },
          "sms_notify": {
            "type": "integer",
            "description": "Pass 1 if you want to notify client by sms",
            "enum": [
              0,
              1
            ],
            "default": 0
          },
          "sms_content": {
            "type": "string",
            "default": null,
            "description": "Message that will be sent to the customer associated with current order",
            "example": "Thank you, your order complete!",
            "maximum": 150
          }
        },
        "required": [
          "order_status_id"
        ]
      },
      "OptionListResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "option_id": {
                      "type": "integer"
                    },
                    "type": {
                      "type": "string"
                    },
                    "sort_order": {
                      "type": "integer"
                    },
                    "language_id": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "option_values": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OptionSingleResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "option_id": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "sort_order": {
                    "type": "integer"
                  },
                  "store_id": {
                    "type": "integer",
                    "readOnly": true,
                    "description": "Store identifier returned with this record. Determined by authentication; not a request field."
                  },
                  "option_description": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "language_id": {
                          "type": "integer"
                        }
                      }
                    }
                  },
                  "option_values": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "option_value_id": {
                          "type": "integer"
                        },
                        "option_value_descriptions": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "language_id": {
                                "type": "integer"
                              },
                              "image": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "option_value_used": {
                          "type": "array",
                          "items": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OptionCreateRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "select",
              "radio",
              "checkbox",
              "text",
              "file",
              "date",
              "time",
              "datetime"
            ]
          },
          "option_description": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "language_id": {
                  "type": "integer"
                }
              }
            }
          },
          "option_value": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "option_value_description": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "language_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "name",
                    "language_id"
                  ]
                },
                "sort_order": {
                  "type": "integer"
                },
                "sku": {
                  "type": "string"
                }
              },
              "required": [
                "option_value_description"
              ]
            }
          }
        },
        "required": [
          "type",
          "option_description"
        ]
      },
      "OptionCreateResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "integer",
                "description": "Created option id"
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OptionUpdateRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "select",
              "radio",
              "checkbox",
              "text",
              "file",
              "date",
              "time",
              "datetime"
            ]
          },
          "option_description": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "language_id": {
                  "type": "integer"
                }
              }
            }
          },
          "option_value": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "option_value_id": {
                  "type": "integer"
                },
                "option_value_description": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "language_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "name",
                    "language_id"
                  ]
                },
                "sort_order": {
                  "type": "integer"
                },
                "sku": {
                  "type": "string"
                }
              },
              "required": [
                "option_value_id",
                "option_value_description"
              ]
            }
          }
        },
        "required": [
          "type",
          "option_description"
        ]
      },
      "OptionUpdateResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "success": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "OptionDeleteResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "boolean"
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "PointRankListResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "array",
                "description": "Array with point ranks",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "points": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "PointRankSingleResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  },
                  "points": {
                    "type": "integer"
                  },
                  "settings": {
                    "type": "object"
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "DynamicFieldListResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "array",
                "description": "Array of dynamic fields",
                "items": {
                  "type": "object",
                  "properties": {
                    "dynamic_field_id": {
                      "type": "integer"
                    },
                    "type": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "relation_type": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "date_added": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "date_modified": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "DynamicFieldSingleResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "dynamic_field_id": {
                    "type": "integer"
                  },
                  "type": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "relation_type": {
                    "type": "integer"
                  },
                  "status": {
                    "type": "integer"
                  },
                  "date_added": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "date_modified": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "IdResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer"
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "MessageResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "StoreThemeCodeUpdateRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true,
            "description": "Custom CSS or JS code. Send null or an empty string to clear the current code."
          }
        }
      },
      "StoreThemeMediaUploadRequest": {
        "type": "object",
        "required": [
          "file"
        ],
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "Media file to upload. The multipart field name must be file. Supported image formats are jpg, jpeg, png, gif, and webp; mp4 may be accepted when video banners are enabled for the store."
          }
        }
      },
      "StoreThemeCodeResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "nullable": true,
                    "description": "The current custom code for the authenticated store.",
                    "example": ".product-title { color: #111111; }"
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "StoreThemeUpdateResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "Message that describes the success action.",
                    "example": "CSS code updated successfully."
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "StoreThemeMediaUploadResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "image": {
                "type": "string",
                "format": "uri",
                "description": "Uploaded media URL.",
                "example": "https://cdn.sellavi.com/image/upload/clients/12345/store-theme-media.webp"
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "ModuleWriteRequest": {
        "type": "object",
        "required": [
          "layout_id",
          "code",
          "component",
          "position",
          "sort_order",
          "settings"
        ],
        "description": "Create a module. Supply all required fields and module-specific settings. For partial updates, use ModuleUpdateRequest. See the Modules and banners guide.",
        "properties": {
          "layout_id": {
            "type": "integer",
            "minimum": 0,
            "description": "0 for header/footer; otherwise an existing layout ID belonging to this store."
          },
          "code": {
            "type": "string",
            "enum": [
              "homefeaturedcategory",
              "banners",
              "category_slide",
              "product_slide",
              "embed",
              "info_slider",
              "brands",
              "faq",
              "custom_code",
              "short_content",
              "product_list",
              "footer_widget",
              "custom_content",
              "announce"
            ],
            "description": "Must be allowed for the selected layout or global position."
          },
          "component": {
            "type": "string",
            "enum": [
              "layout",
              "header",
              "footer"
            ],
            "description": "layout for a positive layout_id; otherwise must equal position."
          },
          "position": {
            "type": "string",
            "enum": [
              "content_top",
              "content_bottom",
              "header",
              "footer"
            ],
            "description": "content_top/content_bottom for a layout; header/footer for layout_id 0."
          },
          "sort_order": {
            "type": "integer",
            "minimum": 0
          },
          "settings": {
            "$ref": "#/components/schemas/ModuleSettings"
          },
          "banners": {
            "type": "array",
            "description": "For code=banners. New images use banner_image_id=0 and require desktop and mobile CDN URLs. Existing banner omission during an update does not delete it; use the explicit gateway banner delete endpoint.",
            "items": {
              "$ref": "#/components/schemas/ModuleBannerWrite"
            }
          }
        },
        "example": {
          "layout_id": 0,
          "code": "custom_content",
          "component": "header",
          "position": "header",
          "sort_order": 1,
          "settings": {
            "status": 1,
            "text": {
              "1": "Welcome to our store"
            }
          }
        }
      },
      "ModuleSettings": {
        "type": "object",
        "required": [
          "status"
        ],
        "additionalProperties": true,
        "description": "Settings for a new module. Requirements depend on code; see the Modules and banners guide. Updates preserve omitted keys and translations; supplied nested lists replace the saved list.",
        "properties": {
          "status": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "Text keyed by numeric language ID. Use IDs accepted by this store; example ID 1 is illustrative."
          },
          "text": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "Text keyed by numeric language ID. Use IDs accepted by this store; example ID 1 is illustrative."
          },
          "related_ids": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "number"
            },
            "description": "Optional related page IDs for layout modules."
          },
          "limit": {
            "type": "number"
          },
          "source": {
            "type": "string"
          },
          "sort": {
            "type": "string"
          },
          "direction": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          },
          "html": {
            "type": "string",
            "nullable": true,
            "description": "For custom_code; must pass server Twig validation."
          }
        }
      },
      "ModuleBannerWrite": {
        "type": "object",
        "required": [
          "banner_image_id",
          "image",
          "image_mob"
        ],
        "properties": {
          "banner_image_id": {
            "type": "integer",
            "minimum": 0,
            "description": "0 for a new image; positive IDs must belong to this store and this module. Use 0 when creating a module."
          },
          "image": {
            "type": "string",
            "format": "uri",
            "description": "Desktop image URL matching the configured CDN."
          },
          "image_mob": {
            "type": "string",
            "format": "uri",
            "description": "Mobile image URL matching the configured CDN."
          },
          "link": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "Text keyed by numeric language ID. Use IDs accepted by this store; example ID 1 is illustrative."
          }
        }
      },
      "ModuleRecord": {
        "type": "object",
        "properties": {
          "layout_module_id": {
            "type": "integer"
          },
          "store_id": {
            "type": "integer",
            "readOnly": true,
            "description": "Store identifier returned with this record. Determined by authentication; not a request field."
          },
          "layout_id": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "position": {
            "type": "string"
          },
          "sort_order": {
            "type": "integer"
          },
          "settings": {
            "type": "object",
            "additionalProperties": true
          },
          "banners": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "banner_image_id": {
                  "type": "integer"
                },
                "layout_module_id": {
                  "type": "integer"
                },
                "store_id": {
                  "type": "integer",
                  "readOnly": true,
                  "description": "Store identifier returned with this record. Determined by authentication; not a request field."
                },
                "link": {
                  "type": "string",
                  "nullable": true
                },
                "image": {
                  "type": "string"
                },
                "image_mob": {
                  "type": "string"
                },
                "sort_order": {
                  "type": "integer"
                },
                "description": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "banner_image_id": {
                        "type": "integer"
                      },
                      "language_id": {
                        "type": "integer"
                      },
                      "title": {
                        "type": "string",
                        "nullable": true
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "ModuleListResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModuleRecord"
            }
          },
          "results": {
            "type": "integer"
          },
          "pages": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          },
          "per_page": {
            "type": "integer"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "ModuleSingleResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "$ref": "#/components/schemas/ModuleRecord"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "ModuleCreateResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "example": 123
              }
            }
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "ModuleMessageResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string",
                "example": "Module 123 updated successfully."
              }
            }
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "ModuleSettingsUpdate": {
        "type": "object",
        "additionalProperties": true,
        "description": "Only settings to change. Omitted map keys and translations keep saved values. A supplied nested list replaces that whole list. Changing code or moving a module can require additional settings valid for the destination.",
        "properties": {
          "status": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "Text keyed by numeric language ID. Use IDs accepted by this store; example ID 1 is illustrative."
          },
          "text": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "Text keyed by numeric language ID. Use IDs accepted by this store; example ID 1 is illustrative."
          },
          "related_ids": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "number"
            },
            "description": "Optional related page IDs for layout modules."
          },
          "limit": {
            "type": "number"
          },
          "source": {
            "type": "string"
          },
          "sort": {
            "type": "string"
          },
          "direction": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          },
          "html": {
            "type": "string",
            "nullable": true,
            "description": "For custom_code; must pass server Twig validation."
          }
        }
      },
      "ModuleBannerUpdate": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "banner_image_id"
            ],
            "properties": {
              "banner_image_id": {
                "type": "integer",
                "minimum": 1,
                "description": "Existing banner ID in this module."
              },
              "image": {
                "type": "string",
                "format": "uri",
                "description": "Desktop image URL matching the configured CDN."
              },
              "image_mob": {
                "type": "string",
                "format": "uri",
                "description": "Mobile image URL matching the configured CDN."
              },
              "link": {
                "type": "string",
                "nullable": true
              },
              "title": {
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "nullable": true
                },
                "description": "Text keyed by numeric language ID. Use IDs accepted by this store; example ID 1 is illustrative."
              }
            },
            "description": "Edit only supplied fields of an existing banner. Omitted desktop/mobile images, links and translations remain saved."
          },
          {
            "type": "object",
            "required": [
              "banner_image_id",
              "image",
              "image_mob"
            ],
            "properties": {
              "banner_image_id": {
                "type": "integer",
                "enum": [
                  0
                ]
              },
              "image": {
                "type": "string",
                "format": "uri",
                "description": "Desktop image URL matching the configured CDN."
              },
              "image_mob": {
                "type": "string",
                "format": "uri",
                "description": "Mobile image URL matching the configured CDN."
              },
              "link": {
                "type": "string",
                "nullable": true
              },
              "title": {
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "nullable": true
                },
                "description": "Text keyed by numeric language ID. Use IDs accepted by this store; example ID 1 is illustrative."
              }
            },
            "description": "Add a new banner. Both image URLs must match the configured CDN."
          }
        ]
      },
      "ModuleUpdateRequest": {
        "type": "object",
        "description": "Partial update to an existing module. Read first and send only changed fields. Omitted module fields, nested settings and translations are retained. Supplied nested settings lists replace that list. Banners omitted from the update are retained; banners:[] does not delete images. A partial banner list retains existing order and appends new images; include all existing IDs to reorder every image. Changes affect the live store immediately; there is no version check.",
        "properties": {
          "layout_id": {
            "type": "integer",
            "minimum": 0,
            "description": "0 for header/footer; otherwise an existing layout ID belonging to this store."
          },
          "code": {
            "type": "string",
            "enum": [
              "homefeaturedcategory",
              "banners",
              "category_slide",
              "product_slide",
              "embed",
              "info_slider",
              "brands",
              "faq",
              "custom_code",
              "short_content",
              "product_list",
              "footer_widget",
              "custom_content",
              "announce"
            ],
            "description": "Must be allowed for the selected layout or global position."
          },
          "component": {
            "type": "string",
            "enum": [
              "layout",
              "header",
              "footer"
            ],
            "description": "layout for a positive layout_id; otherwise must equal position."
          },
          "position": {
            "type": "string",
            "enum": [
              "content_top",
              "content_bottom",
              "header",
              "footer"
            ],
            "description": "content_top/content_bottom for a layout; header/footer for layout_id 0."
          },
          "sort_order": {
            "type": "integer",
            "minimum": 0
          },
          "settings": {
            "$ref": "#/components/schemas/ModuleSettingsUpdate"
          },
          "banners": {
            "type": "array",
            "description": "Existing IDs merge changed fields; new banners use ID 0. IDs must belong to this module and cannot repeat. Omitted banners are retained. Use the explicit gateway DELETE endpoint for removal.",
            "items": {
              "$ref": "#/components/schemas/ModuleBannerUpdate"
            }
          }
        },
        "example": {
          "settings": {
            "status": 0
          }
        }
      },
      "DesignThemeOptions": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "search": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "sticky": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "top_bar": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "categories_bar": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "type_contact": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          },
          "flex_menu_display": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "overflow_menu": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "mobile_grid": {
            "type": "integer",
            "enum": [
              1,
              2
            ]
          },
          "show_breadcrumbs": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "show_blurred_images": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "show_hide_add_cart_button": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "show_hide_lazy_images": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "show_whatsapp_button": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "show_homepage_button": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "ai_header_layout": {
            "type": "string",
            "enum": [
              "centered",
              "left",
              "inline",
              "split",
              "editorial"
            ]
          },
          "mobile_nav_style": {
            "type": "string",
            "enum": [
              "side",
              "bottom"
            ]
          },
          "theme_font_custom": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "theme_font": {
            "type": "string",
            "maxLength": 64,
            "enum": [
              "opensans",
              "cairo",
              "hauss",
              "gorizont"
            ]
          },
          "theme_mail": {
            "type": "string",
            "enum": [
              "classic",
              "dynamic"
            ]
          },
          "cart_float_effect": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "load_products_types": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "mobile_coupon_display": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "mobile_mobile_sub_categories": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "quick_view": {
            "type": "boolean",
            "description": "Store-wide theme option. Appearance depends on the active theme."
          },
          "show_price_range": {
            "type": "integer",
            "enum": [
              0,
              1,
              2
            ]
          },
          "product_images_hover": {
            "type": "integer",
            "enum": [
              1,
              2,
              3,
              4
            ]
          }
        },
        "description": "Supported store-wide options. Send only changed keys. Omitted values remain saved. Rendering depends on the active theme."
      },
      "DesignSettingsRequest": {
        "type": "object",
        "properties": {
          "theme_id": {
            "type": "integer",
            "description": "Existing theme ID returned by GET /store_themes/settings."
          },
          "color": {
            "type": "string",
            "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
            "example": "#336699"
          },
          "theme_options": {
            "$ref": "#/components/schemas/DesignThemeOptions"
          }
        },
        "description": "Partial design update. No field is required. Omitted fields and theme_options keys retain saved values. Applies immediately to the live store; no draft, publish step or version check.",
        "example": {
          "theme_options": {
            "mobile_grid": 2
          }
        }
      },
      "DesignSettings": {
        "type": "object",
        "properties": {
          "theme_id": {
            "type": "integer"
          },
          "color": {
            "type": "string"
          },
          "theme_options": {
            "type": "object",
            "additionalProperties": true,
            "description": "Saved theme options combined with existing theme defaults where available."
          }
        }
      },
      "DesignSettingsRead": {
        "type": "object",
        "properties": {
          "theme_id": {
            "type": "integer"
          },
          "color": {
            "type": "string"
          },
          "theme_options": {
            "type": "object",
            "additionalProperties": true,
            "description": "Saved theme options combined with existing theme defaults where available."
          },
          "themes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            },
            "description": "Available themes; use the returned id when selecting a theme."
          },
          "colors": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            },
            "description": "Available color choices."
          },
          "fonts": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Supported font keys and display names."
          }
        }
      },
      "HeaderSettingsUpdate": {
        "type": "object",
        "properties": {
          "top_bar": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "sticky": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "search": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "categories_bar": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "flex_menu_display": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "overflow_menu": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "type_contact": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          }
        },
        "description": "Header settings directly, without a settings wrapper. Only supplied supported fields change."
      },
      "FooterSettingsUpdate": {
        "type": "object",
        "properties": {
          "bottom_bar": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "about_us",
                "account",
                "newsletter",
                "customer_service"
              ]
            },
            "description": "Replaces the saved list when supplied. [] clears it; omission preserves it."
          }
        },
        "description": "Footer settings directly, without a settings wrapper. Omitted fields remain saved."
      },
      "GlobalSettingsUpdate": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/HeaderSettingsUpdate"
          },
          {
            "$ref": "#/components/schemas/FooterSettingsUpdate"
          }
        ],
        "description": "Use header fields for position=header and footer fields for position=footer. Send fields directly without a settings wrapper. Only supplied fields change."
      },
      "LayoutSettingsUpdate": {
        "type": "object",
        "properties": {
          "subcategory_type": {
            "type": "string",
            "enum": [
              "side",
              "top",
              "none"
            ],
            "description": "Category layout only."
          },
          "show_thumb": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "categories_mode": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "price_filter_status": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "brands_filter_status": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "filter_status": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "options_filter_status": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "bogo_filter_status": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "show_purchase_now_button": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "image_slider_infinite_loop": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "show_bogo_products": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "product_limit": {
            "type": "integer",
            "minimum": 3,
            "maximum": 300
          },
          "sort": {
            "type": "string",
            "nullable": true,
            "enum": [
              "sales",
              "p.viewed",
              null
            ],
            "description": "Category layout only."
          },
          "selected_bogo": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "integer"
            },
            "description": "Special layout only. IDs must belong to the store. A supplied list replaces the saved list."
          }
        },
        "description": "Send fields directly, without a settings wrapper. Supported keys depend on the layout route; see /design#page-layouts. Only keys validated for that page type are saved. Omitted fields remain saved; supplied lists replace the saved list.",
        "example": {
          "product_limit": 24
        }
      },
      "LayoutRecord": {
        "type": "object",
        "properties": {
          "layout_id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "nullable": true,
            "description": "Direct storefront URL where available. Null for entity-specific or wildcard routes."
          },
          "url_template": {
            "type": "string",
            "nullable": true,
            "description": "Replace the entity placeholder with a real page ID."
          },
          "entity_parameter": {
            "type": "string",
            "nullable": true
          },
          "settings": {
            "type": "object",
            "additionalProperties": true
          },
          "allowed_modules": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "positions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "content_top",
                "content_bottom"
              ]
            }
          }
        }
      },
      "LayoutDetail": {
        "type": "object",
        "properties": {
          "layout_id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "nullable": true,
            "description": "Direct storefront URL where available. Null for entity-specific or wildcard routes."
          },
          "url_template": {
            "type": "string",
            "nullable": true,
            "description": "Replace the entity placeholder with a real page ID."
          },
          "entity_parameter": {
            "type": "string",
            "nullable": true
          },
          "settings": {
            "type": "object",
            "additionalProperties": true
          },
          "allowed_modules": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "positions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "content_top",
                "content_bottom"
              ]
            }
          },
          "modules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModuleRecord"
            }
          }
        }
      },
      "GlobalSettings": {
        "type": "object",
        "properties": {
          "position": {
            "type": "string",
            "enum": [
              "header",
              "footer"
            ]
          },
          "settings": {
            "type": "object",
            "additionalProperties": true
          },
          "allowed_modules": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SavedSettingsResult": {
        "type": "object",
        "properties": {
          "settings": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "description": "Resulting saved settings after merging the supplied fields."
      },
      "LayoutSettingsResult": {
        "type": "object",
        "properties": {
          "layout_id": {
            "type": "integer"
          },
          "settings": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "ModuleOrderRequest": {
        "type": "object",
        "required": [
          "layout_id",
          "sorted_modules"
        ],
        "properties": {
          "layout_id": {
            "type": "integer",
            "minimum": 0,
            "description": "Destination layout ID; 0 for global header/footer modules."
          },
          "layout_module_id": {
            "type": "integer",
            "minimum": 1,
            "description": "For a move from another layout. Also include this ID in sorted_modules. Changing layouts clears the old settings.related_ids."
          },
          "sorted_modules": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "content_top": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "content_bottom": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "header": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "footer": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "description": "Use content_top/content_bottom for layouts or header/footer for global modules. No ID may repeat. Listed modules come first; unlisted modules in each supplied position retain their relative order afterwards. Omitted positions are unchanged."
          }
        },
        "example": {
          "layout_id": 12,
          "sorted_modules": {
            "content_top": [
              105,
              103
            ]
          }
        }
      },
      "DesignSettingsResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "$ref": "#/components/schemas/DesignSettingsRead"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "DesignSettingsUpdateResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "$ref": "#/components/schemas/DesignSettings"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "LayoutListResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LayoutRecord"
            }
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "LayoutSingleResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "$ref": "#/components/schemas/LayoutDetail"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "GlobalSettingsResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "$ref": "#/components/schemas/GlobalSettings"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "SavedSettingsResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "$ref": "#/components/schemas/SavedSettingsResult"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "LayoutSettingsResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "$ref": "#/components/schemas/LayoutSettingsResult"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "StoreThemeCodeVersion": {
        "type": "object",
        "required": [
          "date",
          "version",
          "version_id"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time",
            "description": "Saved version creation date.",
            "example": "2026-10-31T12:00:00.000000Z"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Saved version number shown in the editor; equals the saved row ID, not a sequential list position.",
            "example": 123
          },
          "version_id": {
            "type": "integer",
            "minimum": 1,
            "description": "ID to pass to the matching CSS/JS read endpoint. Scoped to this store and code type.",
            "example": 123
          }
        }
      },
      "StoreThemeVersionsResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "response": {
            "type": "array",
            "maxItems": 30,
            "items": {
              "$ref": "#/components/schemas/StoreThemeCodeVersion"
            },
            "description": "Available saved versions, newest creation date first, then highest ID. Empty array when none exist; no code content and no pagination."
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "CustomerPointRankUpdateRequest": {
        "type": "object",
        "required": [
          "point_rank_id"
        ],
        "properties": {
          "point_rank_id": {
            "type": "integer",
            "minimum": 1,
            "example": 123,
            "description": "An enabled rank belonging to the authenticated store."
          }
        }
      },
      "DynamicFieldCreateRequest": {
        "type": "object",
        "required": [
          "name",
          "type",
          "code",
          "relation_type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Display name.",
            "example": "Care instructions"
          },
          "type": {
            "type": "string",
            "enum": [
              "input",
              "text",
              "code",
              "image"
            ],
            "description": "Content editor type.",
            "example": "text"
          },
          "code": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9\\-]+$",
            "description": "Field code containing letters, numbers and hyphens.",
            "example": "care-instructions"
          },
          "relation_type": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "Use 1 for shared localized content, or 0 for content assigned to individual resources."
          },
          "content": {
            "type": "object",
            "additionalProperties": true,
            "description": "Shared content keyed by enabled numeric language IDs. Applicable when relation_type is 1."
          },
          "draft": {
            "type": "boolean",
            "description": "Set true to save as a draft. Publishing also requires the Dynamic Fields feature to be active."
          }
        }
      },
      "DynamicFieldUpdateRequest": {
        "type": "object",
        "description": "Send changed fields only. When changing shared localized content, also supply relation_type: 1.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Display name.",
            "example": "Care instructions"
          },
          "type": {
            "type": "string",
            "enum": [
              "input",
              "text",
              "code",
              "image"
            ],
            "description": "Content editor type.",
            "example": "text"
          },
          "code": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9\\-]+$",
            "description": "Field code containing letters, numbers and hyphens.",
            "example": "care-instructions"
          },
          "relation_type": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "Use 1 for shared localized content, or 0 for content assigned to individual resources."
          },
          "content": {
            "type": "object",
            "additionalProperties": true,
            "description": "Shared content keyed by enabled numeric language IDs. Applicable when relation_type is 1."
          },
          "draft": {
            "type": "boolean",
            "description": "Set true to save as a draft. Publishing also requires the Dynamic Fields feature to be active."
          }
        }
      }
    },
    "securitySchemes": {
      "Token": {
        "type": "http",
        "scheme": "bearer",
        "description": "API bearer token. Authentication identifies the store and permitted operations."
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Catalog",
      "tags": [
        "Products",
        "Categories",
        "Products options",
        "Custom field"
      ]
    },
    {
      "name": "Sales and customers",
      "tags": [
        "Orders",
        "Customers",
        "Custom orders",
        "Coupons",
        "Points"
      ]
    },
    {
      "name": "Storefront",
      "tags": [
        "Store design",
        "Modules",
        "Store themes",
        "Dynamic fields"
      ]
    },
    {
      "name": "Shipping and automation",
      "tags": [
        "Shipping",
        "Webhook",
        "Misc"
      ]
    }
  ]
}
