Xsolla-logoXsolla Developers
または
パブリッシャーアカウントへ

デイリー報酬の作成Server-sideAdmin

post/v2/project/{project_id}/admin/daily_chain

デイリー報酬を作成します。

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

プロジェクトID。このパラメータは、パブリッシャーアカウントのプロジェクト名の横にあります。

Example: 44056
Request Body schema: application/json
One of:

Base properties for calendar_hard daily reward type.

required
(two-letter (object or null)) or (five-letter (object or null))

アイテム名に関するローカライズ用オブジェクト。2文字の小文字の言語コード(例:en)または5文字の言語コード(例:en-US)のいずれかの形式で値を受け入れます。どちらの形式も入力として受け入れられますが、応答は2文字の小文字の言語コードを返します。同じ言語に対して両方のオプションが提供された場合(例:enen-US)、最後に提供された値が保存されます。サポートされている言語の完全なリストは、ドキュメントで確認できます。

One of:

2文字の小文字の言語コード。

ar
string or null

アラビア語

bg
string or null

ブルガリア語

cn
string or null

中国語(簡体字)

cs
string or null

チェコ語

de
string or null

ドイツ語

en
string or null

英語

es
string or null

スペイン語(スペイン)

fr
string or null

フランス語

he
string or null

ヘブライ語

id
string or null

インドネシア語

it
string or null

イタリア語

ja
string or null

日本語

km
string or null

クメール語

ko
string or null

韓国語

lo
string or null

ラオス語

my
string or null

ビルマ語

ne
string or null

ネパール語

ph
string or null

フィリピン語

pl
string or null

ポーランド語

pt
string or null

ポルトガル語

ro
string or null

ルーマニア語

ru
string or null

ロシア語

th
string or null

タイ語

tr
string or null

トルコ語

tw
string or null

中国語(繁体字)

vi
string or null

ベトナム語

date_start
required
string <date-time>

デイリー報酬の開始日。

required
Array of objects
Array
step_number
required
integer >= 1

ステップ番号。

required
Array of objects non-empty
Array (non-empty)
sku
required
string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\-–.]*$

一意のアイテムID。SKUには、小文字と大文字のラテン英数字、ピリオド、ダッシュ、およびアンダースコアのみが含まれます。

quantity
required
integer >= 1

該当SKUに設定されたデイリー報酬ステップの数量

is_enabled
required
boolean
type
required
string

Daily reward type that determines when users can claim rewards.

Enum: Description
calendar_hard

Unlocks the next step reward every 24 hours. Any unclaimed step rewards are permanently lost once the next step reward becomes available.

rolling_skippable

Unlocks the next step reward every 24 hours based on date_start. Progression is sequential: a new reward will not unlock until the previous one has been claimed. If a user skips one or more days, they continue from where they left off; missed days do not grant multiple rewards.

rolling_unskippable

Unlocks the next step reward every 24 hours based on date_start. Progression is sequential: a new reward will not unlock until the previous one has been claimed. However, if a user skips a day, their progress is reset, and they must start again from the first step.

is_recurrent
boolean
Default: false

Whether the daily reward is recurrent. If true, the daily reward will automatically reset after the end date. The next start_date and end_date schedule is based on the number of daily reward steps and the initial time set on start_date.

(two-letter (object or null)) or (five-letter (object or null))

アイテムの説明に関するローカライズ用オブジェクト。2文字の小文字の言語コード(例:en)または5文字のロケールコード(例:en-US)のいずれかの形式で値を受け入れます。どちらの形式も入力として受け入れられますが、応答は2文字の小文字の言語コードを返します。同じ言語に対して両方のオプションが提供された場合(例:enen-US)、最後に提供された値が保存されます。サポートされている言語の完全なリストは、ドキュメントで確認できます。

One of:

2文字の小文字の言語コード。

ar
string or null

アラビア語

bg
string or null

ブルガリア語

cn
string or null

中国語(簡体字)

cs
string or null

チェコ語

de
string or null

ドイツ語

en
string or null

英語

es
string or null

スペイン語(スペイン)

fr
string or null

フランス語

he
string or null

ヘブライ語

id
string or null

インドネシア語

it
string or null

イタリア語

ja
string or null

日本語

km
string or null

クメール語

ko
string or null

韓国語

lo
string or null

ラオス語

my
string or null

ビルマ語

ne
string or null

ネパール語

ph
string or null

フィリピン語

pl
string or null

ポーランド語

pt
string or null

ポルトガル語

ro
string or null

ルーマニア語

ru
string or null

ロシア語

th
string or null

タイ語

tr
string or null

トルコ語

tw
string or null

中国語(繁体字)

vi
string or null

ベトナム語

order
integer

配列順序を定義します。

Responses
201

デイリー報酬が正常に作成されました。

401

基本認証が不合格または不正です。基本認証または正しい認証情報を使用したことを確認してください。

422

デイリー報酬の誤った設定エラー。

Request samples
application/json
{
  • "date_start": "2023-04-15T18:16:00+05:00",
  • "description": {
    },
  • "is_enabled": true,
  • "name": {
    },
  • "order": 4,
  • "steps": [
    ],
  • "type": "calendar_hard"
}
Response samples
application/json
{
  • "daily_chain_id": 10
}