Sign up Log in
n/deal-hunter · 4d ago · 925 views
u/ypyik0669Diamond3 YEARS
n/deal-hunteru/ypyik0669 3 YEARS · 4d ago

ChatGPT Business first month free: one-click checkout script (auto eligibility check, coupon self-check)

team-1-month-free: first 5 standard seats are free for the first month, then $25/seat/month.
Prerequisites: an IP in the target region (US/Japan etc.), and a virtual card that can pass KYC.
The F12 trick:

(async () => {
  "use strict";
  const O = "https://chatgpt.com";
  const AUTO_OPEN = false;
  const qs = new URLSearchParams(location.search);
  const CODE = (qs.get("promoCode") || "").trim();
  const COUPON = CODE || "team-1-month-free";
  const SEATS = [5, 2, 1];
  const CUR = {US:"USD",JP:"JPY",GB:"GBP",AU:"AUD",CA:"CAD",SG:"SGD",MY:"MYR",TH:"THB",PH:"PHP",ID:"IDR",IN:"INR",BR:"BRL",MX:"MXN",NZ:"NZD",ZA:"ZAR",KR:"KRW",TW:"TWD",HK:"HKD",AE:"AED",TR:"TRY",PL:"PLN",CZ:"CZK",HU:"HUF",RO:"RON",BG:"BGN",DK:"DKK",SE:"SEK",NO:"NOK",CH:"CHF",IL:"ILS",DE:"EUR",FR:"EUR",IT:"EUR",ES:"EUR",NL:"EUR",IE:"EUR",AT:"EUR",BE:"EUR",PT:"EUR",FI:"EUR",GR:"EUR",SK:"EUR",SI:"EUR",LT:"EUR",LV:"EUR",EE:"EUR",LU:"EUR",MT:"EUR",CY:"EUR",HR:"EUR"};
  const log=(...a)=>console.log("%c[Business]","color:#10a37f;font-weight:700",...a);
  const warn=(...a)=>console.warn("%c[Business]","color:#d97706;font-weight:700",...a);
  const err=(...a)=>console.error("%c[Business]","color:#dc2626;font-weight:700",...a);
  const entry = CODE ? `${O}/?promoCode=${encodeURIComponent(CODE)}#pricing` : `${O}/?promo_campaign=${COUPON}#pricing`;
  if (location.origin !== O) { location.href = entry; return; }

  let token;
  try { token = (await fetch("/api/auth/session",{credentials:"include"}).then(r=>r.json())).accessToken; } catch(e){}
  if (!token) { warn("未登录,先登录再粘。"); return; }
  const H = {"Content-Type":"application/json","oai-language":navigator.language||"en-US",Authorization:"Bearer "+token};

  let me = {};
  try { me = await fetch("/backend-api/me",{headers:H}).then(r=>r.json()); } catch(e){}
  let country = "";
  try { const t = await fetch("/cdn-cgi/trace").then(r=>r.text()); country = (t.match(/\nloc=([A-Z]{2})/)||[])[1] || ""; } catch(e){}
  if (!country) country = me.country || "";
  country = (country || "US").toUpperCase();
  const currencies = Array.from(new Set(["USD", CUR[country] || "USD"]));
  log(`账号 ${me.email||"?"} | 出口地区 ${country} | 币种 ${currencies.join(" → ")}`);

  if (!CODE) {
    try {
      const s = await fetch(`/backend-api/promo_campaign/check_coupon?coupon=${encodeURIComponent(COUPON)}&is_coupon_from_query_param=true`, {headers:H}).then(r=>r.json());
      log("券状态:", s.state);
      if (s.state !== "eligible") warn("未命中该活动:多半是原价,换号或换地区。");
    } catch(e) {}
  }

  const build = (seats, currency) => ({
    entry_point: "team_workspace_purchase_modal", plan_name: "chatgptteamplan",
    team_plan_data: {workspace_name:"Team "+Math.random().toString(36).slice(2,6).toUpperCase(), price_interval:"month", seat_quantity:seats, seat_quantities:[{seat_type:"default",quantity:seats},{seat_type:"prolite",quantity:0}]},
    billing_details: {country, currency},
    supports_saved_payment_link: true, checkout_ui_mode: "custom", checkout_source: "chatgpt_web_merged",
    checkout_appearance: "dark", purchase_attempt_id: crypto.randomUUID(), cancel_url: entry,
    ...(CODE ? {promo_code: CODE} : {promo_campaign: {promo_campaign_id: COUPON, is_coupon_from_query_param: true}}),
  });

  let ok = null, last = "";
  outer: for (const seats of SEATS) {
    for (const currency of currencies) {
      log(`尝试 ${seats} 席 / ${currency} …`);
      let r, j = {};
      try { r = await fetch(`${O}/backend-api/payments/checkout`, {method:"POST", credentials:"include", headers:H, body: JSON.stringify(build(seats, currency))}); j = await r.json().catch(()=>({})); }
      catch(e){ last = e.message; continue; }
      if (r.ok && j.checkout_session_id) { ok = {seats, currency, id: j.checkout_session_id}; break outer; }
      last = `${r.status} ${j.detail || JSON.stringify(j).slice(0,80)}`;
      warn("  ↳", last);
      if (r.status === 401) { warn("token 失效,刷新重来。"); return; }
      if (/seat/i.test(last)) break;
    }
  }
  if (!ok) { err("全部失败:", last); return; }

  const url = `${O}/checkout/openai_llc/${ok.id}?source=chatgpt_web_merged&price_interval=month&${CODE?`promo_code=${encodeURIComponent(CODE)}`:`promo_campaign=${encodeURIComponent(COUPON)}`}`;
  let d = {};
  try { d = await fetch(`${O}/backend-api/payments/checkout/openai_llc/${ok.id}?supports_business_seat_offer=true`, {headers:H}).then(r=>r.json()); } catch(e){}
  const applied = !!(d.promo_campaign || d.promo_code || d.immediate_discount_settings || d.scheduled_discount_preview);
  if (applied) log("✅ 券已挂上,金额应为 0");
  else warn(`⚠️ 未带券(${d.status||"?"}),原价,别付`);
  try { await navigator.clipboard.writeText(url); } catch(e){}
  log(`结果 ${applied?"APPLIED":"NOT_APPLIED"} | ${ok.seats} 席 | ${ok.currency} | ${country}`);
  log("链接已复制:\n", url);
  if (AUTO_OPEN) location.href = url;
})();

How to use: connect through an IP in the target region, open https://chatgpt.com/?promo_campaign=team-1-month-free#pricing, log in → paste → look at the last line. If it says APPLIED, open the link, fill in a billing address in that region (for the US use a tax-free state to dodge the service tax), make sure Due today is 0, then hit Subscribe. NOT_APPLIED means you're not eligible.

Eligibility is rollout-based. Remember to cancel the subscription after it goes through, otherwise you'll be charged $125 next month.

Links with ?promoCode= go through the promo_code path, so if you have a working code you can use it directly.

If you get eligible, feel free to reply with your result + exit region.

Translated by AI from 简体中文

7
12
Log into join the discussion.

12 replies

Sort order
  1. ypyik0669 Diamond OP 3 YEARS 4d ago

    If it shows $125 when you click in, then there's no way to crack it — try injecting the script with a different account each time. I haven't managed to get it working either, but the script logic is there.

    Translated by AI from 简体中文

    2
  2. chen_yuan Silver 3 YEARS 4d ago

    For me it worked after changing the Google billing address to Japan—it's just that the card I have won't go through.

    Translated by AI from 简体中文

    1
  3. ypyik0669 Diamond OP 3 YEARS 4d ago

    Redirect to Stripe checkout with a script

    Translated by AI from 简体中文

    0
  4. jibukeshi Platinum Never leave, never forsake 4d ago

    Man, it sucks not having a card.

    Translated by AI from 简体中文

    0
  5. ypyik0669 Diamond OP 3 YEARS 4d ago

    The neighboring site recommended a card.

    Translated by AI from 简体中文

    0
  6. James 💯 Legend MANAGER 4d ago

    666, I'll check it out later on my alt

    Translated by AI from 简体中文

    0
  7. vinh_tran1 Silver 4d ago

    anyone able to do it?

    Translated by AI from Tiếng Việt

    0
  8. foxciq Silver 4d ago

    Only free for the first month? And does that 0-cost team method from a while back still work?

    Translated by AI from 简体中文

    0
  9. ypyik0669 Diamond OP 3 YEARS 4d ago

    5 seats for $0 is basically 5 Plus accounts lol
    I saw someone on the other forum getting 51 seats for 25 bucks

    Translated by AI from 简体中文

    0
  10. qiudun66 Silver 4d ago

    Which site is the one next door, boss?

    Translated by AI from 简体中文

    0
  11. ypyik0669 Diamond OP 3 YEARS 4d ago

    L站

    0
  12. ae80 Gold Never leave, never forsake 4d ago

    Think it'll work, everyone?

    Translated by AI from 简体中文

    0