{
  "openapi": "3.1.0",
  "info": {
    "title": "South Korea Import Customs Duty, AliExpress/Amazon Landed Cost & FX Break-Even API",
    "version": "2.4.0",
    "description": "Computes South Korean import customs duty, VAT, US-KOR $200 vs $150 de-minimis exemptions, multi-currency FX (USD, JPY, EUR, CNY), AliExpress coin vs coupon taxable base, and cross-border USDC vs Wise/SWIFT payout fees."
  },
  "servers": [
    {
      "url": "https://smart-deal-calculator.b2bintel-edge.workers.dev"
    }
  ],
  "paths": {
    "/api/calculate-customs": {
      "get": {
        "operationId": "calculateKoreaImportCustoms",
        "summary": "Calculate South Korea import duty, VAT, and landed KRW break-even vs domestic Coupang Rocket (Free)",
        "parameters": [
          {
            "name": "keyword",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Mac mini M4"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "pc_parts"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "JP"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "JPY"
            }
          },
          {
            "name": "price",
            "in": "query",
            "schema": {
              "type": "number",
              "default": 94800
            }
          },
          {
            "name": "domestic_krw",
            "in": "query",
            "schema": {
              "type": "number",
              "default": 890000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Landed KRW customs, VAT, and break-even comparison"
          }
        }
      }
    },
    "/v1/x402/import-tariff-audit": {
      "get": {
        "operationId": "auditImportTariffAndPayoutX402",
        "summary": "Combined South Korea import customs tariff + AliExpress promo threshold + cross-border FX payout audit ($0.005 USDC via x402 on Base)",
        "parameters": [
          {
            "name": "keyword",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Mac mini M4"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "pc_parts"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "JP"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "JPY"
            }
          },
          {
            "name": "price",
            "in": "query",
            "schema": {
              "type": "number",
              "default": 94800
            }
          },
          {
            "name": "domestic_krw",
            "in": "query",
            "schema": {
              "type": "number",
              "default": 890000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Settled customs tariff & FX break-even audit"
          },
          "402": {
            "description": "x402 v2 Payment Required with Bazaar discovery schema"
          }
        }
      }
    }
  }
}