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
}