openapi: 3.0.0 # Added by API Auto Mocking Plugin info: description: "Mixin Management Api

Clients must pass their API key via the Authorization header. It must be formatted as follows:

Authorization: Api-Key {API_KEY} " version: "1.0.0" title: Mixin Management API tags: - name: "customer" - name: "category" - name: "brand" - name: "product" - name: "product comment" - name: "tag" - name: "product image" - name: "product attributes" servers: - url: 'https://site-url.ir' paths: /api/management/v1/customers/: get: tags: - customer summary: لیست مشتریان security: - ApiKeyAuth: [] x-codeSamples: - lang: 'cURL' label: 'CLI' source: | curl --location --request GET 'https://www.site-url.ir/api/management/v1/customers/?page=1' \ --header 'Authorization: Api-Key ' - lang: 'Python' source: | import requests url = "http://site-url.ir/api/management/v1/customers/?page=1" headers = { 'Authorization': 'Api-Key ' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text) - lang: 'PHP' source: | '; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Authorization: Api-Key ' . $apiKey ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); print( "HTTP CODE: " . $status_code . "\n" ); curl_close($ch); $json = json_decode($result, true); print_r($json); ?> parameters: - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns customers in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/customers/?page=2' description: next page url if exists previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/customerItem' post: tags: - customer summary: افزودن حساب کاربری جدید security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/customerData' responses: '201': description: returns new customer id content: application/json: schema: type: object properties: success: type: boolean example: True id: type: integer example: 2 '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' '409': description: when customer phone_number or email already exist content: application/json: schema: type: object $ref: '#/components/schemas/conflict' /api/management/v1/customers/{pk}: get: tags: - customer summary: دریافت اطلاعات مشتری مورد نظر security: - ApiKeyAuth: [] parameters: - in: path name: pk description: customer id required: True schema: type: integer responses: '200': description: return customer details content: application/json: schema: type: object $ref: '#/components/schemas/customerDetailItem' put: tags: - customer summary: ویرایش اطلاعات مشتری security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/customerEditData' parameters: - in: path name: pk description: customer id required: True schema: type: integer responses: '200': description: return success with true value content: application/json: schema: type: object properties: success: type: boolean example: True '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' '409': description: when customer phone_number or email already exist content: application/json: schema: type: object $ref: '#/components/schemas/conflict' delete: tags: - customer summary: حذف حساب کاربری مشتری security: - ApiKeyAuth: [] parameters: - in: path name: pk description: customer id required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/categories/: get: tags: - category summary: لیست دسته‌ها security: - ApiKeyAuth: [] parameters: - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns categories in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/categories/?page=2' description: next page url if exists previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/categoryItem' post: tags: - category summary: اضافه کردن دسته‌بندی جدید security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/categoryData' responses: '201': description: returns new category id content: application/json: schema: type: object properties: success: type: boolean example: True id: type: integer example: 2 '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' '409': description: when category name already exist content: application/json: schema: type: object $ref: '#/components/schemas/conflict' /api/management/v1/categories/{pk}: get: tags: - category summary: دریافت اطلاعات دسته‌بندی مورد نظر security: - ApiKeyAuth: [] parameters: - in: path name: pk description: category id required: True schema: type: integer responses: '200': description: return category details content: application/json: schema: type: object $ref: '#/components/schemas/categoryDetail' put: tags: - category summary: ویرایش دسته‌بندی security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/categoryEditData' parameters: - in: path name: pk description: category id required: True schema: type: integer responses: '200': description: return success with true value content: application/json: schema: type: object properties: success: type: boolean example: True '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' delete: tags: - category summary: حذف دسته‌بندی security: - ApiKeyAuth: [] parameters: - in: path name: pk description: category id required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/brands/: get: tags: - brand summary: لیست برند‌ها security: - ApiKeyAuth: [] parameters: - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns brands in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/brands/?page=2' description: next page url if exists previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/brandItem' post: tags: - brand summary: اضافه کردن برند‌ جدید security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/brandData' responses: '201': description: return id of new brand content: application/json: schema: type: object properties: success: type: boolean example: True id: type: integer example: 2 '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' '409': description: when brand name already exist content: application/json: schema: type: object $ref: '#/components/schemas/conflict' /api/management/v1/brands/{pk}: get: tags: - brand summary: دریافت اطلاعات برند مورد نظر security: - ApiKeyAuth: [] parameters: - in: path name: pk description: brand id required: True schema: type: integer responses: '200': description: return brand details content: application/json: schema: type: object $ref: '#/components/schemas/brandDetail' put: tags: - brand summary: ویرایش برند security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/brandData' parameters: - in: path name: pk description: category id required: True schema: type: integer responses: '200': description: return success with true value content: application/json: schema: type: object properties: success: type: boolean example: True '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' delete: tags: - brand summary: حذف برند security: - ApiKeyAuth: [] parameters: - in: path name: pk description: brand id required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/products/: get: tags: - product summary: لیست محصولات security: - ApiKeyAuth: [] parameters: - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns products in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/products/?page=2' description: next page url if exists previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/productItem' post: tags: - product summary: اضافه کردن محصول جدید security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/productData' responses: '201': description: return id of new product content: application/json: schema: type: object properties: success: type: boolean example: True id: type: integer example: 2 '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' /api/management/v1/products/{pk}: get: tags: - product summary: دریافت اطلاعات محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: true schema: type: integer responses: '200': description: return product info content: application/json: schema: type: object $ref: '#/components/schemas/productDetail' put: tags: - product summary: ویرایش محصول security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/productEditData' parameters: - in: path name: pk description: product id required: true schema: type: integer responses: '200': description: return success with true value content: application/json: schema: type: object properties: success: type: boolean example: True id: type: integer example: 2 '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' delete: tags: - product summary: حذف محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/products/comments/: get: tags: - product comment summary: لیست نظرات محصولات security: - ApiKeyAuth: [] parameters: - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns product comments in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/products/comments/?page=2' description: next page url if exists previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/productCommentItem' post: tags: - product comment summary: افزودن نظر برای محصول security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/productCommentData' responses: '201': description: returns new comment id content: application/json: schema: type: object properties: success: type: boolean example: True id: type: integer example: 2 '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' /api/management/v1/products/comments/{pk}: get: tags: - product comment summary: دریافت اطلاعات نظر مورد نظر security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product comment id required: True schema: type: integer responses: '200': description: return comment details content: application/json: schema: type: object $ref: '#/components/schemas/customerDetailItem' delete: tags: - product comment summary: حذف نظر محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product comment id required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/products/{pk}/tags/: get: tags: - tag summary: لیست برچسب‌های یک محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns tags in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/products/1/tags/?page=2' description: next page url if previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/tagItem' post: tags: - tag summary: اضافه کردن برچسب جدید برای محصول security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/tagData' parameters: - in: path name: pk description: product id required: True schema: type: integer responses: '201': description: return id of new tag content: application/json: schema: type: object properties: success: type: boolean example: True id: type: integer example: 2 '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' '409': description: duplicate value content: application/json: schema: type: object $ref: '#/components/schemas/conflict' /api/management/v1/products/{pk}/tags/{tag_id}: get: tags: - tag summary: دریافت اطلاعات یک برچسب security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: tag_id description: tag id required: True schema: type: integer responses: '200': description: returns tag content: application/json: schema: type: object $ref: '#/components/schemas/tagItem' put: tags: - tag summary: ویرایش یک برچسب security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/tagData' parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: tag_id description: tag id required: True schema: type: integer responses: '200': description: return success content: application/json: schema: type: object properties: success: type: boolean example: True '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' delete: tags: - tag summary: حذف برچسب محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: tag_id description: tag id required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/products/{pk}/images/: get: tags: - product image summary: لیست عکس‌های یک محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns product images in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/products/1/images/?page=2' description: next page url if previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/imageItem' post: tags: - product image summary: اضافه کردن عکس برای محصول security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/imageData' parameters: - in: path name: pk description: product id required: True schema: type: integer responses: '201': description: return id of new image content: application/json: schema: type: object properties: success: type: boolean example: True id: type: integer example: 2 '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' /api/management/v1/products/{pk}/images/{image_id}/: get: tags: - product image summary: مشخصات عکس محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: image_id description: image id required: True schema: type: integer responses: '200': description: returns product image info content: application/json: schema: type: object $ref: '#/components/schemas/imageItem' put: tags: - product image summary: ویرایش عکس محصول security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/imageEditData' parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: image_id description: image id required: True schema: type: integer responses: '200': description: return success content: application/json: schema: type: object properties: success: type: boolean example: True '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' delete: tags: - product image summary: حذف عکس محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: image_id description: image id required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/products/{pk}/attributes/secondary/: get: tags: - product attributes summary: لیست مشخصات محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: return product attributes in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/products/1/attributes/secondary/?page=2' description: next page url if previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/secondaryAttributeItem' post: tags: - product attributes summary: اضافه کردن مشخصه برای محصول security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/secondaryAttributeData' parameters: - in: path name: pk description: product id required: True schema: type: integer responses: '201': description: return id of attribute content: application/json: schema: type: object properties: success: type: boolean example: True id: type: integer example: 2 '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' '409': description: duplicate value content: application/json: schema: type: object $ref: '#/components/schemas/conflict' /api/management/v1/products/{pk}/attributes/secondary/{attr_id}/: get: tags: - product attributes summary: دریافت اطلاعات مشخصه security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: attr_id description: attribute id required: True schema: type: integer responses: '200': description: return product attribute content: application/json: schema: type: object $ref: '#/components/schemas/secondaryAttributeItem' put: tags: - product attributes summary: ویرایش مشخصه محصول security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/secondaryAttributeEditData' parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: attr_id description: attribute id required: True schema: type: integer responses: '200': description: return success content: application/json: schema: type: object properties: success: type: boolean example: True '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' '409': description: duplicate value content: application/json: schema: type: object $ref: '#/components/schemas/conflict' delete: tags: - product attributes summary: حذف مشخصه security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: attr_id description: attribute id required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/products/{pk}/attributes/main/: get: tags: - variant attributes summary: لیست ویژگی‌های تغییر دهنده قیمت security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer responses: '200': description: return variant attributes in page content: application/json: schema: type: array items: $ref: '#/components/schemas/mainAttributeItem' post: tags: - variant attributes summary: اضافه گردن ویژگی تغییر دهنده‌ی محصول security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/mainAttributeData' parameters: - in: path name: pk description: product id required: True schema: type: integer responses: '201': description: return id of attribute content: application/json: schema: type: object properties: success: type: boolean example: True name: type: string example: name '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' '409': description: duplicate value content: application/json: schema: type: object $ref: '#/components/schemas/conflict' /api/management/v1/products/{pk}/attributes/main/{attribute_name}/: get: tags: - variant attributes summary: مشخصات ویژگی‌ تغییر دهنده قیمت security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: attribute_name description: attribute name required: True schema: type: integer - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: return variant attributes in page content: application/json: schema: type: object $ref: '#/components/schemas/mainAttributeItem' put: tags: - variant attributes summary: ویرایش ویژگی تغییر دهنده قیمت security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/mainAttributeData' parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: attribute_name description: attribute name required: True schema: type: integer responses: '200': description: return success content: application/json: schema: type: object properties: success: type: boolean example: True '400': description: incase of bad request content: application/json: schema: type: object $ref: '#/components/schemas/badRequest' delete: tags: - variant attributes summary: حذف ویژگی تغییر دهنده قیمت security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: attribute_name description: attribute name required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/products/{pk}/variants/: get: tags: - product variants summary: لیست تنوع محصولات security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns product variants in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/products/1/variants/?page=2' description: next page url if previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/productVariantItem' /api/management/v1/products/{pk}/variants/{variant_id}/: get: tags: - product variants summary: اطلاعات تنوع محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: variant_id description: variant id required: True schema: type: integer responses: '200': description: returns product variant content: application/json: schema: type: object $ref: '#/components/schemas/productVariantItem' put: tags: - product variants summary: ویرایش تنوع محصول security: - ApiKeyAuth: [] requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/productVariantData' parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: variant_id description: variant id required: True schema: type: integer responses: '200': description: return success content: application/json: schema: type: object properties: success: type: boolean example: True delete: tags: - product variants summary: حذف تنوع محصول security: - ApiKeyAuth: [] parameters: - in: path name: pk description: product id required: True schema: type: integer - in: path name: variant_id description: variant id required: True schema: type: integer responses: '204': description: returns no content /api/management/v1/orders/: get: tags: - order summary: لیست سفارشات security: - ApiKeyAuth: [] parameters: - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns orders in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/orders/?page=2' description: next page url if exists previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/order' /api/management/v1/orders/{pk}: get: tags: - order summary: دریافت اطلاعات سفارش security: - ApiKeyAuth: [] parameters: - in: path name: pk description: order id required: True schema: type: integer responses: '200': description: return order details content: application/json: schema: type: object $ref: '#/components/schemas/orderDetail' /api/management/v1/payments/: get: tags: - order summary: لیست پرداخت‌ها security: - ApiKeyAuth: [] parameters: - in: query name: page description: page number required: false schema: type: integer default: 1 responses: '200': description: returns payments in page content: application/json: schema: type: object properties: next: type: string nullable: true example: '/api/management/v1/payments/?page=2' description: next page url if exists previous: type: string nullable: true example: null description: previous page url if exists total_pages: type: integer description: total number of pages example: 2 current_page: type: integer description: current page example: 1 per_page: type: integer description: items per page example: 100 results: type: array items: $ref: '#/components/schemas/orderPayment' components: securitySchemes: ApiKeyAuth: type: apiKey in: header name: Authorization schemas: badRequest: properties: success: type: boolean example: false errors: type: object conflict: properties: success: type: boolean example: false id: type: integer example: 1 customerData: type: object properties: username: description: customer username type: string password: description: customer account password type: string email: description: customer email type: string first_name: description: customer first name type: string last_name: description: customer last name type: string phone_number: description: customer phone number type: string national_number: description: customer national number type: string is_active: description: is customer account active or not type: boolean receive_newsletters: description: recieve newsletters type: boolean required: - username - password customerEditData: type: object properties: email: description: customer email type: string first_name: description: customer first name type: string last_name: description: customer last name type: string phone_number: description: customer phone number type: string national_number: description: customer national number type: string card_number: description: customer card number type: string is_active: description: is customer account active or not type: boolean receive_newsletters: description: recieve newsletters type: boolean required: - username - password customerItem: type: object properties: id: example: 1 type: integer username: example: customer1 type: string first_name: example: ali type: string last_name: example: mohammadi type: string phone_number: example: 09123456789 type: string national_number: example: 12345 type: string is_active: example: true type: boolean date_joined: example: '2021-08-25T11:31:28.058099+04:30' type: string last_login: example: '2021-08-25T11:31:28.058099+04:30' type: string customerDetailItem: type: object properties: id: example: 1 type: integer username: example: customer1 type: string email: example: customer@gmail.com type: string first_name: example: ali type: string last_name: example: mohammadi type: string phone_number: example: 09123456789 type: string national_number: example: 12345 type: string card_number: type: string is_active: example: true type: boolean receive_newsletters: example: true type: boolean date_joined: example: '2021-08-25T11:31:28.058099+04:30' type: string last_login: example: '2021-08-25T11:31:28.058099+04:30' type: string productCommentItem: type: object properties: id: type: integer example: 2 product: type: integer example: 1 user: type: integer example: 1 parent: type: integer example: null title: type: string example: comment title text: type: string example: comment text positive_points: type: array items: type: string negative_points: type: array items: type: string suggest_status: type: boolean example: false confirmed: type: boolean example: true creation_datev: type: string example: '2021-08-25T11:31:28.058099+04:30' productCommentData: type: object properties: product: type: integer description: product id user: type: integer description: customer id parent: type: integer description: parent comment id title: type: string description: comment title text: type: string description: comment text positive_points: type: array items: type: string negative_points: type: array items: type: string suggest_status: type: boolean description: user suggest product or not confirmed: type: boolean description: is comment confirmed categoryItem: type: object properties: id: example: 1 type: integer name: type: string example: موبایل و تبلت parent: example: 7 type: integer available: example: True type: boolean categoryDetail: type: object properties: id: example: 1 type: integer name: type: string example: موبایل و تبلت description: name of category description: type: string example: ' توضیحات دسته‌بندی' description: description for category available: type: boolean example: True description: parent category id parent: example: 7 type: integer description: parent category id categories_menu_show: type: boolean example: True description: show category in main menu main_menu_separate_show: type: boolean example: False description: show in main menu sepearatly image: type: string format: binary example: null description: category image image_alt: type: string example: null description: category image alt text seo_title: type: string example: null description: seo title seo_description: type: string example: null description: seo description old_path: type: string example: null description: old category url in case you moved it from another platform to mixin old_slug: type: string example: null description: old category slug in case you moved it from another platform to mixin required: - name categoryData: type: object properties: name: type: string description: name of category description: type: string description: description for category available: type: boolean default: True description: parent category id parent: type: integer description: parent category id categories_menu_show: type: boolean default: True description: show category in main menu main_menu_separate_show: type: boolean default: False description: show in main menu sepearatly image: type: string format: binary description: category image image_alt: type: string description: category image alt text seo_title: type: string description: seo title seo_description: type: string description: seo description old_path: type: string description: old category url in case you moved it from another platform to mixin old_slug: type: string description: old category slug in case you moved it from another platform to mixin required: - name categoryEditData: type: object properties: name: type: string description: name of category description: type: string description: description for category available: type: boolean description: parent category id parent: type: integer description: parent category id categories_menu_show: type: boolean description: show category in main menu main_menu_separate_show: type: boolean description: show in main menu sepearatly image: type: string format: binary description: category image image_alt: type: string description: category image alt text seo_title: type: string description: seo title seo_description: type: string description: seo description old_path: type: string description: old category url in case you moved it from another platform to mixin old_slug: type: string description: old category slug in case you moved it from another platform to mixin required: - name brandItem: properties: id: example: 1 type: integer name: type: string example: xiamoi slug: type: string example: xiamoi brandDetail: properties: id: example: 1 type: integer name: type: string example: xiamoi slug: type: string example: xiamoi image: type: string example: null image_alt: type: string example: null seo_title: type: string example: null seo_description: type: string example: null brandData: type: object properties: name: type: string description: name of brand image: type: string format: binary description: brand image image_alt: type: string description: alternative text for image seo_title: type: string description: seo title seo_description: type: string description: seo description required: - name productItem: properties: id: example: 1 type: integer name: type: string example: موبایل X10 english_name: type: string example: X10 main_category: type: integer example: 1 brand: type: integer example: 1 price: type: integer example: 700000 stock_type: type: string example: limited has_variants: type: boolean example: true available: type: boolean example: true productDetail: properties: id: example: 1 type: integer name: type: string example: موبایل X10 description: type: string example:

توضیحات/p> analysis: type: string example: '' english_name: type: string example: X10 main_category: type: integer example: 1 other_categories: type: array example: [2,3] brand: type: integer example: 1 is_digital: type: boolean example: false price: type: integer example: 700000 compare_at_price: type: integer example: 800000 special_offer: type: boolean example: true special_offer_end: type: string example: '2021-03-10T16:22:19+03:30' length: type: integer example: null width: type: integer example: null height: type: integer example: null barcode: type: string example: null show_price: type: boolean example: true stock: type: integer example: 5 stock_type: type: string example: limited max_order_quantity: type: integer example: 5 guarantee: type: string example: null product_identifier: type: string example: null old_path: type: string example: null old_slug: type: string example: null has_variants: type: boolean example: true available: type: boolean example: true draft: type: boolean example: false seo_title: type: string example: موبایل X10 seo_description: type: string example: توضیحات extra_fields: type: array description: extra fields list items: type: object additionalProperties: type: string productData: type: object properties: name: type: string description: name of product main_category: type: integer description: main category id description: type: string description: description for product analysis: type: string description: analysis english_name: type: string description: product name in english other_categories: type: array items: type: integer description: other categories id in list brand: type: integer description: brand id is_digital: type: boolean description: is product digital ro not default: false price: type: integer description: product price in tomans compare_at_price: type: integer description: product price before sale in tomans special_offer: type: boolean default: false description: is product in special offer or not special_offer_end: type: string example: '2021-03-10T16:22:19+03:30' description: end date of product special offer length: type: integer description: length in centimeters width: type: integer description: width in centimeters height: type: integer description: height in centimeters weight: type: integer description: weight in grams barcode: type: string description: barcode stock_type: type: string default: 'unlimited' enum: ['limited', 'unlimited', 'call', 'out_of_stock'] description: stock type of product (one of this items ['limited', 'unlimited', 'call', 'out_of_stock']) stock: type: integer default: 0 description: product stock max_order_quantity: type: integer default: 0 description: maximum quantity of product in cart guarantee: type: string description: product guarantee product_identifier: type: string description: product identifier old_path: type: string description: old product url in case you moved it from another platform to mixin old_slug: type: string description: old product slug in case you moved it from another platform to mixin has_variants: type: boolean default: false description: product has variants or not available: type: boolean default: true description: is product available or not seo_title: type: string description: seo title seo_description: type: string description: seo title extra_fields: type: array description: extra fields list items: type: string required: - name - main_category productEditData: type: object properties: name: type: string description: name of product main_category: type: integer description: main category id description: type: string description: description for product analysis: type: string description: analysis english_name: type: string description: product name in english other_categories: type: array items: type: integer description: other categories id in list brand: type: integer description: brand id is_digital: type: boolean description: is product digital ro not price: type: integer description: product price in tomans. if product has variants all variants price will be update with new price compare_at_price: type: integer description: product price before sale in tomans. if product has variants all variants compare_at_price will be update with new price special_offer: type: boolean description: is product in special offer or not special_offer_end: type: string example: '2021-03-10T16:22:19+03:30' description: end date of product special offer length: type: integer description: length in centimeters width: type: integer description: width in centimeters height: type: integer description: height in centimeters weight: type: integer description: weight in grams barcode: type: string description: barcode stock_type: type: string enum: ['limited', 'unlimited', 'call', 'out_of_stock'] description: stock type of product (one of this items ['limited', 'unlimited', 'call', 'out_of_stock']) stock: type: integer description: product stock max_order_quantity: type: integer description: maximum quantity of product in cart guarantee: type: string description: product guarantee product_identifier: type: string description: product identifier old_path: type: string description: old product url in case you moved it from another platform to mixin old_slug: type: string description: old product slug in case you moved it from another platform to mixin has_variants: type: boolean description: product has variants or not available: type: boolean description: is product available or not seo_title: type: string description: seo title seo_description: type: string description: seo title tagItem: properties: id: type: integer example: 1 value: type: string example: 'برچسب' tagData: type: object properties: value: type: string description: tag value required: - value imageItem: properties: id: type: integer example: 1 image: type: string example: "/media/product-images/123.jpg" image_alt: type: string example: '' default: type: boolean example: true imageData: type: object properties: image: type: string format: binary description: image file image_url: type: string description: image url (if sent, 'image' parameter can be ignored) image_alt: type: string description: alternative text for image default: type: boolean default: false description: set image as default image for product required: - image imageEditData: type: object properties: image_alt: type: string description: alternative text for image default: type: boolean description: set image as default image for product required: - default secondaryAttributeItem: properties: id: type: integer example: 1 attribute: type: string example: attribute name value: type: string example: attribue value order: type: integer example: 0 secondaryAttributeData: type: object properties: attribute: type: string description: attribute name value: type: string description: attribue value order: type: integer description: attribute order in Ascending order default: 0 required: - attribute - value secondaryAttributeEditData: type: object properties: attribute: type: string description: attribute name value: type: string description: attribue value order: type: integer description: attribute order in Ascending order required: - attribute - value mainAttributeItem: properties: attribute: type: string example: 'مشخصه' values: type: array items: $ref: '#/components/schemas/mainAttributeValues' mainAttributeValues: properties: id: type: integer example: 1 value: type: string example: attribue value mainAttributeData: type: object properties: attribute: type: string description: attribute value: type: array items: type: string description: attribute values required: - attribute - value productVariantItem: properties: id: type: integer example: 1 attributes: type: array items: $ref: '#/components/schemas/mainAttributeValues' price: type: integer example: 800000 compare_at_price: type: integer example: 900000 show_price: type: boolean example: true is_default: type: boolean example: true stock: type: integer example: 10 length: type: integer example: null width: type: integer example: null height: type: integer example: null weight: type: integer example: null barcode: type: string example: null product_identifier: type: string example: null image: type: object $ref: '#/components/schemas/imageItem' productVariantData: type: object properties: price: type: integer description: product price in tomans compare_at_price: type: integer description: product price before sale in tomans is_default: type: boolean description: select variant as default stock: type: integer description: product variant stock length: type: integer description: length in centimeters width: type: integer description: width in centimeters height: type: integer description: height in centimeters weight: type: integer description: weight in grams barcode: type: string description: barcode product_identifier: type: string description: product variant identifier image: type: integer description: product image id for this variant order: properties: id: type: integer example: 1 first_name: type: string example: user first name last_name: type: string example: user last name phone_number: type: string example: '09123456789' status: type: string example: 'pending' payment_method: type: string example: 'online' payment_status: type: string example: 'paid' creation_date: type: string example: "2021-06-07T13:16:33.383644+04:30" shipping_method_name: type: string example: 'پست' final_price: type: integer example: 580000 orderEvent: properties: id: type: integer example: 1 creation_date: type: string example: "2021-06-07T13:16:33.383644+04:30" text: type: string example: "وضعیت سفارش به «در انتظار تایید» تغییر پیدا کرد." orderItem: properties: id: type: integer example: 104 name: type: string example: 'موبایل ال جی' quantity: type: integer example: 1 compare_at_price: type: integer example: 2500000 price: type: integer example: 2300000 total_price: type: integer example: 2300000 image: type: string example: 'media/product-images/323232354.jpg' url: type: string example: 'product/1/موبایل-ال-جی' orderDetail: properties: id: type: integer example: 1 creation_date: type: string example: "2021-06-07T13:16:33.383644+04:30" status: type: string example: 'pending' first_name: type: string example: user first name last_name: type: string example: user last name phone_number: type: string example: '09123456789' customer_note: type: string example: '' payment_method: type: string example: 'online' payment_status: type: string example: 'paid' shipping_method_name: type: string example: 'پست' shipping_date: type: string example: null shipping_start_time: type: string example: null shipping_end_time: type: string example: null shipping_province: type: string example: 'تهران' shipping_city: type: string example: 'تهران' shipping_address: type: string example: 'خیابان آزادی شرق به غرب، بعد از دانشگاه شریف کوچه صادقی، پلاک 29،پارک علم و فناوری دانشگاه شریف، طبقه دوم، واحد 3' shipping_zip_code: type: string example: '1458883499' shipping_first_name: type: string example: user first name shipping_last_name: type: string example: user last name shipping_phone_number: type: string example: '09123456789' shipping_tracking_code: type: string example: null coupon_discount_amount: type: string example: null discount_amount: type: integer example: 200000 cart_price: type: integer example: 2500000 tax_amount: type: integer example: 0 shipping_price: type: integer example: 0 final_price: type: integer example: 2300000 items: type: array items: $ref: "#/components/schemas/orderItem" events: type: array items: $ref: "#/components/schemas/orderEvent" orderPayment: properties: id: type: integer example: 1 creation_date: type: string example: "2021-06-07T13:16:33.383644+04:30" price: type: integer example: 2300000 method: type: string example: 'online' status: type: string example: 'initiated' psp: type: string example: 'sadad' transaction_number: type: string example: null

ورود / ثبت نام
جست‌وجو میان تمام محصولات

%16

زعفران صادراتی نیم گرم
۲۵۰٬۰۰۰
۳۰۰٬۰۰۰
ناموجود
زعفران صادراتی پک بزرگ
ناموجود
ناموجود
زعفران صادراتی یک گرم
ناموجود
ناموجود
زعفران صادراتی پک کوچک
ناموجود
ناموجود
زعفران صادراتی دو گرم
ناموجود

زعفران

زعفران نگین صادراتی

پروفایلسبد خریددسته‌بندیخانه