Xsolla-logo
前往发布商帐户

更新特别目录优惠促销活动Server-sideAdmin

put/v3/project/{project_id}/admin/unique_catalog_offer/{external_id}

更新特别目录优惠促销活动。

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

项目ID。您可以在您的发布商帐户项目名称旁边找到。

Example: 44056
external_id
required
integer

促销活动外部ID。项目内的唯一促销活动标识符。

Example: coupon_44056_1
Request Body schema: application/json
required
object
Default: {"de-DE":"Gutscheintitel","en-US":"Coupon title"}

促销活动名称。应包含键/值对, 其中键是"^[a-z]{2}-[A-Z]{2}$"格式的区域设置,值是字符串。

property name*
additional property
string
items
Array of strings

使用特别目录优惠后可用的商品SKU列表。

Array of objects

促销活动有效期。若指定了多个时间段,则date_fromdate_until均为必需。

Array
date_from
required
string <date-time>

指定促销活动的开始日期。

date_until
string or null <date-time>

促销活动的结束日期。设置为null时,促销活动永久有效。仅在指定单个有效期时可设置为null

redeem_code_limit
integer or null
Default: 10

每个代码的兑换次数。

redeem_total_limit
integer or null
Default: 10

限制优惠券的总数。

redeem_user_limit
integer or null
Default: 10

限制单个用户兑换的优惠券总数。

Responses
204

特别目录优惠已成功更新。

401

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

404

未找到优惠券。请确保external_id正确无误。

422

无效请求。

Request samples
application/json
{
  • "items": [
    ],
  • "name": {
    },
  • "promotion_periods": [
    ],
  • "redeem_code_limit": 1,
  • "redeem_total_limit": 100,
  • "redeem_user_limit": 1
}
Response samples
application/json
{
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred",
  • "statusCode": 401
}