{
  "openapi": "3.0.0",
  "servers": [
    {
      "description": "iStores API",
      "url": "https://api.istores.co.il"
    }
  ],
  "info": {
    "description": "Manage your catalog, customers, orders and storefront through the iStores REST API. Start with the [authentication guide](/authentication) or [explore API resources](/explore).",
    "version": "1.2.5",
    "title": "iStores API",
    "contact": {
      "email": "support@istores.co.il"
    }
  },
  "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": "Payment links",
      "description": "Manage payment links, expiry dates and QR codes."
    },
    {
      "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": "List customers using the supplied filters.",
        "summary": "List 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": "ListCustomers"
      }
    },
    "/customer": {
      "post": {
        "tags": [
          "Customers"
        ],
        "description": "Create a customer profile.",
        "summary": "Create a customer",
        "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": "CreateACustomer"
      }
    },
    "/customer/{customer_id}": {
      "put": {
        "tags": [
          "Customers"
        ],
        "description": "Update an existing customer profile.",
        "summary": "Update a customer",
        "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": "UpdateACustomer"
      },
      "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": "Read a customer profile by ID.",
        "summary": "Get a customer",
        "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": "GetACustomer"
      }
    },
    "/order_status_list": {
      "get": {
        "tags": [
          "Orders"
        ],
        "description": "Read the order status IDs available for filtering and updating orders.",
        "summary": "List order statuses",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusList"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "ListOrderStatuses"
      }
    },
    "/orders": {
      "post": {
        "tags": [
          "Orders"
        ],
        "description": "List orders using date and other supported filters.",
        "summary": "List orders",
        "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
                    ]
                  },
                  "products_ids": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Filter orders by product IDs - returns only orders that contain at least one of the specified products. Leave empty or omit this property to get orders with any products",
                    "example": [
                      111,
                      222
                    ]
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "order_history": {
                        "type": "object",
                        "properties": {
                          "order_status_id": {
                            "type": "integer",
                            "description": "Order status ID recorded in order history",
                            "example": 5
                          },
                          "date_from": {
                            "type": "string",
                            "format": "date",
                            "description": "Inclusive start date for the order history filter",
                            "example": "2020-01-20"
                          },
                          "date_to": {
                            "type": "string",
                            "format": "date",
                            "description": "Inclusive end date for the order history filter",
                            "example": "2020-01-25"
                          }
                        },
                        "required": [
                          "order_status_id",
                          "date_from",
                          "date_to"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "limit",
                  "page"
                ]
              }
            }
          }
        },
        "operationId": "ListOrders"
      }
    },
    "/order/{order_id}": {
      "get": {
        "tags": [
          "Orders"
        ],
        "description": "Read an order and its details.",
        "summary": "Get an order",
        "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"
                },
                "examples": {
                  "chita_pickup_point": {
                    "summary": "Order with Chita pickup point details",
                    "value": {
                      "response": {
                        "customer_id": 0,
                        "order_id": 2704182,
                        "firstname": "Alex",
                        "lastname": "Example",
                        "email": "customer@example.com",
                        "telephone": "0500000000",
                        "custom_field": [
                          {
                            "custom_field_id": 917,
                            "custom_field_value_id": 0,
                            "name": "שם חברה (לא חובה)",
                            "slug": "accounting-company",
                            "value": "קול-טק הגברה ותאורה",
                            "type": "text",
                            "location": "address"
                          }
                        ],
                        "payment_firstname": "Alex",
                        "payment_lastname": "Example",
                        "payment_company": "",
                        "payment_address_1": "10 Example Street",
                        "payment_address_2": "Unit 2",
                        "payment_postcode": "",
                        "payment_city": "באר שבע",
                        "payment_zone": "Tel Aviv (Gosh Dan)",
                        "payment_country_id": 104,
                        "payment_country": "Israel",
                        "payment_iso_code_2": "IL",
                        "payment_iso_code_3": "ISR",
                        "payment_address_format": "",
                        "payment_method": "כרטיס אשראי",
                        "payment_code": "creditguard",
                        "shipping_firstname": "Alex",
                        "shipping_lastname": "Example",
                        "shipping_company": "",
                        "shipping_address_1": "10 Example Street",
                        "shipping_address_2": "Unit 2",
                        "shipping_postcode": "",
                        "shipping_city": "באר שבע",
                        "shipping_country_id": 104,
                        "shipping_country": "Israel",
                        "shipping_iso_code_2": "IL",
                        "shipping_iso_code_3": "ISR",
                        "shipping_address_format": "",
                        "shipping_method": "משלוח לנקודת איסוף עד גודל 40×40 סמ",
                        "shipping_code": "chita_shipping",
                        "comment": "",
                        "total": 308,
                        "order_status_id": 3,
                        "order_status": "נשלח ללקוח",
                        "affiliate_id": 0,
                        "commission": "0.0000",
                        "language_id": 3,
                        "language_code": "he-il",
                        "currency_id": 4,
                        "currency_code": "ILS",
                        "currency_value": "1.00000000",
                        "date_added": "2026-10-21 18:52:50",
                        "date_modified": "2026-10-22 09:30:48",
                        "payment_data": {
                          "auth_number": "4248909",
                          "card_exp": "0332",
                          "card_mask": "532610******3558",
                          "personal_id": "023500382",
                          "number_of_payments": "0",
                          "first_payment": "",
                          "periodical_payment": ""
                        },
                        "products": [
                          {
                            "order_product_id": 19233984,
                            "product_id": 688107,
                            "name": "ברז מטבח נשלף דגם ונציה – יוקרה מודרנית, נוחות מתקדמת ואחריות",
                            "model": "ברז מטבח נשלף ונציה",
                            "sku": "1060",
                            "quantity": 1,
                            "price": "289.0000",
                            "subsidy": "0.0000",
                            "total": "289.0000",
                            "tax": "0.0000",
                            "reward": 0,
                            "weight": 0,
                            "weight_class_id": 0,
                            "length": 0,
                            "width": 0,
                            "height": 0,
                            "length_class_id": 0,
                            "booking": [],
                            "option": []
                          }
                        ],
                        "product_vouchers": [],
                        "histories": [
                          {
                            "notify": 0,
                            "status": "שולם",
                            "comment": "אישור עסקה: 4248909 (ביצוע הזמנה על סך ₪308.00)",
                            "date_added": "2026-10-21",
                            "date_time_added": "2026-10-21 18:54:16"
                          },
                          {
                            "notify": 0,
                            "status": "נשלח ללקוח",
                            "comment": "5 *103469316*\n סוג: מרכזי שירות 22/10/26 09:30\n01/01 #5# מינימרקט עין גדי 5241 25/0.20\nעין גדי 14 באר שבע טל0504213000: עבור:שלומי\nאביטן",
                            "date_added": "2026-10-22",
                            "date_time_added": "2026-10-22 09:30:48"
                          }
                        ],
                        "totals": [
                          {
                            "id": "skvm",
                            "code": "sub_total",
                            "title": "סכום",
                            "value": "289.0000",
                            "data": []
                          },
                          {
                            "id": "mshlvkhlnqvdtaysvpdgvdl40x40sm",
                            "code": "shipping",
                            "title": "משלוח לנקודת איסוף עד גודל 40×40 סמ",
                            "value": "19.0000",
                            "data": []
                          },
                          {
                            "id": "shk",
                            "code": "total",
                            "title": "סה\"כ",
                            "value": "308.0000",
                            "data": []
                          }
                        ],
                        "shipping_additional_data": {
                          "chita_shipping": {
                            "id": 98,
                            "name": "מינימרקט עין גדי",
                            "city": "באר שבע",
                            "city_code": 9000,
                            "street": "עין גדי",
                            "house": 14,
                            "type": "חנות",
                            "locker_data": "",
                            "locker_code": 5241
                          }
                        },
                        "marketing_url_params": {
                          "gclid": "CjwKCAjwxeHWBhBPEiwAiqtQ-el8p9x81oL0rkrJP1gT_pDcGOuwnDas4fheFUMDkYI6d-KMJaa0jhoCqwgQAvD_BwE"
                        }
                      },
                      "success": true,
                      "request_id": "1f1d1232-6f18-664c-8da6-06bd29aac8bf"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetAnOrder"
      }
    },
    "/order/{order_id}/refunds": {
      "get": {
        "tags": [
          "Orders"
        ],
        "description": "Read all recorded refunds for an order belonging to your authenticated store, newest first. Requires the ordersView permission; ordersViewRestricted alone is not sufficient. Returns an empty refunds array when the order has no refunds. Refunds without product lines are included with an empty products array. The stored refund total may differ from the sum of its product lines; additional amounts are not itemized by this endpoint. This endpoint only reads refund data and does not issue refunds.",
        "summary": "Get order refunds",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 2727888
          }
        ],
        "responses": {
          "200": {
            "description": "Order refund data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderRefundsResponse"
                },
                "examples": {
                  "with_refunds": {
                    "summary": "Order with a recorded refund",
                    "value": {
                      "response": {
                        "order_id": 2727888,
                        "currency_code": "ILS",
                        "refunds": [
                          {
                            "order_refund_id": 87989,
                            "refund_sum": "307.0000",
                            "date_added": "2026-11-09 10:19:48",
                            "reason": "",
                            "products": [
                              {
                                "order_refund_product_id": 59092,
                                "order_product_id": 19604973,
                                "product_id": 1016020,
                                "name": "Modular shoe cabinet",
                                "sku": "1276",
                                "model": "Shoe cabinet",
                                "price": "139.00",
                                "quantity": "2.0",
                                "refund_sum": 278,
                                "reason": "",
                                "restock": 1
                              }
                            ]
                          }
                        ]
                      },
                      "success": true,
                      "request_id": "019a65a4-c000-6000-8000-000000000001"
                    }
                  },
                  "without_refunds": {
                    "summary": "Order without refunds",
                    "value": {
                      "response": {
                        "order_id": 2727888,
                        "currency_code": "ILS",
                        "refunds": []
                      },
                      "success": true,
                      "request_id": "019a65a4-c000-6000-8000-000000000001"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "description": "Order not found in the authenticated store",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "No data found."
                    },
                    "request_id": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "GetOrderRefunds"
      }
    },
    "/order/{order_id}/update_status": {
      "post": {
        "tags": [
          "Orders"
        ],
        "description": "Change the order status and optionally add a comment or notify the customer.",
        "summary": "Update order status",
        "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"
              }
            }
          }
        },
        "operationId": "UpdateOrderStatus"
      }
    },
    "/order/{order_id}/create_doc": {
      "post": {
        "tags": [
          "Orders"
        ],
        "description": "Create an invoice for an order.",
        "summary": "Create an invoice",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "In case of successfully request return details for invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderCreateDocResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderCreateDocRequest"
              }
            }
          }
        },
        "operationId": "CreateAnInvoice"
      }
    },
    "/order/{order_id}/edit": {
      "put": {
        "tags": [
          "Orders"
        ],
        "description": "Edit order products (quantity, price)",
        "summary": "Edit order products",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderEditRequest"
              },
              "example": {
                "products": [
                  {
                    "order_product_id": 6446,
                    "quantity": 2,
                    "price": "20.0000"
                  },
                  {
                    "order_product_id": 6447,
                    "quantity": 3,
                    "price": "46.0000"
                  },
                  {
                    "order_product_id": 6448,
                    "quantity": 2,
                    "price": "380.0000"
                  },
                  {
                    "order_product_id": 6449,
                    "quantity": 1,
                    "price": "250.0000"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Order updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderEditResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "EditOrderProducts"
      }
    },
    "/order/{order_id}/charge": {
      "post": {
        "tags": [
          "Orders"
        ],
        "description": "Charge the order using the configured payment method",
        "summary": "Charge order",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Charge result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderChargeResponse"
                },
                "examples": {
                  "success": {
                    "summary": "Charge completed",
                    "value": {
                      "success": true,
                      "message": "Order charged successfully"
                    }
                  },
                  "failure": {
                    "summary": "Charge failed",
                    "value": {
                      "success": false,
                      "message": "Failed to charge order"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "ChargeOrder"
      }
    },
    "/order/{order_id}/shipping/create": {
      "post": {
        "tags": [
          "Orders"
        ],
        "description": "Create a shipment for an order.",
        "summary": "Create a shipment",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "In case of successfully request return details for shipping created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderCreateShippingResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderCreateShippingRequest"
              }
            }
          }
        },
        "operationId": "CreateAShipment"
      }
    },
    "/order/{order_id}/shipping/get_sticker": {
      "post": {
        "tags": [
          "Orders"
        ],
        "description": "Retrieve the shipping label for an order.",
        "summary": "Get a shipping label",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return pdf file with stickers",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderProviderShippingRequest"
              }
            }
          }
        },
        "operationId": "GetAShippingLabel"
      }
    },
    "/order/{order_id}/shipping/status_check": {
      "post": {
        "tags": [
          "Orders"
        ],
        "description": "Check shipping status",
        "summary": "Check shipping status",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return statuses list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusShippingResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderProviderShippingRequest"
              }
            }
          }
        },
        "operationId": "CheckShippingStatus"
      }
    },
    "/custom_orders": {
      "post": {
        "tags": [
          "Custom orders"
        ],
        "description": "List custom orders using the supported date filters.",
        "summary": "List custom orders",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomOrderListResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomOrderListRequest"
              }
            }
          }
        },
        "operationId": "ListCustomOrders"
      }
    },
    "/custom_order": {
      "post": {
        "tags": [
          "Custom orders"
        ],
        "description": "Create a custom order with a pay-by-link payment URL",
        "summary": "Create a pay-by-link custom order",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomOrderCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Custom order created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomOrderCreateResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "CreateAPayByLinkCustomOrder"
      }
    },
    "/custom_order/{order_id}": {
      "get": {
        "tags": [
          "Custom orders"
        ],
        "description": "Read a custom order by ID.",
        "summary": "Get a custom order",
        "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/CustomOrderSingleResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetACustomOrder"
      }
    },
    "/custom_order/{order_id}/generate_qr": {
      "get": {
        "tags": [
          "Custom orders"
        ],
        "description": "Download QR code",
        "summary": "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": {}
            }
          }
        },
        "operationId": "DownloadQRCode"
      }
    },
    "/custom_order/{order_id}/expiry_refresh": {
      "put": {
        "tags": [
          "Custom orders"
        ],
        "description": "Refresh custom order expiry",
        "summary": "Refresh custom order expiry",
        "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"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "RefreshCustomOrderExpiry"
      }
    },
    "/payment_link": {
      "post": {
        "tags": [
          "Payment links"
        ],
        "description": "Get payment links with optional filters",
        "summary": "List payment links",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentLinkListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment links list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentLinkListResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "ListPaymentLinks"
      }
    },
    "/payment_link/create": {
      "post": {
        "tags": [
          "Payment links"
        ],
        "description": "Create a payment link",
        "summary": "Create payment link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentLinkFormRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment link created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentLinkResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "CreatePaymentLink"
      }
    },
    "/payment_link/{payment_link_id}": {
      "get": {
        "tags": [
          "Payment links"
        ],
        "description": "Get payment link details by its id",
        "summary": "Get payment link",
        "parameters": [
          {
            "name": "payment_link_id",
            "in": "path",
            "required": true,
            "description": "Payment link ID",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payment link details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentLinkResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetPaymentLink"
      },
      "put": {
        "tags": [
          "Payment links"
        ],
        "description": "Update an existing payment link",
        "summary": "Update payment link",
        "parameters": [
          {
            "name": "payment_link_id",
            "in": "path",
            "required": true,
            "description": "Payment link ID",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentLinkFormRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment link updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentLinkResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "UpdatePaymentLink"
      },
      "delete": {
        "tags": [
          "Payment links"
        ],
        "description": "Delete a payment link by its id",
        "summary": "Delete payment link",
        "parameters": [
          {
            "name": "payment_link_id",
            "in": "path",
            "required": true,
            "description": "Payment link ID",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payment link deleted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentLinkDeleteResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "DeletePaymentLink"
      }
    },
    "/payment_link/{payment_link_id}/generate_qr": {
      "get": {
        "tags": [
          "Payment links"
        ],
        "description": "Download the payment link QR code",
        "summary": "Download payment link QR code",
        "parameters": [
          {
            "name": "payment_link_id",
            "in": "path",
            "required": true,
            "description": "Payment link ID",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "QR code in SVG format",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "DownloadPaymentLinkQRCode"
      }
    },
    "/payment_link/{payment_link_id}/expiry_refresh": {
      "put": {
        "tags": [
          "Payment links"
        ],
        "description": "Refresh payment link expiry",
        "summary": "Refresh payment link expiry",
        "parameters": [
          {
            "name": "payment_link_id",
            "in": "path",
            "required": true,
            "description": "Payment link ID",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "refresh": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "refresh"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment link expiry refreshed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentLinkResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "RefreshPaymentLinkExpiry"
      }
    },
    "/custom_fields/{limit}/{page}": {
      "get": {
        "tags": [
          "Custom field"
        ],
        "description": "List custom fields with pagination.",
        "summary": "List custom fields",
        "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": "ListCustomFields"
      }
    },
    "/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": "Read the supported types for custom fields.",
        "summary": "List custom field types",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldTypes"
                }
              }
            }
          },
          "403": {
            "description": "Authentication or permission error."
          }
        },
        "operationId": "ListCustomFieldTypes"
      }
    },
    "/custom_field_info/locations": {
      "get": {
        "tags": [
          "Custom field"
        ],
        "description": "Read the supported locations for custom fields.",
        "summary": "List custom field locations",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldLocations"
                }
              }
            }
          },
          "403": {
            "description": "Authentication or permission error."
          }
        },
        "operationId": "ListCustomFieldLocations"
      }
    },
    "/categories": {
      "post": {
        "tags": [
          "Categories"
        ],
        "description": "Create a category in your product catalog.",
        "summary": "Create a 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": "CreateACategory"
      },
      "get": {
        "tags": [
          "Categories"
        ],
        "description": "Read the categories in your product catalog.",
        "summary": "List 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": "ListCategories"
      }
    },
    "/categories/{category_id}": {
      "put": {
        "tags": [
          "Categories"
        ],
        "description": "Update an existing category.",
        "summary": "Update a 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": "UpdateACategory"
      },
      "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": "Read a category by ID.",
        "summary": "Get a category",
        "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": "GetACategory"
      }
    },
    "/products/{limit}/{page}": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "List products",
        "operationId": "ListProducts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductListResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "404": {
            "description": "No products found."
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "path",
            "description": "Number of products to return per page.",
            "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": "List products with path-based pagination. The maximum page size is 100. Read product data from the lowercase products array; an empty result returns HTTP 404."
      }
    },
    "/products/{product_id}": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Get a product",
        "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 a product."
      },
      "put": {
        "tags": [
          "Products"
        ],
        "summary": "Update a product",
        "operationId": "UpdateProductById",
        "responses": {
          "200": {
            "description": "Successful 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 a product."
      },
      "delete": {
        "tags": [
          "Products"
        ],
        "summary": "Delete a product",
        "operationId": "DeleteProductById",
        "responses": {
          "200": {
            "description": "Successful 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 a product."
      }
    },
    "/products/bulk": {
      "put": {
        "tags": [
          "Products"
        ],
        "summary": "Update products in bulk",
        "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": "Update products in bulk."
      }
    },
    "/products": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Create a product",
        "operationId": "CreateProduct",
        "responses": {
          "200": {
            "description": "Successful 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 a product."
      }
    },
    "/options": {
      "get": {
        "tags": [
          "Products options"
        ],
        "summary": "List options",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptionListResponse"
                }
              }
            }
          }
        },
        "operationId": "ListOptions",
        "description": "List options."
      },
      "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"
              }
            }
          }
        },
        "operationId": "CreateOption",
        "description": "Create an option with its type and translated option descriptions. Types select, radio and checkbox also require option_value."
      }
    },
    "/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"
                }
              }
            }
          }
        },
        "operationId": "GetOption",
        "description": "Get option."
      },
      "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"
              }
            }
          }
        },
        "operationId": "UpdateOption",
        "description": "Supply the option type and translated option descriptions. Types select, radio and checkbox also require option_value. When updating, include each retained value with its option_value_id; omitted existing values are removed."
      },
      "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"
                }
              }
            }
          }
        },
        "operationId": "DeleteOption",
        "description": "Delete option."
      }
    },
    "/coupons": {
      "post": {
        "tags": [
          "Coupons"
        ],
        "summary": "List coupons",
        "description": "List coupons using the supported 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": "ListCoupons"
      }
    },
    "/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 a coupon",
        "description": "Read coupon details by ID.",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CouponResponseStructure"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetACoupon"
      }
    },
    "/shipping_methods": {
      "get": {
        "tags": [
          "Shipping"
        ],
        "summary": "List shipping methods",
        "description": "Read available shipping methods, 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": "ListShippingMethods"
      }
    },
    "/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 a shipping method",
        "description": "Read a shipping method, including its settings and status.",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShippingSingleResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetAShippingMethod"
      }
    },
    "/automation/webhooks": {
      "post": {
        "tags": [
          "Webhook"
        ],
        "summary": "List webhooks",
        "description": "List webhook subscriptions and their 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": "ListWebhooks"
      }
    },
    "/automation/webhook": {
      "post": {
        "tags": [
          "Webhook"
        ],
        "summary": "Create a webhook",
        "description": "Create a webhook subscription.",
        "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": "CreateAWebhook"
      }
    },
    "/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 a webhook",
        "description": "Read a webhook subscription and its events.",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhookSingle"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "GetAWebhook"
      },
      "put": {
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "description": "Id of Webhook we update",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "tags": [
          "Webhook"
        ],
        "summary": "Update a webhook",
        "description": "Update a webhook subscription.",
        "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": "UpdateAWebhook"
      },
      "delete": {
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "description": "Id of Webhook we delete",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "tags": [
          "Webhook"
        ],
        "summary": "Delete a webhook",
        "description": "Delete a webhook subscription.",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhookCrudResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "DeleteAWebhook"
      }
    },
    "/automation/webhook_events": {
      "get": {
        "tags": [
          "Webhook"
        ],
        "summary": "List webhook events",
        "description": "Read supported webhook event IDs and names.",
        "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": "ListWebhookEvents"
      }
    },
    "/store_themes/js": {
      "get": {
        "tags": [
          "Store themes"
        ],
        "summary": "Get custom JS code",
        "description": "Requires API permission `themesJs`. Reads custom JS for the authenticated 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 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.istores.co.il/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": "List languages",
        "description": "Read available languages and their IDs.",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LanguageList"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "ListLanguages"
      }
    },
    "/currency_list": {
      "get": {
        "tags": [
          "Misc"
        ],
        "summary": "List currencies",
        "description": "Read 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": "ListCurrencies"
      }
    },
    "/dimension_list": {
      "get": {
        "tags": [
          "Misc"
        ],
        "summary": "List dimensions",
        "description": "Read supported dimensions and their IDs.",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DimensionList"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          }
        },
        "operationId": "ListDimensions"
      }
    },
    "/stock_status_list": {
      "get": {
        "tags": [
          "Misc"
        ],
        "summary": "List stock statuses",
        "description": "Read supported stock statuses.",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StockStatusList"
                }
              }
            }
          }
        },
        "operationId": "ListStockStatuses"
      }
    },
    "/points": {
      "get": {
        "tags": [
          "Points"
        ],
        "summary": "List point ranks",
        "operationId": "PointRanksList",
        "description": "Requires API permission `points` and an active points app. Scoped to the authenticated store. See [Points guide](/points). Returns the first page of up to 100 ranks with pagination metadata; these routes do not expose page or limit query parameters.",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PointRankListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Required API permission missing."
          },
          "404": {
            "description": "Points app inactive or no ranks available."
          },
          "422": {
            "description": "Invalid request or attempted deletion of the default rank."
          },
          "429": {
            "description": "API rate limit exceeded."
          }
        }
      },
      "post": {
        "tags": [
          "Points"
        ],
        "summary": "Create point rank",
        "operationId": "PointRanksCreate",
        "description": "Requires API permission `points` and an active points app. Scoped to the authenticated store. See [Points guide](/points). POST and PUT require the full payload; PUT replaces settings. Use accepted language IDs and an image URL on the configured CDN.",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Required API permission missing."
          },
          "404": {
            "description": "Points app inactive, rank not found, or no ranks available."
          },
          "422": {
            "description": "Invalid request or attempted deletion of the default rank."
          },
          "429": {
            "description": "API rate limit exceeded."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PointRankWriteRequest"
              }
            }
          }
        }
      }
    },
    "/points/{point_rank_id}": {
      "get": {
        "tags": [
          "Points"
        ],
        "summary": "Get point rank",
        "operationId": "PointRanksGet",
        "description": "Requires API permission `points` and an active points app. Scoped to the authenticated store. See [Points guide](/points).",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PointRankSingleResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Required API permission missing."
          },
          "404": {
            "description": "Points app inactive. Rank not found."
          },
          "422": {
            "description": "Invalid request or attempted deletion of the default rank."
          },
          "429": {
            "description": "API rate limit exceeded."
          }
        },
        "parameters": [
          {
            "name": "point_rank_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ]
      },
      "put": {
        "tags": [
          "Points"
        ],
        "summary": "Update point rank",
        "operationId": "PointRanksUpdate",
        "description": "Requires API permission `points` and an active points app. Scoped to the authenticated store. See [Points guide](/points). POST and PUT require the full payload; PUT replaces settings. Use accepted language IDs and an image URL on the configured CDN.",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Required API permission missing."
          },
          "404": {
            "description": "Points app inactive."
          },
          "422": {
            "description": "Invalid request, rank not found, or attempted deletion of the default rank."
          },
          "429": {
            "description": "API rate limit exceeded."
          }
        },
        "parameters": [
          {
            "name": "point_rank_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PointRankWriteRequest"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Points"
        ],
        "summary": "Delete point rank",
        "operationId": "PointRanksDelete",
        "description": "Requires API permission `points` and an active points app. Scoped to the authenticated store. See [Points guide](/points). The default rank cannot be deleted.",
        "security": [
          {
            "Token": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired authentication."
          },
          "403": {
            "description": "Required API permission missing."
          },
          "404": {
            "description": "Points app inactive."
          },
          "422": {
            "description": "Invalid request, rank not found, or attempted deletion of the default rank."
          },
          "429": {
            "description": "API rate limit exceeded."
          }
        },
        "parameters": [
          {
            "name": "point_rank_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ]
      }
    },
    "/dynamic_fields": {
      "get": {
        "tags": [
          "Dynamic fields"
        ],
        "summary": "Get dynamic fields list",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DynamicFieldListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired bearer token."
          },
          "422": {
            "description": "Invalid fields or the requested write could not be completed."
          },
          "404": {
            "description": "No dynamic fields found."
          }
        },
        "operationId": "GetDynamicFieldsList",
        "description": "Get dynamic fields list.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number. Start at 1.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 999,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Dynamic fields"
        ],
        "summary": "Create dynamic field",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired bearer token."
          },
          "422": {
            "description": "Invalid fields or the requested write could not be completed."
          }
        },
        "operationId": "CreateDynamicField",
        "description": "Create a reusable field. Publishing requires an active Dynamic Fields feature; draft saves remain inactive.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DynamicFieldCreateRequest"
              }
            }
          }
        }
      }
    },
    "/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"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired bearer token."
          },
          "422": {
            "description": "Invalid fields or the requested write could not be completed."
          },
          "404": {
            "description": "Dynamic field not found."
          }
        },
        "operationId": "GetDynamicField",
        "description": "Get dynamic field."
      },
      "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."
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired bearer token."
          },
          "422": {
            "description": "Invalid fields or the requested write could not be completed."
          }
        },
        "operationId": "UpdateDynamicField",
        "description": "Update supplied fields on a reusable field. Send relation_type: 1 when editing shared localized content. Use draft: true to keep it inactive.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DynamicFieldUpdateRequest"
              }
            }
          }
        }
      },
      "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."
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired bearer token."
          },
          "422": {
            "description": "Invalid fields or the requested write could not be completed."
          }
        },
        "operationId": "DeleteDynamicField",
        "description": "Delete dynamic field."
      }
    },
    "/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"
                      }
                    ]
                  }
                },
                "productBanners": {
                  "summary": "Enable banners between products",
                  "description": "For an existing product_list/product_slide module. Keeps saved products, settings and banners.",
                  "value": {
                    "settings": {
                      "banners_enabled": 1,
                      "banners_interval": 2
                    }
                  }
                },
                "addProductBanner": {
                  "summary": "Add a product-module banner",
                  "description": "Use real uploaded CDN URLs. At most 2 saved banners including omitted ones; existing banners remain saved.",
                  "value": {
                    "banners": [
                      {
                        "banner_image_id": 0,
                        "image": "https://cdn.istores.co.il/image/upload/clients/YOUR_COMPANY/banner-desktop.jpg",
                        "image_mob": "https://cdn.istores.co.il/image/upload/clients/YOUR_COMPANY/banner-mobile.jpg"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "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, product_list or product_slide module also deletes its related banner images.",
        "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"
                      }
                    ]
                  }
                },
                "productBanners": {
                  "summary": "Enable banners between products",
                  "description": "For an existing product_list/product_slide module. Keeps saved products, settings and banners.",
                  "value": {
                    "settings": {
                      "banners_enabled": 1,
                      "banners_interval": 2
                    }
                  }
                },
                "addProductBanner": {
                  "summary": "Add a product-module banner",
                  "description": "Use real uploaded CDN URLs. At most 2 saved banners including omitted ones; existing banners remain saved.",
                  "value": {
                    "banners": [
                      {
                        "banner_image_id": 0,
                        "image": "https://cdn.istores.co.il/image/upload/clients/YOUR_COMPANY/banner-desktop.jpg",
                        "image_mob": "https://cdn.istores.co.il/image/upload/clients/YOUR_COMPANY/banner-mobile.jpg"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/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."
          }
        }
      }
    },
    "/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 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 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"
      }
    }
  },
  "externalDocs": {
    "description": "Integration guides",
    "url": "https://apidocs.istores.co.il/introduction"
  },
  "components": {
    "responses": {
      "403": {
        "description": "Authentication or permission 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": "The request could not be processed. Check the response message and supplied fields.",
        "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": "0544884654"
            },
            "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": "0544884654"
          },
          "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": "0544884547"
          },
          "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
                  }
                }
              }
            }
          }
        }
      },
      "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": "0544884547"
          },
          "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
          },
          "responder_list": {
            "type": "number",
            "format": "int64",
            "description": "Responder list id for subscription to newsletter",
            "example": 3221
          },
          "newsletter": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "Subscribe to or unsubscribe from the newsletter specified in responder_list"
          },
          "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
                  }
                }
              }
            }
          }
        }
      },
      "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.istores.co.il/istores/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": "Language ID for this translation.",
                      "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": "Language ID for this translation.",
                      "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": "Filter by the earliest coupon creation date.",
            "example": "2021-04-03"
          },
          "date_added_end": {
            "type": "string",
            "format": "date",
            "description": "Filter by the latest coupon creation date.",
            "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": "Number of times the coupon has been used.",
            "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": "Shipping method code.",
            "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": "Shipping cost in the store 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": "Shipping method code.",
              "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": "Shipping cost in the store 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.istores.co.il/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.istores.co.il/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.istores.co.il/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.istores.co.il/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"
                        },
                        "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"
                        },
                        "store_id": {
                          "type": "integer",
                          "readOnly": true,
                          "description": "Store identifier returned with this record. Determined by authentication; not a request field."
                        }
                      }
                    }
                  },
                  "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.istores.co.il/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.istores.co.il/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": "Product SKU."
          },
          "model": {
            "type": "string"
          },
          "minimum": {
            "type": "integer",
            "description": "Minimum quantity required when adding the product to the 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": "Weight class ID. Read available values with GET /dimension_list.",
            "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": "Length class ID. Read available values with GET /dimension_list.",
            "example": 3
          },
          "stock_status": {
            "type": "integer",
            "description": "Stock status ID. Read available values with GET /stock_status_list.",
            "example": 7
          },
          "subtract": {
            "type": "integer",
            "description": "Use 1 to subtract purchased quantities from stock, or 0 to disable stock subtraction.",
            "enum": [
              0,
              1
            ]
          },
          "sort_order": {
            "type": "integer",
            "description": "Display order relative to other products.",
            "example": 9
          },
          "status": {
            "type": "integer",
            "description": "Use 1 to enable the product, or 0 to disable it.",
            "enum": [
              0,
              1
            ]
          },
          "keyword": {
            "type": "string",
            "description": "SEO URL keyword.",
            "example": "food"
          },
          "quantity": {
            "type": "integer",
            "description": "Available product quantity.",
            "example": 10
          },
          "hidden": {
            "type": "integer",
            "example": 0,
            "description": "Use 1 to hide the product from customers, or 0 to display it.",
            "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": "Shipping method IDs available for this 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": "Product SKU."
          },
          "model": {
            "type": "string"
          },
          "minimum": {
            "type": "integer",
            "description": "Minimum quantity required when adding the product to the 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": "Weight class ID. Read available values with GET /dimension_list.",
            "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": "Length class ID. Read available values with GET /dimension_list.",
            "example": 3
          },
          "stock_status": {
            "type": "integer",
            "description": "Stock status ID. Read available values with GET /stock_status_list.",
            "example": 7
          },
          "subtract": {
            "type": "integer",
            "description": "Use 1 to subtract purchased quantities from stock, or 0 to disable stock subtraction.",
            "enum": [
              0,
              1
            ]
          },
          "sort_order": {
            "type": "integer",
            "description": "Display order relative to other products.",
            "example": 9
          },
          "status": {
            "type": "integer",
            "description": "Use 1 to enable the product, or 0 to disable it.",
            "enum": [
              0,
              1
            ]
          },
          "keyword": {
            "type": "string",
            "description": "SEO URL keyword.",
            "example": "food"
          },
          "quantity": {
            "type": "integer",
            "description": "Available product quantity.",
            "example": 10
          },
          "hidden": {
            "type": "integer",
            "example": 0,
            "description": "Use 1 to hide the product from customers, or 0 to display it.",
            "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": "Product options. Send an empty array to clear the options.",
            "items": {
              "$ref": "#/components/schemas/ProductCrudOptionObject"
            }
          },
          "shipping_product": {
            "type": "array",
            "description": "Shipping method IDs available for this 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": "An enabled store language ID.",
            "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"
          }
        ]
      },
      "OrderRefundsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "order_id": {
                    "type": "integer"
                  },
                  "currency_code": {
                    "type": "string",
                    "example": "ILS"
                  },
                  "refunds": {
                    "type": "array",
                    "description": "Recorded refunds ordered by refund ID descending. Empty when no refunds exist.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "order_refund_id": {
                          "type": "integer"
                        },
                        "refund_sum": {
                          "type": "string",
                          "description": "Stored refund total as a decimal string. May differ from the sum of product refund amounts."
                        },
                        "date_added": {
                          "type": "string",
                          "description": "Recorded refund date and time in YYYY-MM-DD HH:mm:ss format.",
                          "example": "2026-11-09 10:19:48"
                        },
                        "reason": {
                          "type": "string",
                          "description": "Stored refund-level reason, or an empty string."
                        },
                        "products": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "order_refund_product_id": {
                                "type": "integer"
                              },
                              "order_product_id": {
                                "type": "integer"
                              },
                              "product_id": {
                                "type": "integer"
                              },
                              "name": {
                                "type": "string",
                                "nullable": true,
                                "description": "Original order product name, or null if the order product is unavailable."
                              },
                              "sku": {
                                "type": "string",
                                "nullable": true
                              },
                              "model": {
                                "type": "string",
                                "nullable": true
                              },
                              "price": {
                                "type": "string",
                                "description": "Recorded refund unit price as a decimal string."
                              },
                              "quantity": {
                                "type": "string",
                                "description": "Refunded quantity as a decimal string; may be fractional."
                              },
                              "refund_sum": {
                                "type": "number",
                                "description": "Refund unit price multiplied by refunded quantity."
                              },
                              "reason": {
                                "type": "string",
                                "description": "Company-defined or translated product refund reason. Falls back to the refund-level reason when no product reason is recorded."
                              },
                              "restock": {
                                "type": "integer",
                                "enum": [
                                  0,
                                  1
                                ],
                                "description": "Whether restocking was requested for this product."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          {
            "$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": "0547864322"
                  },
                  "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": "Billing country name."
                  },
                  "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": "Shipping method description in the store language.",
                    "example": "Fast delivery 1-2 days"
                  },
                  "shipping_code": {
                    "type": "string",
                    "description": "The code slug of the shipping method used",
                    "example": "x_company_shipping23342"
                  },
                  "shipping_additional_data": {
                    "description": "Pickup point details keyed by shipping code: chita_shipping, hfd_shipping, or hfd_shipping_sec. Returns an empty array when no supported Runcom record exists; the shipping code value is an empty array when no matching locker exists.",
                    "oneOf": [
                      {
                        "type": "object",
                        "additionalProperties": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "integer",
                                  "description": "Pickup point ID."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Pickup point name"
                                },
                                "city": {
                                  "type": "string",
                                  "description": "Pickup point city"
                                },
                                "city_code": {
                                  "type": "integer",
                                  "description": "Provider city code"
                                },
                                "street": {
                                  "type": "string",
                                  "description": "Pickup point street"
                                },
                                "house": {
                                  "type": "integer",
                                  "description": "Pickup point house number"
                                },
                                "type": {
                                  "type": "string",
                                  "description": "Pickup point type"
                                },
                                "locker_data": {
                                  "type": "string",
                                  "description": "Additional provider pickup point data"
                                },
                                "locker_code": {
                                  "type": "integer",
                                  "description": "Provider pickup point code"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "maxItems": 0,
                              "items": {}
                            }
                          ]
                        }
                      },
                      {
                        "type": "array",
                        "maxItems": 0,
                        "items": {}
                      }
                    ]
                  },
                  "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": "string",
              "description": "If notifed the customer about the status change it will be \"yes\" in local language",
              "example": "1"
            },
            "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": "Weight class ID. Read available values with GET /dimension_list.",
              "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": "Length class ID. Read available values with GET /dimension_list.",
              "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": "0548654366"
          },
          "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": 100
              },
              {
                "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": "string",
                    "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"
          }
        ]
      },
      "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"
        ]
      },
      "OrderHistoryUpdateRequest": {
        "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"
          }
        },
        "required": [
          "comment"
        ]
      },
      "OrderEditRequest": {
        "type": "object",
        "required": [
          "products"
        ],
        "properties": {
          "products": {
            "type": "array",
            "description": "Array of products to update in this order",
            "items": {
              "type": "object",
              "required": [
                "order_product_id",
                "quantity",
                "price"
              ],
              "properties": {
                "order_product_id": {
                  "type": "integer",
                  "description": "The ID of the product row inside the order",
                  "example": 6446
                },
                "quantity": {
                  "type": "integer",
                  "description": "New quantity for the product",
                  "example": 2
                },
                "price": {
                  "type": "string",
                  "description": "New price per item (decimal string)",
                  "example": "20.0000"
                }
              }
            }
          }
        }
      },
      "OrderChargeResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful",
            "example": true
          },
          "message": {
            "type": "string",
            "description": "Human readable message about the result",
            "example": "Order charged successfully"
          }
        },
        "required": [
          "success",
          "message"
        ]
      },
      "OrderEditResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful",
            "example": true
          },
          "message": {
            "type": "string",
            "description": "Human readable message about the result",
            "example": "Order updated successfully"
          }
        },
        "required": [
          "success",
          "message"
        ]
      },
      "CustomOrderListRequest": {
        "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
          }
        }
      },
      "CustomOrderCreateRequest": {
        "type": "object",
        "properties": {
          "is_fast_link": {
            "type": "boolean",
            "enum": [
              true
            ],
            "description": "Must be true to create a pay-by-link custom order",
            "example": true
          },
          "currency": {
            "type": "string",
            "description": "Active store currency code",
            "example": "ILS"
          },
          "transaction_type": {
            "type": "string",
            "enum": [
              "Debit"
            ],
            "example": "Debit"
          },
          "credit_type": {
            "type": "string",
            "enum": [
              "RegularCredit",
              "Payments"
            ],
            "example": "RegularCredit"
          },
          "products": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "product_name": {
                  "type": "string",
                  "minLength": 2,
                  "example": "Example product"
                },
                "product_price": {
                  "type": "number",
                  "format": "float",
                  "exclusiveMinimum": true,
                  "minimum": 0,
                  "example": 99.9
                },
                "product_quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              },
              "required": [
                "product_name",
                "product_price",
                "product_quantity"
              ]
            }
          },
          "client_firstname": {
            "type": "string",
            "nullable": true,
            "minLength": 2,
            "example": "John"
          },
          "client_lastname": {
            "type": "string",
            "nullable": true,
            "minLength": 2,
            "example": "Doe"
          },
          "client_email": {
            "type": "string",
            "format": "email",
            "nullable": true,
            "example": "customer@example.com"
          },
          "client_phone": {
            "type": "string",
            "nullable": true,
            "minLength": 7,
            "example": "0501234567"
          },
          "payment_address": {
            "type": "string",
            "nullable": true,
            "minLength": 2,
            "example": "1 Main Street"
          },
          "payment_city": {
            "type": "string",
            "nullable": true,
            "minLength": 2,
            "example": "Tel Aviv"
          },
          "num_of_payments": {
            "type": "integer",
            "minimum": 1,
            "maximum": 36,
            "example": 1
          }
        },
        "required": [
          "is_fast_link",
          "currency",
          "transaction_type",
          "credit_type",
          "products",
          "num_of_payments"
        ]
      },
      "CustomOrderCreateResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "order_id": {
                    "type": "integer",
                    "example": 123
                  },
                  "message": {
                    "type": "string",
                    "example": "Order created successfully."
                  },
                  "pay_by_link": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "format": "uri",
                        "example": "https://example.com/pay-by-link"
                      },
                      "expire": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2026-09-03 12:00:00"
                      }
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "CustomOrderListResponse": {
        "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",
                      "example": 4432
                    },
                    "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
                    },
                    "date_added": {
                      "type": "string",
                      "format": "date",
                      "description": "The date this order added"
                    },
                    "firstname": {
                      "type": "string",
                      "description": "First name of the customer"
                    },
                    "lastname": {
                      "type": "string",
                      "description": "Last name of the customer"
                    },
                    "products": {
                      "type": "integer",
                      "description": "the amount of products purchased this order"
                    },
                    "status": {
                      "type": "string",
                      "description": "the current order status description",
                      "example": "Complete"
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponsePagination"
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "CustomOrderSingleResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "order_id": {
                    "type": "integer",
                    "description": "Unique identifier for the order",
                    "example": 12345
                  },
                  "firstname": {
                    "type": "string",
                    "description": "First name of the customer",
                    "example": "john"
                  },
                  "lastname": {
                    "type": "string",
                    "description": "Last name of the customer",
                    "example": "doe"
                  },
                  "email": {
                    "type": "string",
                    "description": "Email address of the customer",
                    "example": "customer@example.com"
                  },
                  "telephone": {
                    "type": "string",
                    "description": "Telephone number of the customer",
                    "example": "0501234567"
                  },
                  "payment_firstname": {
                    "type": "string",
                    "description": "First name of the customer for payment",
                    "example": "john"
                  },
                  "payment_lastname": {
                    "type": "string",
                    "description": "Last name of the customer for payment",
                    "example": "doe"
                  },
                  "payment_address_1": {
                    "type": "string",
                    "description": "Primary address for payment",
                    "example": "123 Main St"
                  },
                  "payment_address_2": {
                    "type": "string",
                    "description": "Secondary address for payment",
                    "example": "Apt 4B"
                  },
                  "payment_city": {
                    "type": "string",
                    "description": "City for payment address",
                    "example": "Tel Aviv"
                  },
                  "payment_code": {
                    "type": "string",
                    "description": "Payment method code",
                    "example": "paypal"
                  },
                  "shipping_firstname": {
                    "type": "string",
                    "description": "First name of the customer for shipping",
                    "example": "john"
                  },
                  "shipping_lastname": {
                    "type": "string",
                    "description": "Last name of the customer for shipping",
                    "example": "doe"
                  },
                  "shipping_address_1": {
                    "type": "string",
                    "description": "Primary address for shipping",
                    "example": "123 Main St"
                  },
                  "shipping_address_2": {
                    "type": "string",
                    "description": "Secondary address for shipping",
                    "example": "Apt 4B"
                  },
                  "shipping_city": {
                    "type": "string",
                    "description": "City for shipping address",
                    "example": "Tel Aviv"
                  },
                  "total": {
                    "type": "number",
                    "format": "float",
                    "description": "Total amount of the order",
                    "example": 250.75
                  },
                  "order_status_id": {
                    "type": "integer",
                    "description": "Status identifier of the order",
                    "example": 2
                  },
                  "order_status": {
                    "type": "string",
                    "description": "Status description of the order",
                    "example": "Pending"
                  },
                  "currency_id": {
                    "type": "integer",
                    "description": "Identifier of the currency used for the order",
                    "example": 1
                  },
                  "currency_code": {
                    "type": "string",
                    "description": "Code of the currency used for the order",
                    "example": "USD"
                  },
                  "currency_value": {
                    "type": "number",
                    "format": "float",
                    "description": "Value of the currency used for the order",
                    "example": 1
                  },
                  "date_added": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Date and time when the order was added",
                    "example": "2024-07-08T12:34:56.000Z"
                  },
                  "payment_data": {
                    "type": "object",
                    "description": "Payment details of the order",
                    "properties": {
                      "auth_number": {
                        "type": "string",
                        "description": "Authorization number for the payment",
                        "example": "9876543"
                      },
                      "card_exp": {
                        "type": "string",
                        "description": "Card expiration date in MMYY format",
                        "example": "1225"
                      },
                      "card_mask": {
                        "type": "string",
                        "description": "Masked card number",
                        "example": "1234"
                      },
                      "personal_id": {
                        "type": "integer",
                        "description": "Personal ID number of the customer",
                        "example": 123456789
                      },
                      "number_of_payments": {
                        "type": "integer",
                        "description": "Number of payment installments",
                        "example": 1
                      },
                      "first_payment": {
                        "type": "string",
                        "description": "Date of the first payment installment",
                        "example": "2024-07-01"
                      },
                      "periodical_payment": {
                        "type": "string",
                        "description": "Date of the periodical payment installment",
                        "example": "2024-08-01"
                      }
                    }
                  },
                  "products": {
                    "type": "array",
                    "description": "List of products in the order",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Name of the product",
                          "example": "Example Product"
                        },
                        "quantity": {
                          "type": "string",
                          "description": "Quantity of the product",
                          "example": "2"
                        },
                        "price": {
                          "type": "number",
                          "format": "float",
                          "description": "Price of the product",
                          "example": 125.38
                        },
                        "total": {
                          "type": "number",
                          "format": "float",
                          "description": "Total price for the product",
                          "example": 250.76
                        }
                      }
                    }
                  },
                  "histories": {
                    "type": "array",
                    "description": "List of order status history",
                    "items": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "description": "Status of the order at the given time",
                          "example": "Pending"
                        },
                        "date_added": {
                          "type": "string",
                          "format": "date",
                          "description": "Date when the status was recorded",
                          "example": "2024-07-08"
                        },
                        "date_time_added": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Date and time when the status was recorded",
                          "example": "2024-07-08T12:34:56"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "PaymentLinkListRequest": {
        "type": "object",
        "properties": {
          "date_from": {
            "type": "string",
            "format": "date",
            "description": "Start date for the filter",
            "example": "2026-07-01"
          },
          "date_to": {
            "type": "string",
            "format": "date",
            "description": "End date for the filter",
            "example": "2026-07-31"
          },
          "name": {
            "type": "string",
            "description": "Filter payment links by name",
            "example": "Summer campaign"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "default": 10
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "maximum": 999,
            "default": 1
          }
        }
      },
      "PaymentLinkItem": {
        "type": "object",
        "properties": {
          "product_name": {
            "type": "string",
            "maxLength": 255,
            "example": "Example product"
          },
          "price": {
            "type": "number",
            "format": "float",
            "exclusiveMinimum": true,
            "minimum": 0,
            "example": 99.9
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "example": 1
          }
        },
        "required": [
          "product_name",
          "price",
          "quantity"
        ]
      },
      "PaymentLinkFormRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 96,
            "example": "Summer campaign"
          },
          "status": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "example": 1
          },
          "items": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/PaymentLinkItem"
            }
          }
        },
        "required": [
          "name",
          "status",
          "items"
        ]
      },
      "PaymentLink": {
        "type": "object",
        "properties": {
          "payment_link_id": {
            "type": "integer",
            "example": 123
          },
          "name": {
            "type": "string",
            "example": "Summer campaign"
          },
          "status": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "example": 1
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentLinkItem"
            }
          },
          "amount": {
            "type": "number",
            "format": "float",
            "example": 99.9
          },
          "currency": {
            "type": "string",
            "example": "ILS"
          },
          "pay_by_link": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "expire": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PaymentLinkResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "payment_link": {
                "$ref": "#/components/schemas/PaymentLink"
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "PaymentLinkListResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PaymentLink"
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponsePagination"
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "PaymentLinkDeleteResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponseTop"
          },
          {
            "type": "object",
            "properties": {
              "response": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "example": "Payment link was deleted successfully."
                  },
                  "payment_link_id": {
                    "type": "integer",
                    "example": 123
                  }
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/BaseResponseBottom"
          }
        ]
      },
      "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"
                  },
                  "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"
                          }
                        }
                      }
                    }
                  },
                  "store_id": {
                    "type": "integer",
                    "readOnly": true,
                    "description": "Store identifier returned with this record. Determined by authentication; not a request field."
                  }
                }
              }
            }
          },
          {
            "$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/BaseResponsePagination"
          },
          {
            "$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": {
                    "$ref": "#/components/schemas/PointRankSettings"
                  },
                  "status": {
                    "type": "integer",
                    "enum": [
                      0,
                      1
                    ]
                  },
                  "image": {
                    "type": "string",
                    "format": "uri"
                  },
                  "descriptions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "point_rank_id": {
                          "type": "integer"
                        },
                        "language_id": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          {
            "$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"
                    }
                  }
                }
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "results": {
                "type": "integer",
                "description": "Total number of matching fields."
              },
              "pages": {
                "type": "integer",
                "description": "Total page count."
              },
              "page": {
                "type": "integer",
                "description": "Current page."
              },
              "per_page": {
                "type": "integer",
                "description": "Page size."
              }
            }
          },
          {
            "$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.istores.co.il/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, product_list or product_slide. Product lists/sliders allow at most 2 saved banners, including retained banners. New banners use banner_image_id=0 and require desktop/mobile CDN URLs. Existing IDs merge changed fields; omitted banners and empty arrays retain saved images. Use the banner DELETE endpoint or MCP delete_banner for removal.",
            "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."
          },
          "banners_enabled": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "For product_list/product_slide. Optional; disabled on creation when omitted. Set 0 to hide banners without deleting their saved images. Omitted on update keeps the saved value."
          },
          "banners_interval": {
            "type": "integer",
            "minimum": 1,
            "description": "For product_list/product_slide. Required when banners_enabled=1. Insert each banner once after this many products; 2 inserts banners after products 2 and 4. Continues across product-list pagination."
          },
          "banners_desktop_columns": {
            "type": "integer",
            "enum": [
              1,
              2
            ],
            "description": "For product_list/product_slide. Module-wide desktop banner width in product spaces, default 1. Value 2 spans two products on screens >=992 px; smaller screens keep one space and use the mobile image. Recommended wide desktop artwork: 1800x1200 px (3:2), transformed to 900x600. Mobile/tablet: 900x1200 px, transformed to 450x600. Omitted on update preserves the saved value."
          }
        }
      },
      "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. For product_list/product_slide, recommended 900x1200 px (3:4), transformed to 450x600. With banners_desktop_columns=2, desktop artwork is 1800x1200 px (3:2), transformed to 900x600; mobile/tablet stays 450x600. Cropped to product row height."
          },
          "image_mob": {
            "type": "string",
            "format": "uri",
            "description": "Mobile image URL matching the configured CDN. For product_list/product_slide, recommended 900x1200 px (3:4), transformed to 450x600. With banners_desktop_columns=2, desktop artwork is 1800x1200 px (3:2), transformed to 900x600; mobile/tablet stays 450x600. Cropped to product row height."
          },
          "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"
          },
          "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"
                },
                "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
                      }
                    }
                  }
                },
                "store_id": {
                  "type": "integer",
                  "readOnly": true,
                  "description": "Store identifier returned with this record. Determined by authentication; not a request field."
                }
              }
            }
          },
          "store_id": {
            "type": "integer",
            "readOnly": true,
            "description": "Store identifier returned with this record. Determined by authentication; not a request field."
          }
        }
      },
      "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"
          }
        }
      },
      "PointRankSettings": {
        "type": "object",
        "properties": {
          "min_usage": {
            "type": "number",
            "minimum": 0,
            "default": 0
          },
          "replace_logo": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "default": 0,
            "description": "Save the preference to replace the email logo with the rank image."
          },
          "reward_rates": {
            "type": "object",
            "description": "Reward percentage keyed by numeric customer-group ID.",
            "additionalProperties": {
              "type": "number"
            },
            "example": {
              "1": 5
            }
          }
        }
      },
      "PointRankDescriptionInput": {
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "PointRankWriteRequest": {
        "type": "object",
        "required": [
          "descriptions",
          "status",
          "points",
          "image",
          "settings"
        ],
        "properties": {
          "descriptions": {
            "type": "object",
            "description": "Rank descriptions keyed by accepted numeric language IDs.",
            "additionalProperties": {
              "$ref": "#/components/schemas/PointRankDescriptionInput"
            }
          },
          "status": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "points": {
            "type": "number",
            "minimum": 0,
            "description": "Reward total required for this rank. Default ranks remain at zero."
          },
          "image": {
            "type": "string",
            "format": "uri",
            "description": "Image URL matching the configured CDN URL pattern."
          },
          "settings": {
            "$ref": "#/components/schemas/PointRankSettings"
          }
        },
        "example": {
          "descriptions": {
            "1": {
              "name": "Gold",
              "description": ""
            }
          },
          "status": 1,
          "points": 1000,
          "image": "https://res.cloudinary.com/YOUR_CLOUD/image/upload/YOUR_IMAGE.png",
          "settings": {
            "min_usage": 0,
            "replace_logo": 0,
            "reward_rates": {
              "1": 5
            }
          }
        }
      },
      "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."
          }
        }
      },
      "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."
          },
          "banners_enabled": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "For product_list/product_slide. Optional; disabled on creation when omitted. Set 0 to hide banners without deleting their saved images. Omitted on update keeps the saved value."
          },
          "banners_interval": {
            "type": "integer",
            "minimum": 1,
            "description": "For product_list/product_slide. Required when banners_enabled=1. Insert each banner once after this many products; 2 inserts banners after products 2 and 4. Continues across product-list pagination."
          },
          "banners_desktop_columns": {
            "type": "integer",
            "enum": [
              1,
              2
            ],
            "description": "For product_list/product_slide. Module-wide desktop banner width in product spaces, default 1. Value 2 spans two products on screens >=992 px; smaller screens keep one space and use the mobile image. Recommended wide desktop artwork: 1800x1200 px (3:2), transformed to 900x600. Mobile/tablet: 900x1200 px, transformed to 450x600. Omitted on update preserves the saved value."
          }
        }
      },
      "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. For product_list/product_slide, recommended 900x1200 px (3:4), transformed to 450x600. With banners_desktop_columns=2, desktop artwork is 1800x1200 px (3:2), transformed to 900x600; mobile/tablet stays 450x600. Cropped to product row height."
              },
              "image_mob": {
                "type": "string",
                "format": "uri",
                "description": "Mobile image URL matching the configured CDN. For product_list/product_slide, recommended 900x1200 px (3:4), transformed to 450x600. With banners_desktop_columns=2, desktop artwork is 1800x1200 px (3:2), transformed to 900x600; mobile/tablet stays 450x600. Cropped to product row height."
              },
              "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. For product_list/product_slide, recommended 900x1200 px (3:4), transformed to 450x600. With banners_desktop_columns=2, desktop artwork is 1800x1200 px (3:2), transformed to 900x600; mobile/tablet stays 450x600. Cropped to product row height."
              },
              "image_mob": {
                "type": "string",
                "format": "uri",
                "description": "Mobile image URL matching the configured CDN. For product_list/product_slide, recommended 900x1200 px (3:4), transformed to 450x600. With banners_desktop_columns=2, desktop artwork is 1800x1200 px (3:2), transformed to 900x600; mobile/tablet stays 450x600. Cropped to product row height."
              },
              "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": "For code=banners, product_list or product_slide. Product lists/sliders allow at most 2 saved banners, including retained banners. New banners use banner_image_id=0 and require desktop/mobile CDN URLs. Existing IDs merge changed fields; omitted banners and empty arrays retain saved images. Use the banner DELETE endpoint or MCP delete_banner 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."
          },
          "mobile_nav_style": {
            "type": "string",
            "enum": [
              "side",
              "bottom"
            ]
          },
          "theme_font": {
            "type": "string",
            "enum": [
              "opensanshebrew",
              "assistant",
              "alef",
              "rubik",
              "david_libre",
              "miriam_libre",
              "heebo"
            ]
          },
          "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": "array",
            "items": {
              "type": "string",
              "enum": [
                "opensanshebrew",
                "assistant",
                "alef",
                "rubik",
                "david_libre",
                "miriam_libre",
                "heebo"
              ]
            }
          }
        }
      },
      "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"
          }
        }
      },
      "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. See the authentication guide for setup and required headers."
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Catalog",
      "tags": [
        "Products",
        "Categories",
        "Products options",
        "Custom field"
      ]
    },
    {
      "name": "Sales and customers",
      "tags": [
        "Orders",
        "Customers",
        "Custom orders",
        "Payment links",
        "Coupons",
        "Points"
      ]
    },
    {
      "name": "Storefront",
      "tags": [
        "Store design",
        "Modules",
        "Store themes",
        "Dynamic fields"
      ]
    },
    {
      "name": "Shipping and automation",
      "tags": [
        "Shipping",
        "Webhook",
        "Misc"
      ]
    }
  ]
}
