{API_URL}
字段名称 | 类型 | 长度 | 必要 | 描述 |
---|---|---|---|---|
itype | string | 21 | 是 | 30 = 生成兑换码 |
authcode | string | 32 | 是 | 代理标识,由厂商配发 |
authkey | string | 32 | 是 | 代理秘钥,由厂商配发 |
info | string | 128 | 是 | 兑换码标识 |
quantity | int | 32 | 是 | 生成兑换码数量 |
type | int | 32 | 是 | 类型:1=唯一码, 2=共享码 |
exchangelimit | int | 32 | 是 | 每个码的兑换次数 |
accountlimit | int | 是 | 每个码单个账号兑换次数 | |
score | int64 | 64 | 是 | 兑换码面额 |
st | int64 | 64 | 是 | 有效期起始时间 |
ed | int64 | 64 | 是 | 有效期结束时间 |
URL:
HTTP Method(请求方式):
POST
表单数据:
Content-Type:
application/x-www-form-urlencoded
itype :30
authcode :test666
authkey :KepYRwz4mOP3THAcfiQb
info :National Day Activity
quantity :10
type :2
exchangelimit :10
accountlimit :2
score :1000
st :1758272961261
et :1758652455165
字段名称 | 类型 | 长度 | 说明 |
---|---|---|---|
ret | int | 32 | -1 表示成功,非 -1 表示失败 |
data | arr | 2048 | 返回创建的兑换码code |
{
"ret": -1,
"info": "ok",
"data": [
"29EZ3V",
"4DQNMU",
"59NW2Q",
"CZX79Z",
"DDUWYR",
"M6FP3L",
"N53J44",
"PBFYHS",
"QXQWZN",
"USYFQN"
]
}