Xsolla-logo
  • 文档
  • 创建帐户

创建奖励链

post/v2/project/{project_id}/admin/reward_chain

创建奖励链。

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

项目编号。您可以在您的发布商帐户项目名称旁边。

Example: 44056
Request Body schema: application/json
required
object

包含本地化商品名称的对象。两个小写字母的语言代码

ar
string or null
bg
string or null
cn
string or null
cs
string or null
de
string or null
en
string or null
es
string or null
fr
string or null
he
string or null
it
string or null
ja
string or null
ko
string or null
pl
string or null
pt
string or null
ro
string or null
ru
string or null
th
string or null
tr
string or null
tw
string or null
vi
string or null
required
object
sku
required
string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$

唯一商品ID。 SKU只能包含小写英文字母和数字字符、句点、破折号和下划线。

date_start
required
string <date-time>

奖励链的开始日期。

required
Array of objects
Array
required
object

包含本地化商品名称的对象。两个小写字母的语言代码

ar
string or null
bg
string or null
cn
string or null
cs
string or null
de
string or null
en
string or null
es
string or null
fr
string or null
he
string or null
it
string or null
ja
string or null
ko
string or null
pl
string or null
pt
string or null
ro
string or null
ru
string or null
th
string or null
tr
string or null
tw
string or null
vi
string or null
required
object
amount
required
integer

以奖励积分表示的步骤价格。

required
Array of objects
Array
sku
required
string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$

唯一商品ID。 SKU只能包含小写英文字母和数字字符、句点、破折号和下划线。

quantity
required
integer

商品数量。

image_url
string or null

图像URL。

is_enabled
required
boolean
date_end
string or null <date-time>

奖励链促销活动的结束日期。可以是null。如果date_endnull,则奖励链无时间限制。

object

包含本地化商品描述的对象。两个小写字母的语言代码

ar
string or null
bg
string or null
cn
string or null
cs
string or null
de
string or null
en
string or null
es
string or null
fr
string or null
he
string or null
it
string or null
ja
string or null
ko
string or null
pl
string or null
pt
string or null
ro
string or null
ru
string or null
th
string or null
tr
string or null
tw
string or null
vi
string or null
image_url
string or null

图像URL。

object

包含本地化商品长描述的对象。两个小写字母的语言代码

ar
string or null
bg
string or null
cn
string or null
cs
string or null
de
string or null
en
string or null
es
string or null
fr
string or null
he
string or null
it
string or null
ja
string or null
ko
string or null
pl
string or null
pt
string or null
ro
string or null
ru
string or null
th
string or null
tr
string or null
tw
string or null
vi
string or null
order
integer

定义排列顺序。

(interval_type = weekly (object or null)) or (interval_type = monthly (object or null))

奖励链的重置周期。

One of:

按周刷新奖励链。

interval_type
required
string

奖励链定期重置的频率。

Value: "weekly"
time
required
string((0[0-9]|1[0-9]|2[0-3]):00:00)(\+|-)(0[0-9]|1...

用所需时区重置奖励链的时间(四舍五入到小时)。

例如,奖励链重置的设定时间为吉隆坡时区(GMT+8)的01:00。在这种情况下,time参数的值为01:00:00+08:00

day_of_week
required
integer [ 1 .. 7 ]

在一周中的哪一天重置奖励链,其中“1”是星期一,“7”是星期日。

Responses
201

已成功创建奖励链。

401

基本认证未通过或错误。确保您使用了基本认证或正确的凭据。

422

无效的请求。

Request samples
application/json
{}
Response samples
application/json
{
  • "reward_chain_id": 10
}