Transaction Action of GS2-SerialKey

ConsumeAction

Gs2SerialKey:UseByUserId

Consume Serial Code by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
userIdstring
Set #{userId} to replace the currently logged in user ID.
codestringSerial Code
{
    "action": "Gs2SerialKey:UseByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "code": "[string]Serial Code"
    }
}
action: Gs2SerialKey:UseByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  code: "[string]Serial Code"

AcquireAction

Gs2SerialKey:RevertUseByUserId

Consume Serial Code by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
userIdstringSet #{userId} to replace the currently logged in user ID.
codestringSerial Code
{
    "action": "Gs2SerialKey:RevertUseByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "code": "[string]Serial Code"
    }
}
action: Gs2SerialKey:RevertUseByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  code: "[string]Serial Code"