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

콘텐츠가 없습니다.

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