{
  "openapi" : "3.0.0",
  "info" : {
    "title" : "Zid API",
    "description" : "# Overview\nZid Catalog APIs allows you to use Zid platform as a backend for your custom store front-end.\n\n# Authentication\nZid API uses Bearer Authentication, to obtain your key, please contact info@zid.sa.\nOnce you have your key, you can set in the \"Authorization\" header as follows:\n```\nAuthorization: Bearer <YOUR_TOKEN>\n```\n\n<br/>\n\nAll API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.\n\n# Base URL and versioning\nAPI base URL is **api.zid.sa**.\n\nAPI version is specified at the end of the after the base URL. e.g., api.zid.sa/v2/\n\nThe latest version is **v2** older versions are **deprecated** and should not be used.\n\n# Error Codes\n**TODO**\n\n# Rate limit\n\nZid implements the [Leaky Bucket](https://en.wikipedia.org/wiki/Leaky_bucket) algorithm for rate limiting, which means requests will be served and when you hit the bucket limit requests may be throttled or dropped.\n\n# Cart Flow\n\n- Create a cart session, which will return a token that identifies the cart in all future requests.\n- Add products.\n- Add a shipping address.\n- Choose a delivery method.\n- Choose a payment method.\n- Verify, which will return a summary of the order.\n- Checkout, which will return an invoice.\n\n# Changelog\nAll notable changes to this API will be documented in this section.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\n\n## [2.0.02] - 2018-12-27\n### Added\n- View category endpoint: (View Category)[https://docs.zid.sa/#1e6a0a98-0566-4079-ac14-b2e4bcd850ef]\n\n### Removed\n- \"descriptions\" key has been removed from product objects.\n\n## [2.0.01] - 2018-12-27\n### Added\n- \"category\" key has been added to the response of [Category Products List](https://docs.zid.sa/#4cc3a087-c1d9-4fa9-934e-635189adaf7d)\n\n## [2.0.00] - 2018-12-19\n### Added\n- Multi Languages.\n- Multi Currencies.\n- Subcategories.\n",
    "version" : "1"
  },
  "servers" : [ {
    "url" : "https://api.zid.dev/app/v1"
  }, {
    "url" : "http://api.zid.dev/app/v1"
  } ],
  "security" : [ {
    "default" : [ ]
  } ],
  "paths" : {
    "/managers/account/profile" : {
      "get" : {
        "tags" : [ "Account" ],
        "summary" : "Profile",
        "description" : "Get the current's user data with <ul> <li>Store detailed data.</li> <li>User's role.</li> <li>User's permissions.</li> </ul> No need to pass any parameter, the system will recognize the user via X-MANAGER-Token.\n",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "Profile --meta SEO tags in reponse",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-profile"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/vat" : {
      "get" : {
        "tags" : [ "Stores" ],
        "summary" : "Get List of Vat Settings",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of Vat Settings",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-all-vat"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/inventory-addresses" : {
      "get" : {
        "tags" : [ "Stores" ],
        "summary" : "Get Inventory Addresses",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of all Inventory Addresses in your store",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-all-inventory"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/orders/{order-id}/change-order-status" : {
      "post" : {
        "tags" : [ "Orders" ],
        "summary" : "Update Order By Id",
        "description" : "Please consider that if the order is shipped through an integrated shipping company, then we can't update the order status from ready to new.\n  <br>\nTo send the order to a shipping company, you will need to change the order status to ready, and to send `inventory_address_id` value with your request, it's a must since shipping companies need to know which pickup point to get the package from. <br> To get a list of your current inventory addresses along with their ids, please check the inventory addresses API endpoint.\n\nList of statuses:\n(new, preparing, ready, indelivery, delivered, cancelled)",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "number"
          }
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "required" : [ "inventory_address_id", "order_status" ],
                "type" : "object",
                "properties" : {
                  "order_status" : {
                    "type" : "string"
                  },
                  "inventory_address_id" : {
                    "type" : "string"
                  },
                  "tracking_number" : {
                    "type" : "string"
                  },
                  "tracking_url" : {
                    "type" : "string"
                  },
                  "waybill_url" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Single Order Updated"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/customers" : {
      "get" : {
        "tags" : [ "Customers" ],
        "summary" : "List of Customers",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "10"
          }
        }, {
          "name" : "per_page",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "5"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of customers",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-all-customers"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/attributes" : {
      "get" : {
        "tags" : [ "Products Attributes" ],
        "summary" : "Get Product Attributes",
        "parameters" : [ {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of your prdouct attributes",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-attributes"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "post" : {
        "tags" : [ "Products Attributes" ],
        "summary" : "Creates an new attribute",
        "parameters" : [ {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "requestBody" : {
          "description" : "The Request Body that contain the new attribute",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "object",
                    "properties" : {
                      "en" : {
                        "type" : "string"
                      },
                      "ar" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "List of attributes by ID",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-post-attribute"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/attributes/{Attribute-Id}/presets" : {
      "get" : {
        "tags" : [ "Products Attribute Presets" ],
        "summary" : "Get attribute presets",
        "parameters" : [ {
          "name" : "Attribute-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of attribute presets",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-presets"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "post" : {
        "tags" : [ "Products Attribute Presets" ],
        "summary" : "Create Attribute Preset",
        "parameters" : [ {
          "name" : "Attribute-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        } ],
        "requestBody" : {
          "description" : "The Request Body that contain the new attribute preset",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "value" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string"
                      },
                      "en" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Json Represent The New Attribute Preset Values.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-post-presets"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/{Product-Id}/categories/{Category-Id}" : {
      "delete" : {
        "tags" : [ "Product Categories" ],
        "summary" : "Delete a product from a category.",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "794e96c3-227e-4abc-9521-725d147f1e61"
          }
        }, {
          "name" : "Category-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        } ],
        "responses" : {
          "200" : {
            "description" : "Product Deleted Successfully From The Given Category"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/categories/{Category-Id}/update" : {
      "post" : {
        "tags" : [ "Categories" ],
        "summary" : "Update Store Category",
        "parameters" : [ {
          "name" : "Category-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "540"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "required" : [ "description[ar]", "description[en]", "name[ar]", "name[en]" ],
                "type" : "object",
                "properties" : {
                  "name[ar]" : {
                    "type" : "string"
                  },
                  "name[en]" : {
                    "type" : "string"
                  },
                  "description[ar]" : {
                    "type" : "string"
                  },
                  "description[en]" : {
                    "type" : "string"
                  },
                  "_method" : {
                    "type" : "string",
                    "example" : "put"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Single Category Updated",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-single-category"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/{Product-Id}/notifications" : {
      "post" : {
        "tags" : [ "Products" ],
        "summary" : "Add Availability Notification",
        "description" : "Register an email as waiting for a product to be notified whenever the product is in back stock.",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "107c2ff5-5c70-4749-b9bd-56dc1793013b"
          }
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "required" : [ "email", "language" ],
                "type" : "object",
                "properties" : {
                  "email" : {
                    "type" : "string"
                  },
                  "language" : {
                    "type" : "string",
                    "example" : "ar"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Notification Added"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/{Product-Id}" : {
      "get" : {
        "tags" : [ "Products" ],
        "summary" : "Retreives a single products.",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "107c2ff5-5c70-4749-b9bd-56dc1793013b"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "responses" : {
          "200" : {
            "description" : "Single Product",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-single-product"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "delete" : {
        "tags" : [ "Products" ],
        "summary" : "Delete a single products.",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "107c2ff5-5c70-4749-b9bd-56dc1793013b"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "responses" : {
          "200" : {
            "description" : "Product Deleted"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "patch" : {
        "tags" : [ "Products" ],
        "summary" : "Update an existing product",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "107c2ff5-5c70-4749-b9bd-56dc1793013b"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "requestBody" : {
          "description" : "New product data",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "weight" : {
                    "type" : "object",
                    "properties" : {
                      "unit" : {
                        "type" : "string"
                      },
                      "value" : {
                        "type" : "integer"
                      }
                    }
                  },
                  "keywords" : {
                    "type" : "array",
                    "example" : [ "apps" ],
                    "items" : { }
                  },
                  "requires_shipping" : {
                    "type" : "boolean"
                  },
                  "sku" : {
                    "type" : "string"
                  },
                  "cost" : {
                    "type" : "string"
                  },
                  "quantity" : {
                    "type" : "integer"
                  },
                  "is_infinite" : {
                    "type" : "boolean"
                  },
                  "name" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string"
                      },
                      "en" : {
                        "type" : "string"
                      }
                    }
                  },
                  "description" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string"
                      },
                      "en" : {
                        "type" : "string"
                      }
                    }
                  },
                  "price" : {
                    "type" : "string"
                  },
                  "id" : {
                    "type" : "string"
                  },
                  "is_draft" : {
                    "type" : "boolean"
                  },
                  "is_published" : {
                    "type" : "boolean"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Updated product information",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-single-product"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/{Product-Id}/images/{Image-Id}" : {
      "delete" : {
        "tags" : [ "Products Images" ],
        "summary" : "Delete Single Image From a Product",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "name" : "Image-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "responses" : {
          "200" : {
            "description" : "single image to a product added.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-images"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "patch" : {
        "tags" : [ "Products Images" ],
        "summary" : "Update Single Image Order In A Product",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "name" : "Image-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "requestBody" : {
          "description" : "The new display order for this image",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "display_order" : {
                    "type" : "number"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Edited image data",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-patch-image-order"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/attributes/{Attribute-Id}" : {
      "get" : {
        "tags" : [ "Products Attributes" ],
        "summary" : "Retrieve a single attribute",
        "parameters" : [ {
          "name" : "Attribute-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "responses" : {
          "200" : {
            "description" : "Single attribute by ID",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-post-attribute"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "delete" : {
        "tags" : [ "Products Attributes" ],
        "summary" : "Delete a single attribute",
        "parameters" : [ {
          "name" : "Attribute-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "responses" : {
          "200" : {
            "description" : "Delete of attributes by ID",
            "content" : {
              "application/json" : {
                "schema" : { }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "patch" : {
        "tags" : [ "Products Attributes" ],
        "summary" : "Updates a single attribute",
        "parameters" : [ {
          "name" : "Attribute-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "requestBody" : {
          "description" : "The Request Body that contain the new attribute values",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "object"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "List of attributes by ID"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products" : {
      "get" : {
        "tags" : [ "Products" ],
        "summary" : "Get all products",
        "parameters" : [ {
          "name" : "page_size",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "10"
          }
        }, {
          "name" : "page",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "5"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of products",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-all-products"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "post" : {
        "tags" : [ "Products" ],
        "summary" : "Create a new product",
        "description" : "Creates a stand-alone product, to generate options (variants) refer to Add product variants endpoint.",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "requestBody" : {
          "description" : "New product data",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cost" : {
                    "type" : "string"
                  },
                  "quantity" : {
                    "type" : "string"
                  },
                  "keywords" : {
                    "type" : "array",
                    "example" : [ "testables" ],
                    "items" : { }
                  },
                  "name" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string"
                      },
                      "en" : {
                        "type" : "string"
                      }
                    }
                  },
                  "description" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string",
                        "example" : "[\"<h1>من الممكن وضع تنسيقات هنا</h1>\"]"
                      },
                      "en" : {
                        "type" : "string",
                        "example" : "[\"<h1>You can add HMTL here</h1>\"]"
                      }
                    }
                  },
                  "price" : {
                    "type" : "string"
                  },
                  "sale_price" : {
                    "type" : "string"
                  },
                  "weight" : {
                    "type" : "object",
                    "properties" : {
                      "unit" : {
                        "type" : "string"
                      },
                      "value" : {
                        "type" : "integer"
                      }
                    }
                  },
                  "is_published" : {
                    "type" : "boolean"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Created product",
            "content" : {
              "application/json; charset=utf-8" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-single-product"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "patch" : {
        "tags" : [ "Products" ],
        "summary" : "Bulk update products via ID or SKU",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "requestBody" : {
          "description" : "List of products with ID/SKU and new data",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "integer"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Updated bulk of products information"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/ordering/" : {
      "post" : {
        "tags" : [ "Product Sorting" ],
        "summary" : "Sort List Of Products",
        "description" : "Sorts a list of `products`, accepts an ordered list of products ids in products, can also be used to sort products list in a `category` when the category id is passed on category field the body.",
        "parameters" : [ {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        } ],
        "requestBody" : {
          "description" : "List of products with given category ID",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "products" : {
                    "type" : "array",
                    "example" : [ "d22fb4a6-cbcf-464c-8877-6cbf3df52056", "d22fb4a6-cbcf-46g5-8877-6c367f52053" ],
                    "items" : { }
                  },
                  "category" : {
                    "type" : "integer"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Products Sorted Successfully In The Given Category"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "delete" : {
        "tags" : [ "Product Sorting" ],
        "summary" : "Reset the manual sorting of all product",
        "parameters" : [ {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        } ],
        "responses" : {
          "200" : {
            "description" : "Products Sorted Successfully In The Given Category"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/{Product-Id}/custom_options_fields/" : {
      "post" : {
        "tags" : [ "Product Options" ],
        "summary" : "Insert Custom Options To a Product",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "794e96c3-227e-4abc-9521-725d147f1e61"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        } ],
        "requestBody" : {
          "description" : "Insert Custom Options To a Product",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "label" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string"
                      }
                    }
                  },
                  "choices" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "ar" : {
                          "type" : "string"
                        },
                        "en" : {
                          "type" : "string"
                        },
                        "price" : {
                          "type" : "string"
                        }
                      }
                    }
                  },
                  "hint" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string"
                      },
                      "en" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Added",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-post-product-option-custom"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/orders" : {
      "get" : {
        "tags" : [ "Orders" ],
        "summary" : "List of Orders",
        "description" : "Get order list by filters\n",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "name" : "payload_type",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "page",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "number"
          }
        }, {
          "name" : "per_page",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "number"
          }
        }, {
          "name" : "order_status",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "new",
            "enum" : [ "new", "preparing", "ready", "indelivery", "delivered", "canceled" ]
          }
        }, {
          "name" : "payment_method",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "zid_cod",
            "enum" : [ "zid_cod", "zid_bank_transfer", "zid_cop", "zid_credit_card" ]
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "number"
          }
        }, {
          "name" : "date_from",
          "in" : "query",
          "description" : "example: '2020-01-01T00:00:00.000+0000'",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "date_to",
          "in" : "query",
          "description" : "example: '2020-01-01T00:00:00.000+0000'",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "asc",
            "enum" : [ "asc", "desc" ]
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "list of orders with the given filters",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-all-orders"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/abandoned-carts" : {
      "get" : {
        "tags" : [ "Abandoned Carts" ],
        "summary" : "List of Abandoned Carts",
        "description" : "Get Abandoned Carts list by filters\n",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "name" : "page",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "number"
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "number"
          }
        }, {
          "name" : "phase",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "new",
            "enum" : [ "new", "login", "shipping_address", "shipping_method", "payment_method", "verification", "completed" ]
          }
        }, {
          "name" : "search_term",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "products_count",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "number"
          }
        }, {
          "name" : "date_from",
          "in" : "query",
          "description" : "example: '2021-01-01'",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "date_to",
          "in" : "query",
          "description" : "example: '2021-01-01'",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "cart_total",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "number"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "List of Abandoned Carts with the given filters"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/abandoned-carts/{id}" : {
      "get" : {
        "tags" : [ "Abandoned Carts" ],
        "summary" : "Get Abandoned Cart details",
        "parameters" : [ {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Will get Abandoned Cart details from the given ID"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/export/" : {
      "post" : {
        "tags" : [ "Prodcuts Export" ],
        "summary" : "Send All Products in CSV for Owner Email",
        "parameters" : [ {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "responses" : {
          "200" : {
            "description" : "All Products Sent to the Owner Email"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/categories/{Id}/publishing" : {
      "post" : {
        "tags" : [ "Categories" ],
        "summary" : "Update Category Publishing",
        "parameters" : [ {
          "name" : "Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "540"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "required" : [ "is_published" ],
                "type" : "object",
                "properties" : {
                  "is_published" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Publishing Changed"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/{Product-Id}/options" : {
      "post" : {
        "tags" : [ "Product Options" ],
        "summary" : "Add Product Variantes",
        "description" : "This endpoint converts a product from stand-alone into a parent product (if it wasn't already a parent) and creates variants as children, to create variants you need to first create product attributes for the store using the `Create attribute` endpoint, and then use the attribute slug and define choices for them here. for example, if attribute is size choices are `small`, `big`, ...etc. Each choice is an object that accepts values in different languages, only English and Arabic are supported for now. This endpoint accepts an array of attributes and their choices, the variants will be generated using the cartesian product of these attribute values.",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "794e96c3-227e-4abc-9521-725d147f1e61"
          }
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        } ],
        "requestBody" : {
          "description" : "Add Product Variantes",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object"
                    }
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Product Variants Added Successfully"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/inventory-addresses/{Inventory-Id}/view" : {
      "get" : {
        "tags" : [ "Stores" ],
        "summary" : "Get Inventory Address Based On ID",
        "parameters" : [ {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "name" : "Inventory-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "{{Inventory-Id}}"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Will get inventory address from your store from the given ID"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/{Product-Id}/images" : {
      "get" : {
        "tags" : [ "Products Images" ],
        "summary" : "Lists the images of a product.",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of attributes by ID",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-images"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "post" : {
        "tags" : [ "Products Images" ],
        "summary" : "Adds a single image to a product",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "required" : [ "alt_text", "image" ],
                "type" : "object",
                "properties" : {
                  "image" : {
                    "type" : "string",
                    "format" : "binary"
                  },
                  "alt_text" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "."
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/categories/{Category-Id}/view" : {
      "get" : {
        "tags" : [ "Categories" ],
        "summary" : "Single Category",
        "parameters" : [ {
          "name" : "Category-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "540"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "Single Category",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-single-category"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/categories/{Category-Id}/products/delete" : {
      "post" : {
        "tags" : [ "Categories" ],
        "summary" : "Delete Category Products",
        "parameters" : [ {
          "name" : "Category-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "540"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "required" : [ "products[]" ],
                "type" : "object",
                "properties" : {
                  "products[]" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Product/s Deleted"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/{Product-Id}/custom_user_input_fields/" : {
      "post" : {
        "tags" : [ "Product Options" ],
        "summary" : "Insert Custom User Input To a Product",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "794e96c3-227e-4abc-9521-725d147f1e61"
          }
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        } ],
        "requestBody" : {
          "description" : "Convert Product Into Parent Product",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "type" : {
                    "type" : "string"
                  },
                  "price" : {
                    "type" : "string"
                  },
                  "hint" : {
                    "type" : "object",
                    "properties" : {
                      "en" : {
                        "type" : "string"
                      },
                      "ar" : {
                        "type" : "string"
                      }
                    }
                  },
                  "label" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string"
                      },
                      "en" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Added",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-post-product-input-custom"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/import/" : {
      "post" : {
        "tags" : [ "Prodcuts Import" ],
        "summary" : "Send All Products in CSV for Owner Email",
        "description" : "Imports a CSV or xlsx file to store products. accepts a file, a dropbox folder link for images, and has an option `delete_old_products` to delete all store previous products upon successful import.",
        "parameters" : [ {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "required" : [ "file", "response_type" ],
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "string",
                    "format" : "binary"
                  },
                  "delete_old_products" : {
                    "type" : "boolean"
                  },
                  "response_type" : {
                    "type" : "string",
                    "example" : "json"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "All Products Sent to the Owner Email"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/account/third-parties/authorization-access-token" : {
      "get" : {
        "tags" : [ "Account" ],
        "summary" : "Third Party Access Token",
        "description" : "Get a manager token with a long lifespan (6 monthes), since regular manager tokens have a short lifespan and considered unreliable for a system to system integration.\n",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "Get a manager token with a long lifespan (6 monthes), since regular manager tokens have a short lifespan and considered unreliable for a system to system integration."
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/categories" : {
      "get" : {
        "tags" : [ "Categories" ],
        "summary" : "Get all categories",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of products",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-all-categories"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/customers/{Customer-Id}" : {
      "get" : {
        "tags" : [ "Customers" ],
        "summary" : "Customer by Id",
        "parameters" : [ {
          "name" : "Customer-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "Customer",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-single-customer"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/attributes/{Attribute-Id}/presets/{Preset-Id}" : {
      "delete" : {
        "tags" : [ "Products Attribute Presets" ],
        "summary" : "Delete an attribute preset",
        "parameters" : [ {
          "name" : "Attribute-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "name" : "Preset-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "794e96c3-227e-4abc-9521-725d147f1e61"
          }
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        } ],
        "responses" : {
          "200" : {
            "description" : "Preset Deleted Successfully"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "patch" : {
        "tags" : [ "Products Attribute Presets" ],
        "summary" : "Update Attribute Preset",
        "parameters" : [ {
          "name" : "Attribute-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "name" : "Preset-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "794e96c3-227e-4abc-9521-725d147f1e61"
          }
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        } ],
        "requestBody" : {
          "description" : "The Request Body that contain the new attribute preset",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "value" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string"
                      },
                      "en" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Json Represent The New Attribute Preset Values.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-post-presets"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/categories/add" : {
      "post" : {
        "tags" : [ "Categories" ],
        "summary" : "Create Store Category",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "required" : [ "description[ar]", "description[en]", "name[ar]", "name[en]" ],
                "type" : "object",
                "properties" : {
                  "name[ar]" : {
                    "type" : "string"
                  },
                  "name[en]" : {
                    "type" : "string"
                  },
                  "description[ar]" : {
                    "type" : "string"
                  },
                  "description[en]" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Added Category"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/sales-report/" : {
      "post" : {
        "tags" : [ "Prodcuts Export" ],
        "summary" : "Post Exported CSV Sheets",
        "parameters" : [ {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        } ],
        "requestBody" : {
          "description" : "Sends an exported Excel sheet of products sales report, can be filtered using order ids or statuses.",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "orders" : {
                    "type" : "array",
                    "example" : [ 271 ],
                    "items" : { }
                  },
                  "statuses" : {
                    "type" : "array",
                    "example" : [ "new", "preparing", "ready", "in_delivery", "delivered", "cancelled" ],
                    "items" : { }
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Sheet posted successfully"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/products/{Product-Id}/categories" : {
      "post" : {
        "tags" : [ "Product Categories" ],
        "summary" : "Add single product to particluar category",
        "parameters" : [ {
          "name" : "Product-Id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "794e96c3-227e-4abc-9521-725d147f1e61"
          }
        }, {
          "$ref" : "#/components/parameters/STORE-ID"
        }, {
          "$ref" : "#/components/parameters/ROLE"
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        } ],
        "requestBody" : {
          "description" : "The Category ID",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "integer",
                    "example" : 409
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Product Added Successfully To The Given Category",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-post-product-catigories"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/orders/{order-id}/view" : {
      "get" : {
        "tags" : [ "Orders" ],
        "summary" : "Order By Id",
        "description" : "Get a specific order by its id.\n",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "number"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Single Order",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-single-order"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/delivery-options" : {
      "get" : {
        "tags" : [ "Delivery Options" ],
        "summary" : "List of Delivery Option",
        "parameters" : [ {
          "name" : "payload_type",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "simple"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of Delivery Options",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-delivery-options"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/delivery-options/add" : {
      "post" : {
        "tags" : [ "Delivery Options" ],
        "summary" : "Add Shipping Option",
        "description" : "To Add Shipping Option To Store",
        "parameters" : [ {
          "name" : "X-MANAGER-TOKEN",
          "in" : "header",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "Accept-Language",
          "in" : "header",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "required" : [ "additional_weight", "base_weight", "cities[]", "cod_enabled", "cod_fee", "cost", "delivery_estimated_time_ar", "delivery_estimated_time_en", "is_customizable_weight_cost", "is_weight_enabled", "name" ],
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "description" : "The name of the option to be shown to customers",
                    "example" : "SMSA"
                  },
                  "cost" : {
                    "type" : "string",
                    "description" : "cost of the delivery to be shown to customers",
                    "example" : "20"
                  },
                  "cod_enabled" : {
                    "type" : "string",
                    "description" : "1 to enable 0 to disable"
                  },
                  "cod_fee" : {
                    "type" : "string",
                    "description" : "COD fee to be shown to customers"
                  },
                  "cities[]" : {
                    "type" : "string",
                    "description" : "The id of the city that enabled in this option  (note that each city should be in a diffrent parameter)"
                  },
                  "delivery_estimated_time_ar" : {
                    "type" : "string",
                    "description" : "Arabic delivery description to be shown to cutomers."
                  },
                  "delivery_estimated_time_en" : {
                    "type" : "string",
                    "description" : "English delivery description to be shown to cutomers."
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "ok"
          }
        },
        "security" : [ {
          "default" : [ "Shipping-Partners" ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/payment-methods" : {
      "get" : {
        "tags" : [ "Payment Methods" ],
        "summary" : "List of Payment Method",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of Payment Options",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-payment-methods"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/settings/countries" : {
      "get" : {
        "tags" : [ "Countries and Cities" ],
        "parameters" : [ ],
        "responses" : {
          "200" : {
            "description" : "ok"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/settings/cities/by-country-id/{country-id}" : {
      "get" : {
        "tags" : [ "Countries and Cities" ],
        "parameters" : [ {
          "name" : "country-id",
          "in" : "path",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : "184"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "ok"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/webhooks" : {
      "get" : {
        "tags" : [ "WebHook" ],
        "summary" : "List of Webhooks",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "List of all webhooks",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-get-all-webhooks"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "post" : {
        "tags" : [ "WebHook" ],
        "summary" : "Create a Webhook",
        "description" : "Supported webhooks events:\n<table>\n  <tr>\n    <td><b>Event</b></td>\n    <td><b>Source</b></td>\n  </tr>\n  <tr>\n    <td>order.create</td>\n    <td>Order</td>\n  </tr>\n  <tr>\n    <td>order.status.update</td>\n    <td>Order</td>\n  </tr>\n  <tr>\n    <td>product.create</td>\n    <td>Product</td>\n  </tr>\n  <tr>\n    <td>product.update</td>\n    <td>Product</td>\n  </tr>\n  <tr>\n    <td>product.publish</td>\n    <td>Product</td>\n  </tr>\n  <tr>\n    <td>product.delete</td>\n    <td>Product</td>\n  </tr>\n</table>\n",
        "parameters" : [ {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "event" : {
                    "type" : "string",
                    "example" : "order.create"
                  },
                  "target_url" : {
                    "type" : "string",
                    "example" : "http://zid.sa"
                  },
                  "original_id" : {
                    "type" : "integer",
                    "example" : 1
                  },
                  "subscriber" : {
                    "type" : "string"
                  },
                  "conditions" : {
                    "type" : "object",
                    "properties" : {
                      "status" : {
                        "type" : "string",
                        "example" : "ready"
                      },
                      "delivery_option_id" : {
                        "type" : "integer",
                        "example" : 0
                      }
                    }
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Created WebHook Information",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/200-post-create-webhook"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      },
      "delete" : {
        "tags" : [ "WebHook" ],
        "summary" : "Delete a Webhook By Original Id",
        "description" : "<ul>\n<li>Send both the original Id and the subscriber params to delete a signal webhook.</li>\n\n<li>Send only the subscriber param to delete all its webhooks.</li\n</ul>\n",
        "parameters" : [ {
          "name" : "original_id",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "1"
          }
        }, {
          "name" : "subscriber",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "Mock"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "WebHook Deleted"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/webhooks/subscriber" : {
      "delete" : {
        "tags" : [ "WebHook" ],
        "summary" : "Delete Webhooks By Subscriber",
        "description" : "Send only the subscriber param to delete all its webhooks.",
        "parameters" : [ {
          "name" : "subscriber",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "Mock"
          }
        }, {
          "$ref" : "#/components/parameters/X-MANAGER-TOKEN"
        }, {
          "$ref" : "#/components/parameters/Accept-Language"
        } ],
        "responses" : {
          "200" : {
            "description" : "WebHook/s Deleted"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/managers/store/coupons/add" : {
      "post" : {
        "tags" : [ "Coupons" ],
        "parameters" : [ {
          "name" : "X-MANAGER-TOKEN",
          "in" : "header",
          "required" : true,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "Accept-Language",
          "in" : "header",
          "required" : false,
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "required" : [ "apply_to", "code", "date_end", "date_start", "discount", "discount_type", "free_cod", "free_shipping", "name", "status", "total", "uses_customer", "uses_total" ],
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "description" : "The name of the Coupon",
                    "example" : "Coupon - 1"
                  },
                  "code" : {
                    "type" : "string",
                    "description" : "Coupon's code",
                    "example" : "ZidCoupon"
                  },
                  "discount_type" : {
                    "type" : "string",
                    "description" : "f to fixed amount p to percentge"
                  },
                  "discount" : {
                    "type" : "string",
                    "description" : "discount value"
                  },
                  "free_shipping" : {
                    "type" : "string",
                    "description" : "1 to make shipping free, 0 to disable free shipping."
                  },
                  "free_cod" : {
                    "type" : "string",
                    "description" : "1 to make free COD, 0 to disable free COD."
                  },
                  "total" : {
                    "type" : "string",
                    "description" : "min total to accept Coupon."
                  },
                  "date_start" : {
                    "type" : "string",
                    "description" : "Coupon start date 2021-01-01."
                  },
                  "date_end" : {
                    "type" : "string",
                    "description" : "Coupon end date 2021-02-01."
                  },
                  "uses_total" : {
                    "type" : "string",
                    "description" : "max number of Coupons."
                  },
                  "uses_customer" : {
                    "type" : "string",
                    "description" : "max usage number of Coupons per customer."
                  },
                  "apply_to" : {
                    "type" : "string",
                    "description" : "all, or products."
                  },
                  "apply_to_array[]" : {
                    "type" : "string",
                    "description" : "product id if apply_to = products"
                  },
                  "status" : {
                    "type" : "string",
                    "description" : "1 to be active coupon, 0 to be deactive.",
                    "example" : "1"
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "ok"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    }
  },
  "components" : {
    "schemas" : {
      "200-post-attribute" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "name" : {
            "type" : "object",
            "properties" : {
              "ar" : {
                "type" : "string"
              },
              "en" : {
                "type" : "string"
              }
            }
          },
          "slug" : {
            "type" : "string"
          }
        }
      },
      "200-get-attributes" : {
        "type" : "object",
        "properties" : {
          "count" : {
            "type" : "integer"
          },
          "next" : {
            "type" : "string"
          },
          "results" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "id" : {
                  "type" : "string"
                },
                "name" : {
                  "type" : "object",
                  "properties" : {
                    "ar" : {
                      "type" : "string"
                    },
                    "en" : {
                      "type" : "string"
                    }
                  }
                },
                "slug" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      },
      "200-get-images" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "name" : {
            "type" : "object",
            "properties" : {
              "ar" : {
                "type" : "string"
              },
              "en" : {
                "type" : "string"
              }
            }
          },
          "created_at" : {
            "type" : "string"
          },
          "sku" : {
            "type" : "string"
          },
          "slug" : {
            "type" : "string"
          },
          "price" : {
            "type" : "string"
          },
          "description" : {
            "type" : "string"
          },
          "varieties" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "is_draft" : {
                  "type" : "boolean"
                },
                "attributes" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "name" : {
                        "type" : "string"
                      },
                      "value" : {
                        "type" : "object",
                        "properties" : {
                          "ar" : {
                            "type" : "string"
                          },
                          "en" : {
                            "type" : "string"
                          }
                        }
                      }
                    }
                  }
                },
                "name" : {
                  "type" : "object",
                  "properties" : {
                    "ar" : {
                      "type" : "string"
                    }
                  }
                },
                "slug" : {
                  "type" : "string"
                },
                "quantity" : {
                  "type" : "integer"
                },
                "id" : {
                  "type" : "string"
                },
                "sku" : {
                  "type" : "string"
                },
                "description" : {
                  "type" : "string"
                },
                "price" : {
                  "type" : "string"
                }
              }
            }
          },
          "images" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "image" : {
                  "type" : "object",
                  "properties" : {
                    "small" : {
                      "type" : "string"
                    },
                    "large" : {
                      "type" : "string"
                    },
                    "thumbnail" : {
                      "type" : "string"
                    },
                    "full_size" : {
                      "type" : "string"
                    },
                    "medium" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          },
          "updated_at" : {
            "type" : "string"
          },
          "options" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "name" : {
                  "type" : "string"
                },
                "slug" : {
                  "type" : "string"
                }
              }
            }
          },
          "is_draft" : {
            "type" : "boolean"
          },
          "quantity" : {
            "type" : "integer"
          }
        }
      },
      "200-patch-image-order" : {
        "type" : "object",
        "properties" : {
          "image" : {
            "type" : "object",
            "properties" : {
              "small" : {
                "type" : "string"
              },
              "medium" : {
                "type" : "string"
              },
              "full_size" : {
                "type" : "string"
              },
              "thumbnail" : {
                "type" : "string"
              },
              "large" : {
                "type" : "string"
              }
            }
          },
          "display_order" : {
            "type" : "integer"
          },
          "id" : {
            "type" : "string"
          }
        }
      },
      "200-get-presets" : {
        "type" : "object",
        "properties" : {
          "count" : {
            "type" : "integer"
          },
          "results" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "id" : {
                  "type" : "string"
                },
                "value" : {
                  "type" : "object",
                  "properties" : {
                    "ar" : {
                      "type" : "string"
                    },
                    "en" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "200-post-presets" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "value" : {
            "type" : "object",
            "properties" : {
              "ar" : {
                "type" : "string"
              },
              "en" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-post-product-catigories" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "name" : {
            "type" : "object",
            "properties" : {
              "ar" : {
                "type" : "string"
              },
              "en" : {
                "type" : "string"
              }
            }
          },
          "description" : {
            "type" : "object",
            "properties" : {
              "ar" : {
                "type" : "string"
              },
              "en" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-post-product-input-custom" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          },
          "hint" : {
            "type" : "object",
            "properties" : {
              "en" : {
                "type" : "string"
              },
              "ar" : {
                "type" : "string"
              }
            }
          },
          "label" : {
            "type" : "object",
            "properties" : {
              "en" : {
                "type" : "string"
              },
              "ar" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-post-product-option-custom" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "type" : "string"
          },
          "hint" : {
            "type" : "object",
            "properties" : {
              "ar" : {
                "type" : "string"
              },
              "en" : {
                "type" : "string"
              }
            }
          },
          "label" : {
            "type" : "object",
            "properties" : {
              "ar" : {
                "type" : "string"
              }
            }
          },
          "id" : {
            "type" : "string"
          }
        }
      },
      "200-get-all-products" : {
        "type" : "object",
        "properties" : {
          "count" : {
            "type" : "integer"
          },
          "next" : {
            "type" : "string"
          },
          "results" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "name" : {
                  "type" : "object",
                  "properties" : {
                    "ar" : {
                      "type" : "string"
                    },
                    "en" : {
                      "type" : "string"
                    }
                  }
                },
                "is_draft" : {
                  "type" : "boolean"
                },
                "quantity" : {
                  "type" : "integer"
                },
                "created_at" : {
                  "type" : "string"
                },
                "slug" : {
                  "type" : "string"
                },
                "price" : {
                  "type" : "string"
                },
                "description" : {
                  "type" : "object",
                  "properties" : {
                    "en" : {
                      "type" : "string"
                    }
                  }
                },
                "updated_at" : {
                  "type" : "string"
                },
                "id" : {
                  "type" : "string"
                },
                "sku" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      },
      "200-get-single-product" : {
        "type" : "object",
        "properties" : {
          "slug" : {
            "type" : "string"
          },
          "options" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "slug" : {
                  "type" : "string"
                },
                "choices" : {
                  "type" : "array",
                  "example" : [ "اسود" ],
                  "items" : { }
                },
                "name" : {
                  "type" : "string"
                }
              }
            }
          },
          "images" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "image" : {
                  "type" : "object",
                  "properties" : {
                    "thumbnail" : {
                      "type" : "string"
                    },
                    "full_size" : {
                      "type" : "string"
                    },
                    "large" : {
                      "type" : "string"
                    },
                    "small" : {
                      "type" : "string"
                    },
                    "medium" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          },
          "id" : {
            "type" : "string"
          },
          "is_draft" : {
            "type" : "boolean"
          },
          "sku" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          },
          "price" : {
            "type" : "string"
          },
          "quantity" : {
            "type" : "integer"
          },
          "description" : {
            "type" : "string"
          },
          "varieties" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "name" : {
                  "type" : "string"
                },
                "description" : {
                  "type" : "string"
                },
                "price" : {
                  "type" : "string"
                },
                "quantity" : {
                  "type" : "integer"
                },
                "id" : {
                  "type" : "string"
                },
                "sku" : {
                  "type" : "string"
                },
                "slug" : {
                  "type" : "string"
                },
                "attributes" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "name" : {
                        "type" : "string"
                      },
                      "value" : {
                        "type" : "string"
                      }
                    }
                  }
                },
                "is_draft" : {
                  "type" : "boolean"
                }
              }
            }
          }
        }
      },
      "200-get-all-categories" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          },
          "status" : {
            "type" : "string"
          },
          "categories" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "id" : {
                  "type" : "integer"
                },
                "name" : {
                  "type" : "string"
                },
                "names" : {
                  "type" : "object",
                  "properties" : {
                    "ar" : {
                      "type" : "string"
                    }
                  }
                },
                "flat_name" : {
                  "type" : "string"
                },
                "is_published" : {
                  "type" : "boolean"
                },
                "SEO_category_title" : {
                  "type" : "string"
                },
                "SEO_category_description" : {
                  "type" : "string"
                },
                "url" : {
                  "type" : "string"
                },
                "products_count" : {
                  "type" : "integer"
                },
                "slug" : {
                  "type" : "string"
                }
              }
            }
          },
          "minimal_categories" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "id" : {
                  "type" : "integer"
                },
                "name" : {
                  "type" : "string"
                },
                "is_published" : {
                  "type" : "boolean"
                }
              }
            }
          },
          "products_count" : {
            "type" : "integer"
          }
        }
      },
      "200-get-single-category" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "categories" : {
            "type" : "object",
            "properties" : {
              "slug" : {
                "type" : "string"
              },
              "url" : {
                "type" : "string"
              },
              "products_count" : {
                "type" : "integer"
              },
              "SEO_category_title" : {
                "type" : "string"
              },
              "SEO_category_description" : {
                "type" : "string"
              },
              "names" : {
                "type" : "object",
                "properties" : {
                  "ar" : {
                    "type" : "string"
                  }
                }
              },
              "id" : {
                "type" : "integer"
              },
              "name" : {
                "type" : "string"
              },
              "flat_name" : {
                "type" : "string"
              },
              "is_published" : {
                "type" : "boolean"
              },
              "description" : {
                "type" : "object",
                "properties" : {
                  "en" : {
                    "type" : "string"
                  },
                  "ar" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-get-all-customers" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "customers" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "id" : {
                  "type" : "integer"
                },
                "city" : {
                  "type" : "object",
                  "properties" : {
                    "country_id" : {
                      "type" : "integer"
                    },
                    "country_name" : {
                      "type" : "string"
                    },
                    "ar_name" : {
                      "type" : "string"
                    },
                    "en_name" : {
                      "type" : "string"
                    },
                    "id" : {
                      "type" : "integer"
                    },
                    "name" : {
                      "type" : "string"
                    },
                    "priority" : {
                      "type" : "integer"
                    }
                  }
                },
                "pivotMobile" : {
                  "type" : "string"
                },
                "name" : {
                  "type" : "string"
                },
                "email" : {
                  "type" : "string"
                },
                "mobile" : {
                  "type" : "string"
                },
                "nickname" : {
                  "type" : "string"
                },
                "pivotEmail" : {
                  "type" : "string"
                },
                "order_counts" : {
                  "type" : "integer"
                }
              }
            }
          },
          "total_customers_count" : {
            "type" : "integer"
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-get-single-customer" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "customer" : {
            "type" : "object",
            "properties" : {
              "id" : {
                "type" : "integer"
              },
              "mobile" : {
                "type" : "string"
              },
              "name" : {
                "type" : "string"
              },
              "email" : {
                "type" : "string"
              }
            }
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-get-delivery-options" : {
        "type" : "object",
        "properties" : {
          "delivery_options" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "cities" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "updated_at" : {
                        "type" : "string"
                      },
                      "id" : {
                        "type" : "integer"
                      },
                      "country_id" : {
                        "type" : "integer"
                      },
                      "ar_name" : {
                        "type" : "string"
                      },
                      "created_at" : {
                        "type" : "string"
                      },
                      "priority" : {
                        "type" : "integer"
                      },
                      "pivot" : {
                        "type" : "object",
                        "properties" : {
                          "delivery_option_id" : {
                            "type" : "integer"
                          },
                          "city_id" : {
                            "type" : "integer"
                          }
                        }
                      },
                      "country" : {
                        "type" : "object",
                        "properties" : {
                          "iso_code_2" : {
                            "type" : "string"
                          },
                          "iso_code_3" : {
                            "type" : "string"
                          },
                          "address_format" : {
                            "type" : "string"
                          },
                          "postcode_required" : {
                            "type" : "integer"
                          },
                          "id" : {
                            "type" : "integer"
                          },
                          "country_code" : {
                            "type" : "string"
                          },
                          "status" : {
                            "type" : "integer"
                          },
                          "priority" : {
                            "type" : "integer"
                          },
                          "updated_at" : {
                            "type" : "string"
                          },
                          "name" : {
                            "type" : "string"
                          },
                          "ar_name" : {
                            "type" : "string"
                          }
                        }
                      },
                      "zone_id" : {
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "code" : {
                        "type" : "string"
                      },
                      "status" : {
                        "type" : "integer"
                      }
                    }
                  }
                },
                "id" : {
                  "type" : "integer"
                },
                "name" : {
                  "type" : "string"
                },
                "systemOptionCode" : {
                  "type" : "string"
                }
              }
            }
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-get-payment-methods" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "payload" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "enabled" : {
                  "type" : "integer"
                },
                "code" : {
                  "type" : "string"
                },
                "fees" : {
                  "type" : "integer"
                },
                "fees_string" : {
                  "type" : "string"
                },
                "type" : {
                  "type" : "string"
                },
                "name" : {
                  "type" : "string"
                },
                "icons" : {
                  "type" : "array",
                  "example" : [ "https://zid-testing.s3.eu-west-1.amazonaws.com/static/cod.png" ],
                  "items" : { }
                },
                "id" : {
                  "type" : "integer"
                }
              }
            }
          }
        }
      },
      "200-post-create-webhook" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "store_id" : {
            "type" : "string"
          },
          "original_id" : {
            "type" : "string"
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          },
          "id" : {
            "type" : "string"
          },
          "event" : {
            "type" : "string"
          },
          "target_url" : {
            "type" : "string"
          },
          "subscriber" : {
            "type" : "string"
          }
        }
      },
      "200-get-all-webhooks" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "event" : {
                  "type" : "string"
                },
                "target_url" : {
                  "type" : "string"
                },
                "store_id" : {
                  "type" : "string"
                },
                "original_id" : {
                  "type" : "string"
                },
                "subscriber" : {
                  "type" : "string"
                },
                "active" : {
                  "type" : "integer"
                },
                "id" : {
                  "type" : "string"
                }
              }
            }
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          },
          "status" : {
            "type" : "string"
          }
        }
      },
      "200-get-profile" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "user" : {
            "type" : "object",
            "properties" : {
              "old_id" : {
                "type" : "integer"
              },
              "mobile" : {
                "type" : "string"
              },
              "is_email_verified" : {
                "type" : "integer"
              },
              "intercom_user_hash" : {
                "type" : "string"
              },
              "roles" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "type" : "string"
                    },
                    "slug" : {
                      "type" : "string"
                    },
                    "name" : {
                      "type" : "string"
                    }
                  }
                }
              },
              "created_at" : {
                "type" : "string"
              },
              "name" : {
                "type" : "string"
              },
              "username" : {
                "type" : "string"
              },
              "business_location" : {
                "type" : "object",
                "properties" : {
                  "district" : {
                    "type" : "string"
                  },
                  "street" : {
                    "type" : "string"
                  },
                  "postal_code" : {
                    "type" : "string"
                  },
                  "additional_postal_code" : {
                    "type" : "string"
                  },
                  "country" : {
                    "type" : "object",
                    "properties" : {
                      "flag" : {
                        "type" : "string"
                      },
                      "id" : {
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "code" : {
                        "type" : "string"
                      },
                      "country_code" : {
                        "type" : "string"
                      }
                    }
                  },
                  "building_no" : {
                    "type" : "string"
                  },
                  "show_location" : {
                    "type" : "boolean"
                  },
                  "city" : {
                    "type" : "object",
                    "properties" : {
                      "country_name" : {
                        "type" : "string"
                      },
                      "ar_name" : {
                        "type" : "string"
                      },
                      "en_name" : {
                        "type" : "string"
                      },
                      "id" : {
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "priority" : {
                        "type" : "integer"
                      },
                      "country_id" : {
                        "type" : "integer"
                      }
                    }
                  }
                }
              },
              "permissions" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "slug" : {
                      "type" : "string"
                    },
                    "name" : {
                      "type" : "string"
                    },
                    "description" : {
                      "type" : "string"
                    },
                    "order" : {
                      "type" : "integer"
                    },
                    "id" : {
                      "type" : "string"
                    }
                  }
                }
              },
              "store" : {
                "type" : "object",
                "properties" : {
                  "username" : {
                    "type" : "string"
                  },
                  "languages" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "id" : {
                          "type" : "integer"
                        },
                        "name" : {
                          "type" : "string"
                        },
                        "code" : {
                          "type" : "string"
                        }
                      }
                    }
                  },
                  "icon" : {
                    "type" : "string"
                  },
                  "is_customers_email_mandatory" : {
                    "type" : "boolean"
                  },
                  "low_stock_quantity_limit" : {
                    "type" : "integer"
                  },
                  "terms_conditions" : {
                    "type" : "object",
                    "properties" : {
                      "terms_conditions_activate" : {
                        "type" : "integer"
                      },
                      "terms_conditions_title_ar" : {
                        "type" : "string"
                      }
                    }
                  },
                  "cover" : {
                    "type" : "string"
                  },
                  "maintenance_mode" : {
                    "type" : "boolean"
                  },
                  "facebook" : {
                    "type" : "string"
                  },
                  "twitter" : {
                    "type" : "string"
                  },
                  "website" : {
                    "type" : "string"
                  },
                  "one_signal_keys" : {
                    "type" : "object",
                    "properties" : {
                      "ios_app_id" : {
                        "type" : "string"
                      },
                      "app_id" : {
                        "type" : "string"
                      },
                      "app_key" : {
                        "type" : "string"
                      },
                      "android_package_name" : {
                        "type" : "string"
                      }
                    }
                  },
                  "privacy_policy" : {
                    "type" : "object",
                    "properties" : {
                      "title_ar" : {
                        "type" : "string"
                      },
                      "title_en" : {
                        "type" : "string"
                      },
                      "content_ar" : {
                        "type" : "string"
                      },
                      "content_en" : {
                        "type" : "string"
                      },
                      "active" : {
                        "type" : "integer"
                      }
                    }
                  },
                  "title" : {
                    "type" : "string"
                  },
                  "phone" : {
                    "type" : "string"
                  },
                  "email" : {
                    "type" : "string"
                  },
                  "currencies" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "id" : {
                          "type" : "integer"
                        },
                        "name" : {
                          "type" : "string"
                        },
                        "code" : {
                          "type" : "string"
                        },
                        "symbol" : {
                          "type" : "string"
                        },
                        "country" : {
                          "type" : "object",
                          "properties" : {
                            "country_code" : {
                              "type" : "string"
                            },
                            "flag" : {
                              "type" : "string"
                            },
                            "id" : {
                              "type" : "integer"
                            },
                            "name" : {
                              "type" : "string"
                            },
                            "code" : {
                              "type" : "string"
                            }
                          }
                        }
                      }
                    }
                  },
                  "language" : {
                    "type" : "object",
                    "properties" : {
                      "id" : {
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "code" : {
                        "type" : "string"
                      }
                    }
                  },
                  "maroof" : {
                    "type" : "string"
                  },
                  "complaints_and_suggestions" : {
                    "type" : "object",
                    "properties" : {
                      "complaints_and_suggestions_ar" : {
                        "type" : "string"
                      },
                      "complaints_and_suggestions_en" : {
                        "type" : "string"
                      },
                      "complaints_and_suggestions_title_ar" : {
                        "type" : "string"
                      },
                      "complaints_and_suggestions_title_en" : {
                        "type" : "string"
                      },
                      "complaints_and_suggestions_activation" : {
                        "type" : "string"
                      }
                    }
                  },
                  "subscription" : {
                    "type" : "object",
                    "properties" : {
                      "renewable_at" : {
                        "type" : "string"
                      },
                      "package_name" : {
                        "type" : "string"
                      },
                      "package_days_remaining" : {
                        "type" : "integer"
                      },
                      "policies" : {
                        "type" : "object",
                        "properties" : {
                          "shipping_smsa" : {
                            "type" : "boolean"
                          },
                          "subcategories" : {
                            "type" : "boolean"
                          },
                          "team_work" : {
                            "type" : "boolean"
                          },
                          "custom_css" : {
                            "type" : "boolean"
                          },
                          "discount_rules" : {
                            "type" : "boolean"
                          },
                          "new_order_sms" : {
                            "type" : "boolean"
                          },
                          "vat" : {
                            "type" : "boolean"
                          },
                          "rewaa_integeration" : {
                            "type" : "boolean"
                          },
                          "tap_payment" : {
                            "type" : "boolean"
                          },
                          "payment_gateways" : {
                            "type" : "boolean"
                          },
                          "beez_activation" : {
                            "type" : "boolean"
                          },
                          "coupons" : {
                            "type" : "boolean"
                          },
                          "google_analytics" : {
                            "type" : "boolean"
                          },
                          "google_tag_manager" : {
                            "type" : "boolean"
                          },
                          "stats_dashboard" : {
                            "type" : "boolean"
                          },
                          "store_setup" : {
                            "type" : "boolean"
                          },
                          "consultation" : {
                            "type" : "boolean"
                          },
                          "qoyod_integeration" : {
                            "type" : "boolean"
                          },
                          "cs_chat" : {
                            "type" : "boolean"
                          },
                          "zid_academy" : {
                            "type" : "boolean"
                          },
                          "zid_keys" : {
                            "type" : "boolean"
                          },
                          "shipox_activation" : {
                            "type" : "boolean"
                          },
                          "makhzny_activation" : {
                            "type" : "boolean"
                          },
                          "products_import" : {
                            "type" : "boolean"
                          },
                          "cs_emails" : {
                            "type" : "boolean"
                          },
                          "landing_page" : {
                            "type" : "boolean"
                          },
                          "unlimited_products" : {
                            "type" : "boolean"
                          },
                          "order_notifications" : {
                            "type" : "boolean"
                          },
                          "tamara" : {
                            "type" : "boolean"
                          },
                          "mazeed" : {
                            "type" : "boolean"
                          },
                          "fulfillment_services" : {
                            "type" : "boolean"
                          },
                          "third_party_token" : {
                            "type" : "boolean"
                          },
                          "daftra_integeration" : {
                            "type" : "boolean"
                          },
                          "custom_domain" : {
                            "type" : "boolean"
                          },
                          "discounts" : {
                            "type" : "boolean"
                          },
                          "free_custom_domain" : {
                            "type" : "boolean"
                          },
                          "google_maps" : {
                            "type" : "boolean"
                          },
                          "snapchat_pixel" : {
                            "type" : "boolean"
                          },
                          "themes" : {
                            "type" : "boolean"
                          },
                          "mkhdoom_activation" : {
                            "type" : "boolean"
                          },
                          "mobile_apps" : {
                            "type" : "boolean"
                          },
                          "extra_pages" : {
                            "type" : "boolean"
                          },
                          "facebook_pixel" : {
                            "type" : "boolean"
                          },
                          "partners" : {
                            "type" : "boolean"
                          },
                          "sender_email" : {
                            "type" : "boolean"
                          },
                          "shipping_aramex" : {
                            "type" : "boolean"
                          },
                          "sms_campaigns" : {
                            "type" : "boolean"
                          },
                          "zapier_integeration" : {
                            "type" : "boolean"
                          }
                        }
                      },
                      "status" : {
                        "type" : "string"
                      },
                      "trial" : {
                        "type" : "object",
                        "properties" : {
                          "is_trial" : {
                            "type" : "boolean"
                          },
                          "was_trial" : {
                            "type" : "boolean"
                          }
                        }
                      },
                      "deletion_days_remaining" : {
                        "type" : "integer"
                      },
                      "is_warning" : {
                        "type" : "boolean"
                      },
                      "is_renewable" : {
                        "type" : "boolean"
                      },
                      "expired_at" : {
                        "type" : "string"
                      },
                      "package_code" : {
                        "type" : "string"
                      },
                      "time_frames" : {
                        "type" : "object",
                        "properties" : {
                          "active_through" : {
                            "type" : "object",
                            "properties" : {
                              "from" : {
                                "type" : "string"
                              },
                              "to" : {
                                "type" : "string"
                              }
                            }
                          },
                          "suspended_through" : {
                            "type" : "object",
                            "properties" : {
                              "from" : {
                                "type" : "string"
                              },
                              "to" : {
                                "type" : "string"
                              }
                            }
                          }
                        }
                      },
                      "is_expired" : {
                        "type" : "boolean"
                      },
                      "subscribed_at" : {
                        "type" : "string"
                      }
                    }
                  },
                  "commercial_registration_number_activation" : {
                    "type" : "string"
                  },
                  "logos" : {
                    "type" : "object",
                    "properties" : {
                      "ar" : {
                        "type" : "string"
                      },
                      "en" : {
                        "type" : "string"
                      }
                    }
                  },
                  "sms_campaigns_balance" : {
                    "type" : "integer"
                  },
                  "category" : {
                    "type" : "object",
                    "properties" : {
                      "id" : {
                        "type" : "integer"
                      },
                      "industry_id" : {
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      }
                    }
                  },
                  "is_restock_cancelled_orders_enabled" : {
                    "type" : "boolean"
                  },
                  "is_low_stock_label_enabled" : {
                    "type" : "boolean"
                  },
                  "store_business_data" : {
                    "type" : "object",
                    "properties" : {
                      "employee_no" : {
                        "type" : "integer"
                      },
                      "commercial_register_copy" : {
                        "type" : "string"
                      },
                      "civil_id" : {
                        "type" : "integer"
                      },
                      "business_place_status" : {
                        "type" : "string"
                      },
                      "has_branches" : {
                        "type" : "integer"
                      },
                      "branch_no" : {
                        "type" : "integer"
                      },
                      "business_type" : {
                        "type" : "string"
                      },
                      "business_corporate_name" : {
                        "type" : "string"
                      },
                      "email" : {
                        "type" : "string"
                      }
                    }
                  },
                  "commercial_registration_number" : {
                    "type" : "string"
                  },
                  "sitemap_url" : {
                    "type" : "string"
                  },
                  "instagram" : {
                    "type" : "string"
                  },
                  "sms_campaigns_sender_name" : {
                    "type" : "string"
                  },
                  "uuid" : {
                    "type" : "string"
                  },
                  "snapchat" : {
                    "type" : "string"
                  },
                  "industry" : {
                    "type" : "object",
                    "properties" : {
                      "id" : {
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      }
                    }
                  },
                  "url" : {
                    "type" : "string"
                  },
                  "logo" : {
                    "type" : "string"
                  },
                  "has_new_products_service" : {
                    "type" : "boolean"
                  },
                  "refund_exchange_policy" : {
                    "type" : "object",
                    "properties" : {
                      "refund_exchange_policy_activation" : {
                        "type" : "string"
                      },
                      "refund_exchange_policy_ar" : {
                        "type" : "string"
                      },
                      "refund_exchange_policy_title_ar" : {
                        "type" : "string"
                      }
                    }
                  },
                  "id" : {
                    "type" : "integer"
                  },
                  "ssl" : {
                    "type" : "string"
                  },
                  "currency" : {
                    "type" : "object",
                    "properties" : {
                      "country" : {
                        "type" : "object",
                        "properties" : {
                          "name" : {
                            "type" : "string"
                          },
                          "code" : {
                            "type" : "string"
                          },
                          "country_code" : {
                            "type" : "string"
                          },
                          "flag" : {
                            "type" : "string"
                          },
                          "id" : {
                            "type" : "integer"
                          }
                        }
                      },
                      "id" : {
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "code" : {
                        "type" : "string"
                      },
                      "symbol" : {
                        "type" : "string"
                      }
                    }
                  },
                  "theme" : {
                    "type" : "object",
                    "properties" : {
                      "description" : {
                        "type" : "string"
                      },
                      "images" : {
                        "type" : "array",
                        "example" : [ "https://zid-testing.s3-accelerate.amazonaws.com/public/default/themes/default/1.png" ],
                        "items" : { }
                      },
                      "id" : {
                        "type" : "integer"
                      },
                      "code" : {
                        "type" : "string"
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "main_image" : {
                        "type" : "string"
                      }
                    }
                  },
                  "meta_description" : {
                    "type" : "string"
                  },
                  "meta_title" : {
                    "type" : "string"
                  },
                  "license" : {
                    "type" : "object",
                    "properties" : {
                      "license_ar" : {
                        "type" : "string"
                      },
                      "license_en" : {
                        "type" : "string"
                      },
                      "license_title_ar" : {
                        "type" : "string"
                      },
                      "license_title_en" : {
                        "type" : "string"
                      },
                      "license_activation" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              },
              "id" : {
                "type" : "integer"
              },
              "uuid" : {
                "type" : "string"
              },
              "email" : {
                "type" : "string"
              },
              "extra_user_settings" : {
                "type" : "object",
                "properties" : {
                  "work_corporation_status" : {
                    "type" : "boolean"
                  },
                  "corporation_name" : {
                    "type" : "string"
                  },
                  "birth_date" : {
                    "type" : "string"
                  },
                  "country_id" : {
                    "type" : "integer"
                  },
                  "city_id" : {
                    "type" : "integer"
                  }
                }
              }
            }
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-get-all-vat" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "tax_settings" : {
            "type" : "object",
            "properties" : {
              "countries" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "type" : "string"
                    },
                    "country" : {
                      "type" : "object",
                      "properties" : {
                        "id" : {
                          "type" : "integer"
                        },
                        "name" : {
                          "type" : "object",
                          "properties" : {
                            "ar" : {
                              "type" : "string"
                            },
                            "en" : {
                              "type" : "string"
                            }
                          }
                        },
                        "iso_code_2" : {
                          "type" : "string"
                        },
                        "iso_code_3" : {
                          "type" : "string"
                        }
                      }
                    },
                    "tax_percentage" : {
                      "type" : "integer"
                    },
                    "vat_number" : {
                      "type" : "string"
                    },
                    "tax_registration_certificate_copy" : {
                      "type" : "string"
                    }
                  }
                }
              },
              "can_use_vat" : {
                "type" : "boolean"
              },
              "vat_activate" : {
                "type" : "boolean"
              },
              "is_vat_self_paid" : {
                "type" : "boolean"
              },
              "is_vat_included_in_product_price" : {
                "type" : "boolean"
              },
              "is_shipping_fee_included_in_vat" : {
                "type" : "boolean"
              },
              "other_countries_tax_percentage" : {
                "type" : "integer"
              }
            }
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-get-all-inventory" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "inventory_addresses" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "id" : {
                  "type" : "integer"
                },
                "city" : {
                  "type" : "object",
                  "properties" : {
                    "country_name" : {
                      "type" : "string"
                    },
                    "ar_name" : {
                      "type" : "string"
                    },
                    "en_name" : {
                      "type" : "string"
                    },
                    "id" : {
                      "type" : "integer"
                    },
                    "name" : {
                      "type" : "string"
                    },
                    "priority" : {
                      "type" : "integer"
                    },
                    "country_id" : {
                      "type" : "integer"
                    }
                  }
                },
                "street" : {
                  "type" : "string"
                },
                "is_pickup_option" : {
                  "type" : "boolean"
                },
                "extra_data" : {
                  "type" : "object",
                  "properties" : {
                    "zid_front_point" : {
                      "type" : "object",
                      "properties" : {
                        "pickupPointId" : {
                          "type" : "string"
                        }
                      }
                    }
                  }
                },
                "name" : {
                  "type" : "string"
                },
                "postal_code" : {
                  "type" : "string"
                },
                "coordinates" : {
                  "type" : "object",
                  "properties" : {
                    "lat" : {
                      "type" : "integer"
                    },
                    "lon" : {
                      "type" : "integer"
                    }
                  }
                },
                "cop_enabled" : {
                  "type" : "boolean"
                }
              }
            }
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-get-all-orders" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "orders" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "store_id" : {
                  "type" : "integer"
                },
                "products_count" : {
                  "type" : "integer"
                },
                "created_at" : {
                  "type" : "string"
                },
                "shipping" : {
                  "type" : "object",
                  "properties" : {
                    "method" : {
                      "type" : "object",
                      "properties" : {
                        "code" : {
                          "type" : "string"
                        },
                        "estimated_delivery_time" : {
                          "type" : "string"
                        },
                        "icon" : {
                          "type" : "string"
                        },
                        "is_system_option" : {
                          "type" : "boolean"
                        },
                        "tracking" : {
                          "type" : "object",
                          "properties" : {
                            "name" : {
                              "type" : "string"
                            }
                          }
                        }
                      }
                    },
                    "address" : {
                      "type" : "object",
                      "properties" : {
                        "country" : {
                          "type" : "object",
                          "properties" : {
                            "id" : {
                              "type" : "integer"
                            },
                            "name" : {
                              "type" : "string"
                            }
                          }
                        },
                        "street" : {
                          "type" : "string"
                        },
                        "district" : {
                          "type" : "string"
                        },
                        "city" : {
                          "type" : "object",
                          "properties" : {
                            "id" : {
                              "type" : "integer"
                            },
                            "name" : {
                              "type" : "string"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "customer_note" : {
                  "type" : "string"
                },
                "store_name" : {
                  "type" : "string"
                },
                "store_url" : {
                  "type" : "string"
                },
                "order_status" : {
                  "type" : "object",
                  "properties" : {
                    "name" : {
                      "type" : "string"
                    },
                    "code" : {
                      "type" : "string"
                    }
                  }
                },
                "customer" : {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "type" : "integer"
                    },
                    "name" : {
                      "type" : "string"
                    },
                    "email" : {
                      "type" : "string"
                    },
                    "mobile" : {
                      "type" : "string"
                    },
                    "note" : {
                      "type" : "string"
                    }
                  }
                },
                "updated_at" : {
                  "type" : "string"
                },
                "id" : {
                  "type" : "integer"
                },
                "code" : {
                  "type" : "string"
                },
                "order_url" : {
                  "type" : "string"
                },
                "payment" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "value" : {
                            "type" : "string"
                          },
                          "value_string" : {
                            "type" : "string"
                          },
                          "title" : {
                            "type" : "string"
                          },
                          "code" : {
                            "type" : "string"
                          }
                        }
                      }
                    },
                    "method" : {
                      "type" : "object",
                      "properties" : {
                        "name" : {
                          "type" : "string"
                        },
                        "code" : {
                          "type" : "string"
                        },
                        "transaction_status" : {
                          "type" : "string"
                        },
                        "transaction_status_name" : {
                          "type" : "string"
                        }
                      }
                    }
                  }
                },
                "products" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "gross_price" : {
                        "type" : "integer"
                      },
                      "price" : {
                        "type" : "integer"
                      },
                      "additions_price_string" : {
                        "type" : "string"
                      },
                      "total" : {
                        "type" : "integer"
                      },
                      "net_additions_price" : {
                        "type" : "integer"
                      },
                      "gross_additions_price" : {
                        "type" : "integer"
                      },
                      "tax_amount_string" : {
                        "type" : "string"
                      },
                      "additions_price" : {
                        "type" : "integer"
                      },
                      "sku" : {
                        "type" : "string"
                      },
                      "weight" : {
                        "type" : "object",
                        "properties" : {
                          "value" : {
                            "type" : "integer"
                          },
                          "unit" : {
                            "type" : "string"
                          }
                        }
                      },
                      "net_price" : {
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "quantity" : {
                        "type" : "integer"
                      },
                      "is_taxable" : {
                        "type" : "boolean"
                      },
                      "id" : {
                        "type" : "string"
                      },
                      "gross_price_string" : {
                        "type" : "string"
                      },
                      "tax_amount" : {
                        "type" : "integer"
                      },
                      "price_string" : {
                        "type" : "string"
                      },
                      "total_string" : {
                        "type" : "string"
                      },
                      "net_price_string" : {
                        "type" : "string"
                      },
                      "tax_percentage" : {
                        "type" : "integer"
                      }
                    }
                  }
                },
                "system_tags" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "id" : {
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "description" : {
                        "type" : "string"
                      },
                      "taggable_id" : {
                        "type" : "integer"
                      },
                      "reason" : {
                        "type" : "string"
                      }
                    }
                  }
                },
                "weight" : {
                  "type" : "integer"
                },
                "currency" : {
                  "type" : "object",
                  "properties" : {
                    "order_currency" : {
                      "type" : "object",
                      "properties" : {
                        "code" : {
                          "type" : "string"
                        },
                        "exchange_rate" : {
                          "type" : "integer"
                        },
                        "id" : {
                          "type" : "integer"
                        }
                      }
                    },
                    "order_store_currency" : {
                      "type" : "object",
                      "properties" : {
                        "id" : {
                          "type" : "integer"
                        },
                        "code" : {
                          "type" : "string"
                        }
                      }
                    }
                  }
                },
                "order_total" : {
                  "type" : "string"
                },
                "order_total_string" : {
                  "type" : "string"
                },
                "requires_shipping" : {
                  "type" : "boolean"
                },
                "coupon" : {
                  "type" : "object",
                  "properties" : {
                    "code" : {
                      "type" : "string"
                    },
                    "name" : {
                      "type" : "string"
                    },
                    "discount" : {
                      "type" : "string"
                    },
                    "discount_string" : {
                      "type" : "string"
                    }
                  }
                },
                "return_policy" : {
                  "type" : "string"
                }
              }
            }
          },
          "total_order_count" : {
            "type" : "integer"
          },
          "total_order_count_per_status" : {
            "type" : "object",
            "properties" : {
              "preparing" : {
                "type" : "integer"
              },
              "indelivery" : {
                "type" : "integer"
              },
              "delivered" : {
                "type" : "integer"
              },
              "cancelled" : {
                "type" : "integer"
              },
              "ready" : {
                "type" : "integer"
              },
              "initial" : {
                "type" : "integer"
              },
              "new" : {
                "type" : "integer"
              }
            }
          },
          "tax_settings" : {
            "type" : "object",
            "properties" : {
              "countries" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "type" : "string"
                    },
                    "country" : {
                      "type" : "object",
                      "properties" : {
                        "id" : {
                          "type" : "integer"
                        },
                        "name" : {
                          "type" : "object",
                          "properties" : {
                            "en" : {
                              "type" : "string"
                            },
                            "ar" : {
                              "type" : "string"
                            }
                          }
                        },
                        "iso_code_2" : {
                          "type" : "string"
                        },
                        "iso_code_3" : {
                          "type" : "string"
                        }
                      }
                    },
                    "tax_percentage" : {
                      "type" : "integer"
                    },
                    "vat_number" : {
                      "type" : "string"
                    }
                  }
                }
              },
              "can_use_vat" : {
                "type" : "boolean"
              },
              "vat_activate" : {
                "type" : "boolean"
              },
              "is_vat_self_paid" : {
                "type" : "boolean"
              },
              "is_vat_included_in_product_price" : {
                "type" : "boolean"
              },
              "is_shipping_fee_included_in_vat" : {
                "type" : "boolean"
              },
              "other_countries_tax_percentage" : {
                "type" : "integer"
              }
            }
          },
          "printed_invoice_settings" : {
            "type" : "object",
            "properties" : {
              "is_products_weight_active" : {
                "type" : "boolean"
              },
              "is_barcode_active" : {
                "type" : "boolean"
              },
              "is_qr_code_active" : {
                "type" : "boolean"
              },
              "is_expected_time_active" : {
                "type" : "boolean"
              },
              "config_logo" : {
                "type" : "string"
              },
              "is_tax_number_active" : {
                "type" : "boolean"
              },
              "is_return_policy_active" : {
                "type" : "boolean"
              }
            }
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "200-get-single-order" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "order" : {
            "type" : "object",
            "properties" : {
              "currency" : {
                "type" : "object",
                "properties" : {
                  "order_currency" : {
                    "type" : "object",
                    "properties" : {
                      "id" : {
                        "type" : "integer"
                      },
                      "code" : {
                        "type" : "string"
                      },
                      "exchange_rate" : {
                        "type" : "integer"
                      }
                    }
                  },
                  "order_store_currency" : {
                    "type" : "object",
                    "properties" : {
                      "id" : {
                        "type" : "integer"
                      },
                      "code" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              },
              "order_status" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string"
                  },
                  "code" : {
                    "type" : "string"
                  }
                }
              },
              "order_total" : {
                "type" : "string"
              },
              "products_count" : {
                "type" : "integer"
              },
              "store_name" : {
                "type" : "string"
              },
              "customer_note" : {
                "type" : "string"
              },
              "next_order" : {
                "type" : "integer"
              },
              "order_url" : {
                "type" : "string"
              },
              "weight" : {
                "type" : "integer"
              },
              "products" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "name" : {
                      "type" : "string"
                    },
                    "price_string" : {
                      "type" : "string"
                    },
                    "is_taxable" : {
                      "type" : "boolean"
                    },
                    "price" : {
                      "type" : "integer"
                    },
                    "tax_amount_string" : {
                      "type" : "string"
                    },
                    "additions_price" : {
                      "type" : "integer"
                    },
                    "sku" : {
                      "type" : "string"
                    },
                    "additions_price_string" : {
                      "type" : "string"
                    },
                    "total_string" : {
                      "type" : "string"
                    },
                    "id" : {
                      "type" : "string"
                    },
                    "net_additions_price" : {
                      "type" : "integer"
                    },
                    "gross_price_string" : {
                      "type" : "string"
                    },
                    "gross_additions_price" : {
                      "type" : "integer"
                    },
                    "net_price" : {
                      "type" : "integer"
                    },
                    "net_price_string" : {
                      "type" : "string"
                    },
                    "gross_price" : {
                      "type" : "integer"
                    },
                    "total" : {
                      "type" : "integer"
                    },
                    "quantity" : {
                      "type" : "integer"
                    },
                    "tax_percentage" : {
                      "type" : "integer"
                    },
                    "tax_amount" : {
                      "type" : "integer"
                    },
                    "images" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "id" : {
                            "type" : "string"
                          },
                          "origin" : {
                            "type" : "string"
                          },
                          "thumbs" : {
                            "type" : "object",
                            "properties" : {
                              "thumbnail" : {
                                "type" : "string"
                              },
                              "medium" : {
                                "type" : "string"
                              },
                              "small" : {
                                "type" : "string"
                              },
                              "full_size" : {
                                "type" : "string"
                              },
                              "large" : {
                                "type" : "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "previous_order" : {
                "type" : "integer"
              },
              "store_id" : {
                "type" : "integer"
              },
              "store_url" : {
                "type" : "string"
              },
              "updated_at" : {
                "type" : "string"
              },
              "shipping" : {
                "type" : "object",
                "properties" : {
                  "method" : {
                    "type" : "object",
                    "properties" : {
                      "tracking" : {
                        "type" : "object",
                        "properties" : {
                          "status" : {
                            "type" : "string"
                          }
                        }
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "code" : {
                        "type" : "string"
                      },
                      "estimated_delivery_time" : {
                        "type" : "string"
                      },
                      "icon" : {
                        "type" : "string"
                      },
                      "is_system_option" : {
                        "type" : "boolean"
                      }
                    }
                  },
                  "address" : {
                    "type" : "object",
                    "properties" : {
                      "city" : {
                        "type" : "object",
                        "properties" : {
                          "id" : {
                            "type" : "integer"
                          },
                          "name" : {
                            "type" : "string"
                          }
                        }
                      },
                      "country" : {
                        "type" : "object",
                        "properties" : {
                          "id" : {
                            "type" : "integer"
                          },
                          "name" : {
                            "type" : "string"
                          }
                        }
                      },
                      "street" : {
                        "type" : "string"
                      },
                      "district" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              },
              "code" : {
                "type" : "string"
              },
              "order_total_string" : {
                "type" : "string"
              },
              "created_at" : {
                "type" : "string"
              },
              "requires_shipping" : {
                "type" : "boolean"
              },
              "payment" : {
                "type" : "object",
                "properties" : {
                  "method" : {
                    "type" : "object",
                    "properties" : {
                      "name" : {
                        "type" : "string"
                      },
                      "code" : {
                        "type" : "string"
                      }
                    }
                  },
                  "invoice" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "code" : {
                          "type" : "string"
                        },
                        "value" : {
                          "type" : "string"
                        },
                        "value_string" : {
                          "type" : "string"
                        },
                        "title" : {
                          "type" : "string"
                        }
                      }
                    }
                  }
                }
              },
              "id" : {
                "type" : "integer"
              },
              "customer" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "integer"
                  },
                  "name" : {
                    "type" : "string"
                  },
                  "email" : {
                    "type" : "string"
                  },
                  "mobile" : {
                    "type" : "string"
                  },
                  "note" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "message" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "parameters" : {
      "Accept-Language" : {
        "name" : "Accept-Language",
        "in" : "header",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "example" : "ar",
          "enum" : [ "ar", "en" ]
        }
      },
      "X-MANAGER-TOKEN" : {
        "name" : "X-MANAGER-TOKEN",
        "in" : "header",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "example" : "{{X-MANAGER-TOKEN}}"
        }
      },
      "STORE-ID" : {
        "name" : "STORE-ID",
        "in" : "header",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "number",
          "example" : 1
        }
      },
      "ROLE" : {
        "name" : "ROLE",
        "in" : "header",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "example" : "Manager",
          "enum" : [ "Manager", "Customer" ]
        }
      },
      "ACCESS-TOKEN" : {
        "name" : "Access-Token",
        "in" : "header",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "example" : "{{Access-Token}}"
        }
      }
    },
    "securitySchemes" : {
      "default" : {
        "type" : "oauth2",
        "flows" : {
          "implicit" : {
            "authorizationUrl" : "https://api.zid.dev/authorize",
            "scopes" : {
              "Shipping-Partners" : "Shipping Partners Scope"
            },
            "x-scopes-bindings" : {
              "Shipping-Partners" : ""
            }
          }
        }
      }
    }
  }
}