GS2-SerialKey トランザクションアクション

ConsumeAction

Gs2SerialKey:UseByUserId

ユーザIDを指定してシリアルコードを消費

数量指定可能なアクション:いいえ

反転可能なアクション:はい

説明
namespaceNamestringネームスペース名
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
codestringシリアルコード
{
    "action": "Gs2SerialKey:UseByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "userId": "[string]ユーザーID",
        "code": "[string]シリアルコード"
    }
}
action: Gs2SerialKey:UseByUserId
request:
  namespaceName: "[string]ネームスペース名"
  userId: "[string]ユーザーID"
  code: "[string]シリアルコード"

AcquireAction

Gs2SerialKey:RevertUseByUserId

ユーザIDを指定してシリアルコードを消費

数量指定可能なアクション:いいえ

反転可能なアクション:はい

説明
namespaceNamestringネームスペース名
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
codestringシリアルコード
{
    "action": "Gs2SerialKey:RevertUseByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "userId": "[string]ユーザーID",
        "code": "[string]シリアルコード"
    }
}
action: Gs2SerialKey:RevertUseByUserId
request:
  namespaceName: "[string]ネームスペース名"
  userId: "[string]ユーザーID"
  code: "[string]シリアルコード"