payg

Purchase Payg

首购 / 续买 / 复活。HTTP 200 + success + code;钱路径整个在线程池里跑。

currency 大小写不敏感(cny 也行);不是 CNY / USD ⇒ HTTP 200 + code=invalid_currency(不是 422,与其它业务拒绝 同一约定)。成功后的 Telegram 通知与 60 秒复核在后台跑,不拖慢响应。

post/api/v1/payg/purchase

Request

  • Base URL: https://qcode.cc (the document declares no server; this is the origin it was published from)
  • URL: https://qcode.cc/api/v1/payg/purchase
  • Auth: none declared

Request body

pack_idstring required

week / month / bimonth / quarter

currencystring required

CNY 或 USD,大小写不敏感;其它值返回 HTTP 200 + code=invalid_currency

languagestring nullable

界面语言,缺省用请求语言

request_tokenstring nullable

客户端幂等键(同一次购买重试用同一个)

Response

Successful Response

successboolean required
codestring required
messagestring required
kindstring nullable
api_key_valuestring nullable
limit_afterinteger nullable
remaining_usdnumber nullable
expires_atstring nullable
expires_at_isostring nullable
amount_chargednumber nullable
currencystring nullable
new_balancenumber nullable

Changes