{
  "info": {
    "name": "JungTzy Store API",
    "description": "Official store: https://www.jungtzystore.shop\n\nVariables:\n- base_url — production: https://www.jungtzystore.shop ; local dev: http://127.0.0.1:5000\n- api_key — create at Profile after login (POST /api/me/api-key in browser only; not with Bearer).\n- catalog_product_url — paste the \"url\" field from GET {{base_url}}/api/products (same link the store uses for each game/product).\n\nBearer alternative: header X-API-Key or ?api_key=",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "base_url", "value": "https://www.jungtzystore.shop" },
    { "key": "api_key", "value": "" },
    { "key": "catalog_product_url", "value": "" }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{api_key}}", "type": "string" }]
  },
  "item": [
    {
      "name": "Public (no API key)",
      "item": [
        {
          "name": "GET /api/docs",
          "request": {
            "auth": { "type": "noauth" },
            "method": "GET",
            "url": "{{base_url}}/api/docs"
          }
        },
        {
          "name": "GET /api/products",
          "request": {
            "auth": { "type": "noauth" },
            "method": "GET",
            "url": "{{base_url}}/api/products"
          }
        },
        {
          "name": "GET /api/product-details",
          "request": {
            "auth": { "type": "noauth" },
            "method": "GET",
            "url": "{{base_url}}/api/product-details?url={{catalog_product_url}}"
          }
        },
        {
          "name": "GET /api/account-fields",
          "request": {
            "auth": { "type": "noauth" },
            "method": "GET",
            "url": "{{base_url}}/api/account-fields?url={{catalog_product_url}}"
          }
        }
      ]
    },
    {
      "name": "Authenticated (API key)",
      "item": [
        {
          "name": "GET /api/me",
          "request": { "method": "GET", "url": "{{base_url}}/api/me" }
        },
        {
          "name": "GET /api/orders",
          "request": { "method": "GET", "url": "{{base_url}}/api/orders" }
        },
        {
          "name": "GET /api/orders by id",
          "request": { "method": "GET", "url": "{{base_url}}/api/orders/1" }
        },
        {
          "name": "GET /api/order-status",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/api/order-status?order_id=1"
          }
        },
        {
          "name": "POST /api/order",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"{{catalog_product_url}}\",\n  \"package_brl_cents\": 99,\n  \"package_name\": \"Example package\",\n  \"package_index\": 0,\n  \"mmk_price\": \"8,150\",\n  \"product_name\": \"Game\",\n  \"form_data\": { \"game_id\": \"12345678\", \"server_id\": \"1234\" },\n  \"smile_li_id\": \"\"\n}"
            },
            "url": "{{base_url}}/api/order"
          }
        }
      ]
    }
  ]
}
