Xsolla-logo
  • 文档
  • 创建帐户

创建奖励积分

post/v2/project/{project_id}/admin/items/value_points

创建一个奖励积分。

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

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

Example: 44056
Request Body schema: application/json
sku
required
string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$

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

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
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

图像URL。

is_enabled
boolean
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
Array of objects

商品的附加资源,例如屏幕截图、游戏视频等。

Array
type
string

媒体类型:image/video

Enum: "image" "video"
url
string

资源文件。

order
integer

定义排列顺序。

Responses
201

已成功创建奖励积分。

401

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

422

无效的请求。

Request samples
application/json
{}
Response samples
application/json
{
  • "item_id": 10,
  • "sku": "new-sku"
}