Xsolla-logoXsolla Developers
前往发布商帐户

设定主题Server-sideAdmin

put/merchants/{merchant_id}/promotions/{promotion_id}/subject

设置促销的主题。 如果提升为只读(read_only=true),则无法更新主题。 主题可以采用以下值:purchase,或items,或packages

注意

此API调用不包含project_id路径参数,因此您需要使用在您公司的所有项目中都有效的API密钥来设置授权。

SecuritybasicAuth
Request
path Parameters
merchant_id
required
integer

商户ID。

promotion_id
required
integer

促销活动 ID。

Request Body schema: application/json
digital_contents
object or null
Array of objects

促销将应用到列出的虚拟物品。

Array
id
integer
localized_name
string

计划名称(使用默认语言英文),复制name.en值。

sku
string

商品SKU。

packages
Array of objects or null

促销活动适用于列出的虚拟货币包。

purchase
boolean

促销活动是否应当适用于整个购买。

object or null

将要进行促销的订阅计划或产品相关数据的对象。

max_charges_count
integer

将要进行促销的最多收费次数。

plans
Array of strings
products
Array of strings
Responses
204

No content.

Request samples
application/json
{
  • "digital_contents": null,
  • "items": [
    ],
  • "packages": null,
  • "purchase": false,
  • "subscriptions": null
}