프로모션의 이름입니다. 키가 "^[a-z]{2}-[A-Z]{2}$" 형식의 로케일인
키/값 쌍을 포함해야 하며 값은 문자열입니다.
property name*
additional property
string
Array of type = string (objects) or Array of type = date (objects) or Array of type = number (objects)
사용자 특성 값과 비교되는 조건입니다.
작업을 적용하려면 모든 조건을 충족해야 합니다.
One of:
사용자 특성 값과 비교되는 조건입니다.
작업을 적용하려면 모든 조건을 충족해야 합니다.
[ 1 .. 100 ] items
Array ([ 1 .. 100 ] items)
attribute
required
string [ 1 .. 255 ] characters ^[-_.\d\w]+$
사용자 특성 코드입니다.
operator
required
string
조건에 따라 수행하는 작업 유형입니다. string 특성 유형에 해당합니다.
Enum:
Description
eq
같음
ne
같지 않음
value
required
string <= 255 characters
사용자 특성 값을 비교할 조건 값입니다. 유형은 특성 유형에 따라 다릅니다.
type
required
string
사용자 특성 유형입니다.
Value:"string"
can_be_missing
boolean
사용자 특성에서 특성이 누락된 경우에도 조건이 충족됨을 나타냅니다. 이 특성이 없는 사용자에게 항목을 표시하려면 true를 전달하십시오. 특성이 있지만 값이 조건에 지정된 값과 일치하지 않는 사용자는 항목을 볼 수 없습니다. false - 특성이 있지만 값이 조건에 지정된 값과 일치하지 않거나 특성이 누락된 사용자는 항목을 볼 수 없습니다.
Array of objects or null
Array
quantity
number
Default: 1
아이템 수량입니다.
sku
string
Default: "elven_shield"
아이템 SKU입니다.
date_end
string or null <date-time>
Default: "2020-04-15T18:16:00+05:00"
프로모션이 완료되는 날짜입니다. null일 수 있습니다. date_end가 null이면 프로모션이 시간 제한을 받지 않습니다.
date_start
string or null <date-time>
Default: "2020-04-15T18:16:00+05:00"
프로모션이 시작되는 날짜입니다.
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
201
쿠폰을 성공적으로 생성했습니다.
401
기본 인증이 전달되지 않았거나 잘못되었습니다. 기본 인증 또는 올바른 자격 증명을 사용했는지 확인해야 합니다.
422
잘못된 요청입니다.
Request samples
Payload
curl
JavaScript
Node.js
Python
C#
Go
Java
application/json
{
"attribute_conditions": [
{
"attribute": "account_status",
"can_be_missing": false,
"operator": "eq",
"type": "string",
"value": "golden"
}
],
"bonus": [
{
"quantity": 1,
"sku": "com.xsolla.elven_sword_2"
}
],
"date_end": "2020-04-25T18:16:00+05:00",
"date_start": "2020-04-15T18:16:00+05:00",
"external_id": "coupon_external_id",
"name": {
"de-DE": "Neujahrsbonus",
"en-US": "New Year Bonus"
},
"redeem_code_limit": 1,
"redeem_total_limit": 100,
"redeem_user_limit": 1
}
Response samples
201
401
422
application/json
{
"external_id": "coupon_external_id"
}
We respect your privacy
You can change or withdraw your consent at any time by going back to Privacy settings.
By clicking "Accept all", you give us consent to process your personal data and set all cookies. Alternatively, you can customize your preferences in Settings.