GmailStoreGmailStore

文档指南

GmailStore

GmailStore

专业账号服务提供商,提供 Gmail/谷歌账号、Apple ID/苹果账号、批量购买和 API 对接服务。

商品

  • 全新 Gmail
  • 老号 Gmail
  • 批量 Gmail
  • 临时邮箱

支持

  • 订单查询
  • 常见问题
  • API 文档
  • 联系我们
  • 关于我们
  • 服务条款

© 2026 GmailStore. 保留所有权利。

API 开发者文档

当前公开 Web API 说明,接口路径与线上保持一致

API 基础地址:https://getgmailstore.com/api

快速开始

欢迎使用 GmailStore 当前公开 Web API。本页只是线上接口说明,只描述生产环境已经存在的接口,不提供 API Key 申请、调用统计或开发者控制台功能。

###

  1. 基础地址

所有公开接口都使用主站同域名:

text
https://getgmailstore.com/api

###

  1. 发送第一个请求
bash
curl -X GET https://getgmailstore.com/api/products

###

  1. 响应格式

当前接口返回 JSON,通常包含 success 字段:

json
{
  "success": true,
  "products": []
}

###

  1. 重要说明

本页只是当前线上接口说明,不是开发者控制台。用户通过接口下单购买账号时,余额支付会按订单金额扣款;API 调用本身不单独收费。需要自动化采购或专用接入时,请先联系管理员开通。


认证鉴权

当前公开商品和订单查询接口不需要 API Key。完成订单可通过“订单号 + 联系邮箱”查询账号明细。

余额支付需要用户登录后的 Bearer Token。登录接口返回的 token 可放在请求头:

text
Authorization: Bearer USER_TOKEN

登录接口:

text
POST /api/auth/login

请求体:

json
{
  "email": "[email protected]",
  "password": "your-password"
}

不需要登录的接口

  • GET /api/products
  • GET /api/products/:idOrSlug
  • GET /api/orders/query?order_no=...&email=...(完成订单会返回账号和密码;同 IP 60 秒最多 3 次,同订单号+邮箱 60 秒最多 2 次)
  • GET /api/orders/:id/status?token=...(带订单访问令牌时返回账号明细)

可能需要登录的接口

POST /api/orders/create 创建订单时,如果支付方式为余额支付:

  • balance_cny
  • balance_crypto

请求需要带用户登录后的 Bearer Token。其他支付方式,例如 crypto,不强制要求登录。

通过接口下单购买账号时,系统会按订单金额从账户余额扣款;API 调用本身不单独收费。

管理员和内部接口

/api/admin/*、/api/orders/clean 等接口不是公开 API。它们需要管理员 Token 或服务器内部密钥,不应给普通用户调用。


API 端点

获取产品列表

text
GET /api/products

返回所有上架商品及单价。

响应示例:

json
{
  "success": true,
  "products": [
    {
      "id": "30a6d792-9e06-4023-85f4-736dfd9af07d",
      "slug": "gmail-usa-fresh",
      "name_zh": "谷歌企业/教育邮箱",
      "name_en": "Google Workspace / Education Email",
      "stock": 44,
      "min_quantity": 5,
      "price":
0.5
    }
  ]
}

获取产品详情

text
GET /api/products/:idOrSlug

支持用产品 id 或 slug 查询。

创建订单

text
POST /api/orders/create
参数类型必填说明
productIdstring是产品 ID。必须使用 GET /api/products 返回的 id,不要使用 slug
quantityinteger是购买数量。单次最多 200 个,且不能超过库存;最低数量以商品 min_quantity 为准
contactEmailstring是接收订单和查询订单用的邮箱
paymentMethodstring是支付方式。可写:crypto、balance_cny、balance_crypto、alipay、wechat
coinstring否仅 paymentMethod=crypto 时必填。可写:trc20_usdt、erc20_usdt、bep20_usdt、btc、eth、trx、bnb
couponCodestring否优惠码,不使用时可省略

paymentMethod 取值说明:

值说明是否需要 Bearer Token
crypto加密货币链上支付,返回收款地址和应付金额否
balance_cny人民币余额支付,按订单金额扣 users.balance是
balance_crypto虚拟币余额支付,按汇率折算后扣 users.balance_crypto是
alipay支付宝外部收银台支付,是否可用以 /api/payment-config 为准否
wechat微信外部收银台支付,是否可用以 /api/payment-config 为准否

余额支付需要在请求头中带登录后的用户 Token:

text
Authorization: Bearer USER_TOKEN

加密货币支付示例:

json
{
  "productId": "30a6d792-9e06-4023-85f4-736dfd9af07d",
  "quantity": 10,
  "contactEmail": "[email protected]",
  "paymentMethod": "crypto",
  "coin": "trc20_usdt"
}

人民币余额支付示例:

json
{
  "productId": "30a6d792-9e06-4023-85f4-736dfd9af07d",
  "quantity": 10,
  "contactEmail": "[email protected]",
  "paymentMethod": "balance_cny"
}

查询订单

text
GET /api/orders/query?order_no=GS2604291234ABCD&[email protected]

必须同时提供订单号和邮箱。订单已完成时,此接口会返回该订单的账号和密码;接口已开启频率限制:同 IP 60 秒最多 3 次,同订单号+邮箱组合 60 秒最多 2 次。

查询订单支付/发货状态

text
GET /api/orders/:id/status

代码示例

Python

python
import requests

BASE_URL = "https://getgmailstore.com/api"

# 获取产品列表
response = requests.get(f"{BASE_URL}/products")
products = response.json()["products"]

# 创建订单
order = requests.post(
    f"{BASE_URL}/orders/create",
    json={
        "productId": products[0]["id"],
        "quantity": 10,
        "contactEmail": "[email protected]",
        "paymentMethod": "crypto",
        "coin": "trc20_usdt"
    }
)
print(order.json())

Node.js

javascript
const BASE_URL = "https://getgmailstore.com/api";

// 获取产品列表
const products = await fetch(`${BASE_URL}/products`);
const productList = await products.json();
console.log(productList);

// 创建订单
const order = await fetch(`${BASE_URL}/orders/create`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    productId: productList.products[0].id,
    quantity: 10,
    contactEmail: "[email protected]",
    paymentMethod: "crypto",
    coin: "trc20_usdt",
  }),
});
console.log(await order.json());

cURL

bash
# 获取产品列表
curl -X GET https://getgmailstore.com/api/products

# 创建订单
curl -X POST https://getgmailstore.com/api/orders/create \
  -H "Content-Type: application/json" \
  -d '{"productId":"30a6d792-9e06-4023-85f4-736dfd9af07d","quantity":10,"contactEmail":"[email protected]","paymentMethod":"crypto","coin":"trc20_usdt"}'

# 人民币余额支付
curl -X POST https://getgmailstore.com/api/orders/create \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer USER_TOKEN" \
  -d '{"productId":"30a6d792-9e06-4023-85f4-736dfd9af07d","quantity":10,"contactEmail":"[email protected]","paymentMethod":"balance_cny"}'

错误码参考

HTTP 状态码

状态码说明
200请求成功
400请求参数错误
401需要登录或内部密钥
403权限不足
404资源不存在
500服务器内部错误

常见错误信息

错误信息说明
Product not found产品不存在或已下架
Insufficient stock库存不足
Insufficient balance余额不足
Minimum quantity is ...数量低于最低起订量
Quantity cannot exceed 200单次购买数量超过 200
Please provide both order number and email查询订单时必须同时提供订单号和邮箱

错误响应格式

json
{
  "success": false,
  "error": "Product not found"
}