{"openapi":"3.1.0","info":{"title":"API \u0646\u0650\u062a \u0627\u064e\u0631\u0632","version":"1.0.0","description":"\u0631\u0627\u0628\u0637 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0646\u0648\u06cc\u0633\u06cc \u0646\u0650\u062a \u0627\u064e\u0631\u0632 \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0644\u06cc\u0633\u062a \u0645\u062d\u0635\u0648\u0644\u0627\u062a\u060c \u0642\u06cc\u0645\u062a\u200c\u0647\u0627\u06cc \u0644\u062d\u0638\u0647\u200c\u0627\u06cc (\u062f\u0644\u0627\u0631 \u0648 \u062a\u0648\u0645\u0627\u0646)\u060c \u0646\u0631\u062e \u0627\u0631\u0632 \u0648 \u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634 \u0645\u0633\u062a\u0642\u06cc\u0645 \u0627\u0632 \u06a9\u06cc\u0641 \u067e\u0648\u0644.\n\n**\u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a:** \u062a\u0648\u06a9\u0646 \u0634\u062e\u0635\u06cc \u0631\u0627 \u0627\u0632 \u067e\u0646\u0644 \u06a9\u0627\u0631\u0628\u0631\u06cc \u2190 \u00ab\u062a\u0648\u06a9\u0646\u200c\u0647\u0627\u06cc API\u00bb \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u062f\u0631 \u0647\u062f\u0631 `Authorization: Bearer TOKEN` \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f. \u0647\u0631 \u062a\u0648\u06a9\u0646 \u062a\u0627\u0632\u0647 \u06cc\u06a9 \u0633\u0627\u0644 (\u06f3\u06f6\u06f5 \u0631\u0648\u0632) \u0627\u0639\u062a\u0628\u0627\u0631 \u062f\u0627\u0631\u062f \u0648 \u062a\u0627\u0631\u06cc\u062e \u067e\u0627\u06cc\u0627\u0646\u0634 \u062f\u0631 \u0647\u0645\u0627\u0646 \u0635\u0641\u062d\u0647 \u062f\u06cc\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f\u061b \u067e\u0633 \u0627\u0632 \u0622\u0646 \u062a\u0648\u06a9\u0646 \u062a\u0627\u0632\u0647\u200c\u0627\u06cc \u0628\u0633\u0627\u0632\u06cc\u062f.\n\n**\u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0646\u0631\u062e:** \u0639\u0645\u0648\u0645\u06cc \u06f1\u06f2\u06f0 \u0648 \u0627\u062d\u0631\u0627\u0632\u0634\u062f\u0647 \u06f6\u06f0 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062f\u0631 \u062f\u0642\u06cc\u0642\u0647.","contact":{"name":"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0646\u0650\u062a \u0627\u064e\u0631\u0632","url":"https:\/\/netarz.ir"}},"servers":[{"url":"https:\/\/netarz.ir\/api\/v1","description":"\u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"\u0639\u0645\u0648\u0645\u06cc","description":"\u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a"},{"name":"\u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0648 \u0633\u0641\u0627\u0631\u0634","description":"\u0646\u06cc\u0627\u0632\u0645\u0646\u062f \u062a\u0648\u06a9\u0646"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"\u062a\u0648\u06a9\u0646 \u0634\u062e\u0635\u06cc \u0633\u0627\u062e\u062a\u0647\u200c\u0634\u062f\u0647 \u062f\u0631 \u067e\u0646\u0644 \u06a9\u0627\u0631\u0628\u0631\u06cc"}},"schemas":{"Price":{"type":"object","properties":{"usd":{"type":"number","example":11.5,"description":"\u0642\u06cc\u0645\u062a \u067e\u0627\u06cc\u0647 \u0628\u0647 \u062f\u0644\u0627\u0631"},"toman":{"type":"integer","example":2185000,"description":"\u0642\u06cc\u0645\u062a \u0645\u0639\u0627\u062f\u0644 \u0628\u0647 \u062a\u0648\u0645\u0627\u0646 (\u0646\u0631\u062e \u0631\u0648\u0632)"},"from":{"type":"boolean","example":true,"description":"\u0627\u06af\u0631 true \u0628\u0627\u0634\u062f\u060c \u0642\u06cc\u0645\u062a \u00ab\u0627\u0632\u00bb (\u06a9\u0645\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647) \u0627\u0633\u062a"}}},"Variant":{"type":"object","properties":{"id":{"type":"integer","example":5},"title":{"type":"string","example":"\u06f5\u06f0 \u062f\u0644\u0627\u0631\u06cc"},"price":{"type":"object","properties":{"usd":{"type":"number","example":54},"toman":{"type":"integer","example":10260000}}},"in_stock":{"type":"boolean","example":true}}},"Product":{"type":"object","properties":{"id":{"type":"integer","example":194},"slug":{"type":"string","example":"\u06af\u06cc\u0641\u062a-\u06a9\u0627\u0631\u062a-\u0627\u067e\u0644-\u0622\u0645\u0631\u06cc\u06a9\u0627"},"title":{"type":"string","example":"\u06af\u06cc\u0641\u062a\u200c\u06a9\u0627\u0631\u062a \u0627\u067e\u0644 \u0622\u0645\u0631\u06cc\u06a9\u0627"},"type":{"type":"string","example":"gift_card"},"delivery_type":{"type":"string","enum":["instant","manual","service"],"example":"instant"},"has_variants":{"type":"boolean","example":true},"in_stock":{"type":"boolean","example":true},"price":{"$ref":"#\/components\/schemas\/Price"},"image":{"type":"string","nullable":true},"url":{"type":"string"}}},"Order":{"type":"object","properties":{"order_number":{"type":"string","example":"NTRZ-260630-AB12X"},"status":{"type":"string","example":"completed"},"status_label":{"type":"string","example":"\u062a\u06a9\u0645\u06cc\u0644\u200c\u0634\u062f\u0647"},"total_toman":{"type":"integer","example":10260000},"usd_rate":{"type":"integer","example":190000,"description":"\u0646\u0631\u062e \u062f\u0644\u0627\u0631 \u0642\u0641\u0644\u200c\u0634\u062f\u0647 \u062f\u0631 \u0632\u0645\u0627\u0646 \u062e\u0631\u06cc\u062f"},"items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"quantity":{"type":"integer"},"unit_price_usd":{"type":"number"},"line_total_toman":{"type":"integer"},"delivered":{"type":"boolean"},"delivered_payload":{"type":"string","nullable":true,"description":"\u06a9\u062f\/\u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062a\u062d\u0648\u06cc\u0644"}}}}}},"Error":{"type":"object","properties":{"message":{"type":"string","example":"\u0645\u0648\u062c\u0648\u062f\u06cc \u06a9\u06cc\u0641 \u067e\u0648\u0644 \u06a9\u0627\u0641\u06cc \u0646\u06cc\u0633\u062a."}}}}},"paths":{"\/rate":{"get":{"tags":["\u0639\u0645\u0648\u0645\u06cc"],"summary":"\u0646\u0631\u062e \u0631\u0648\u0632 \u062f\u0644\u0627\u0631","security":[],"description":"\u0646\u0631\u062e \u062a\u0628\u062f\u06cc\u0644 \u062f\u0644\u0627\u0631 \u0628\u0647 \u062a\u0648\u0645\u0627\u0646 \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0647\u0645\u0647\u200c\u06cc \u0642\u06cc\u0645\u062a\u200c\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0646\u0631\u062e \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0648 \u062f\u0631 \u0641\u0627\u0635\u0644\u0647\u200c\u0647\u0627\u06cc \u06a9\u0648\u062a\u0627\u0647 (refresh_interval_minutes) \u0627\u0632 \u0628\u0627\u0632\u0627\u0631 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0645\u06cc\u200c\u0634\u0648\u062f\u061b \u0632\u0645\u0627\u0646 \u0622\u062e\u0631\u06cc\u0646 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u062f\u0631 updated_at \u0622\u0645\u062f\u0647 \u0627\u0633\u062a.","responses":{"200":{"description":"\u0645\u0648\u0641\u0642","content":{"application\/json":{"example":{"data":{"usd_to_irt_rate":190000,"currency":"IRT","auto_updated":true,"updated_at":"2026-09-02T11:05:00+00:00","refresh_interval_minutes":5}}}}}}}},"\/estimate":{"post":{"tags":["\u0639\u0645\u0648\u0645\u06cc"],"summary":"\u0628\u0631\u0622\u0648\u0631\u062f \u0647\u0648\u0634\u0645\u0646\u062f \u0642\u06cc\u0645\u062a \u0627\u0632 \u0631\u0648\u06cc \u0644\u06cc\u0646\u06a9","security":[],"description":"\u0644\u06cc\u0646\u06a9 \u0635\u0641\u062d\u0647\u200c\u06cc \u062e\u0631\u06cc\u062f \u06cc\u06a9 \u0645\u062d\u0635\u0648\u0644\/\u0627\u06a9\u0627\u0646\u062a \u062e\u0627\u0631\u062c\u06cc \u0631\u0627 \u0645\u06cc\u200c\u06af\u06cc\u0631\u062f\u060c \u0628\u0627 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc \u0642\u06cc\u0645\u062a \u0631\u0627 \u0645\u06cc\u200c\u062e\u0648\u0627\u0646\u062f\u060c \u0628\u0647 \u062f\u0644\u0627\u0631 \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u06f2\u06f5\u066a \u062d\u0642 \u062e\u062f\u0645\u0627\u062a \u0648 \u0632\u0645\u0627\u0646 \u0627\u0631\u0633\u0627\u0644 \u062f\u0628\u06cc\u2192\u0627\u06cc\u0631\u0627\u0646 (\u06f1\u06f0 \u0631\u0648\u0632) \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0642\u06cc\u0645\u062a \u0646\u0647\u0627\u06cc\u06cc \u062a\u0648\u0645\u0627\u0646\u06cc \u0648 \u0645\u062f\u062a \u062a\u062d\u0648\u06cc\u0644 \u0631\u0627 \u0628\u0631\u0645\u06cc\u200c\u06af\u0631\u062f\u0627\u0646\u062f. \u0645\u062d\u062f\u0648\u062f\u06cc\u062a: \u06f2\u06f0 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062f\u0631 \u062f\u0642\u06cc\u0642\u0647.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","example":"https:\/\/example.ae\/product\/some-account"}}},"example":{"url":"https:\/\/example.ae\/product\/some-account"}}}},"responses":{"200":{"description":"\u0645\u0648\u0641\u0642","content":{"application\/json":{"example":{"data":{"success":true,"product_name":"\u0627\u06a9\u0627\u0646\u062a \u0646\u0645\u0648\u0646\u0647","source":{"currency":"AED","price":199},"breakdown":{"unit_price_usd":54.19,"shipping_cost_usd":0,"service_fee_percent":25,"service_fee_usd":13.55,"total_usd":67.74,"usd_rate":190000,"total_toman":12870000},"delivery":{"seller_days":3,"extra_days":10,"total_days":13}}}}}},"422":{"description":"\u0642\u06cc\u0645\u062a \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f \/ \u062e\u0637\u0627\u06cc \u0633\u0631\u0648\u06cc\u0633","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/products":{"get":{"tags":["\u0639\u0645\u0648\u0645\u06cc"],"summary":"\u0644\u06cc\u0633\u062a \u0645\u062d\u0635\u0648\u0644\u0627\u062a","security":[],"description":"\u0644\u06cc\u0633\u062a \u0645\u062d\u0635\u0648\u0644\u0627\u062a \u0645\u0646\u062a\u0634\u0631\u0634\u062f\u0647 \u0628\u0627 \u0642\u06cc\u0645\u062a \u062f\u0644\u0627\u0631 \u0648 \u062a\u0648\u0645\u0627\u0646 (\u0635\u0641\u062d\u0647\u200c\u0628\u0646\u062f\u06cc\u200c\u0634\u062f\u0647).","parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"\u062c\u0633\u062a\u062c\u0648 \u062f\u0631 \u0639\u0646\u0648\u0627\u0646"},{"name":"category","in":"query","schema":{"type":"string"},"description":"\u0646\u0627\u0645\u06a9 \u062f\u0633\u062a\u0647"},{"name":"type","in":"query","schema":{"type":"string"},"description":"\u0646\u0648\u0639 \u0645\u062d\u0635\u0648\u0644 (\u0645\u062b\u0644 gift_card)"},{"name":"delivery","in":"query","schema":{"type":"string","enum":["instant","manual","service"]}},{"name":"sort","in":"query","schema":{"type":"string","enum":["latest","cheapest","expensive","popular"]}},{"name":"per_page","in":"query","schema":{"type":"integer","default":20,"maximum":50}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"\u0645\u0648\u0641\u0642","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product"}},"meta":{"type":"object"},"links":{"type":"object"}}}}}}}}},"\/products\/{slug}":{"get":{"tags":["\u0639\u0645\u0648\u0645\u06cc"],"summary":"\u062c\u0632\u0626\u06cc\u0627\u062a \u0645\u062d\u0635\u0648\u0644","security":[],"description":"\u062c\u0632\u0626\u06cc\u0627\u062a \u06a9\u0627\u0645\u0644 \u0645\u062d\u0635\u0648\u0644 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u06af\u0632\u06cc\u0646\u0647\u200c\u0647\u0627 (variants).","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"example":"\u06af\u06cc\u0641\u062a-\u06a9\u0627\u0631\u062a-\u0627\u067e\u0644-\u0622\u0645\u0631\u06cc\u06a9\u0627"}],"responses":{"200":{"description":"\u0645\u0648\u0641\u0642","content":{"application\/json":{"example":{"data":{"slug":"\u06af\u06cc\u0641\u062a-\u06a9\u0627\u0631\u062a-\u0627\u067e\u0644-\u0622\u0645\u0631\u06cc\u06a9\u0627","title":"\u06af\u06cc\u0641\u062a\u200c\u06a9\u0627\u0631\u062a \u0627\u067e\u0644 \u0622\u0645\u0631\u06cc\u06a9\u0627","has_variants":true,"price":{"usd":11.5,"toman":2185000,"from":true},"variants":[{"id":4,"title":"\u06f1\u06f0 \u062f\u0644\u0627\u0631\u06cc","price":{"usd":11.5,"toman":2185000},"in_stock":true},{"id":5,"title":"\u06f5\u06f0 \u062f\u0644\u0627\u0631\u06cc","price":{"usd":54,"toman":10260000},"in_stock":true}]}}}}},"404":{"description":"\u06cc\u0627\u0641\u062a \u0646\u0634\u062f","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/wallet":{"get":{"tags":["\u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0648 \u0633\u0641\u0627\u0631\u0634"],"summary":"\u0645\u0648\u062c\u0648\u062f\u06cc \u06a9\u06cc\u0641 \u067e\u0648\u0644","description":"\u0645\u0648\u062c\u0648\u062f\u06cc \u0641\u0639\u0644\u06cc \u06a9\u06cc\u0641 \u067e\u0648\u0644 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0647 \u062a\u0648\u0645\u0627\u0646.","responses":{"200":{"description":"\u0645\u0648\u0641\u0642","content":{"application\/json":{"example":{"data":{"balance_toman":5000000}}}}},"401":{"description":"\u0628\u062f\u0648\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/orders":{"get":{"tags":["\u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0648 \u0633\u0641\u0627\u0631\u0634"],"summary":"\u0644\u06cc\u0633\u062a \u0633\u0641\u0627\u0631\u0634\u200c\u0647\u0627","responses":{"200":{"description":"\u0645\u0648\u0641\u0642","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Order"}}}}}}}}},"post":{"tags":["\u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0648 \u0633\u0641\u0627\u0631\u0634"],"summary":"\u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634 (\u067e\u0631\u062f\u0627\u062e\u062a \u0627\u0632 \u06a9\u06cc\u0641 \u067e\u0648\u0644)","description":"\u06cc\u06a9 \u0645\u062d\u0635\u0648\u0644 \u0631\u0627 \u062e\u0631\u06cc\u062f\u0627\u0631\u06cc \u0648 \u0627\u0632 \u06a9\u06cc\u0641 \u067e\u0648\u0644 \u067e\u0631\u062f\u0627\u062e\u062a \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0645\u062d\u0635\u0648\u0644\u0627\u062a \u0686\u0646\u062f\u06af\u0632\u06cc\u0646\u0647\u200c\u0627\u06cc\u060c `variant_id` \u0627\u0644\u0632\u0627\u0645\u06cc \u0627\u0633\u062a. \u06a9\u062f \u062a\u062d\u0648\u06cc\u0644 \u0622\u0646\u06cc \u062f\u0631 \u067e\u0627\u0633\u062e \u0628\u0627\u0632\u0645\u06cc\u200c\u06af\u0631\u062f\u062f.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","oneOf":[{"required":["product_slug"]},{"required":["product_id"]}],"properties":{"product_slug":{"type":"string","example":"\u06af\u06cc\u0641\u062a-\u06a9\u0627\u0631\u062a-\u0627\u067e\u0644-\u0622\u0645\u0631\u06cc\u06a9\u0627"},"product_id":{"type":"integer"},"variant_id":{"type":"integer","nullable":true,"example":5},"quantity":{"type":"integer","default":1,"maximum":20}}},"example":{"product_slug":"\u06af\u06cc\u0641\u062a-\u06a9\u0627\u0631\u062a-\u0627\u067e\u0644-\u0622\u0645\u0631\u06cc\u06a9\u0627","variant_id":5,"quantity":1}}}},"responses":{"201":{"description":"\u0633\u0641\u0627\u0631\u0634 \u062b\u0628\u062a \u0648 \u062a\u062d\u0648\u06cc\u0644 \u0634\u062f","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Order"}}}}}},"422":{"description":"\u062e\u0637\u0627 (\u0645\u0648\u062c\u0648\u062f\u06cc \u0646\u0627\u06a9\u0627\u0641\u06cc \/ \u06af\u0632\u06cc\u0646\u0647 \u0646\u0627\u0645\u0639\u062a\u0628\u0631)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"\u0645\u062d\u0635\u0648\u0644 \u06cc\u0627\u0641\u062a \u0646\u0634\u062f","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/orders\/{order_number}":{"get":{"tags":["\u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0648 \u0633\u0641\u0627\u0631\u0634"],"summary":"\u062c\u0632\u0626\u06cc\u0627\u062a \u0633\u0641\u0627\u0631\u0634","parameters":[{"name":"order_number","in":"path","required":true,"schema":{"type":"string"},"example":"NTRZ-260630-AB12X"}],"responses":{"200":{"description":"\u0645\u0648\u0641\u0642","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Order"}}}}}},"404":{"description":"\u06cc\u0627\u0641\u062a \u0646\u0634\u062f","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}}}}