Xsolla-logoXsolla Developers
또는
관리자 페이지로

유효 기간 설정Server-sideAdmin

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

프로모션이 유효한 날짜/시간 범위를 설정합니다. 프로모션이 읽기 전용(read_only = true)인 경우 기존 기간을 편집할 수 없지만 새 기간을 추가할 수는 있습니다.

주의

이 API 호출에는 project_id 경로 매개 변수가 포함되어 있지 않으므로 회사의 모든 프로젝트에서 유효한 API 키를 사용하여 인증을 설정해야 합니다.

SecuritybasicAuth
Request
path Parameters
merchant_id
required
integer

판매자 ID입니다.

promotion_id
required
integer

프로모션 ID입니다.

Request Body schema: application/json
Array of objects

날짜/시간 범위.

Array
from
string <datetime>

날짜 범위의 시작입니다.

offset
string

목록이 생성된 요소 개수(개수는 0부터 시작함)입니다.

to
string <datetime>

날짜 범위의 끝입니다.

Responses
204

콘텐츠가 없습니다.

Request samples
application/json
{
  • "periods": [
    ]
}