Transaction Action of GS2-Money

ConsumeAction

Gs2Money:WithdrawByUserId

Consume balance from wallet by specifying user ID

Actions for which quantity can be specified: YES

Reversible action: YES

TypeDescription
namespaceNamestringNamespace Name
userIdstring
Set #{userId} to replace the currently logged in user ID.
slotintSlot Number
countintQuantity of billable currency to be consumed
paidOnlyboolOnly for paid currency
{
    "action": "Gs2Money:WithdrawByUserId",
    "request": {
        "namespaceName": "[string]Namespace Name",
        "userId": "[string]User Id",
        "slot": "[int]Slot Number",
        "count": "[int]Quantity of billable currency to be consumed",
        "paidOnly": "[bool]Only for paid currency"
    }
}
action: Gs2Money:WithdrawByUserId
request:
  namespaceName: "[string]Namespace Name"
  userId: "[string]User Id"
  slot: "[int]Slot Number"
  count: "[int]Quantity of billable currency to be consumed"
  paidOnly: "[bool]Only for paid currency"

Gs2Money:RecordReceipt

Record receipt

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace Name
userIdstring
Set #{userId} to replace the currently logged in user ID.
contentsIdstringContent IDs sold on the store platform
receiptstringReceipt
{
    "action": "Gs2Money:RecordReceipt",
    "request": {
        "namespaceName": "[string]Namespace Name",
        "userId": "[string]User Id",
        "contentsId": "[string]Content IDs sold on the store platform",
        "receipt": "[string]Receipt"
    }
}
action: Gs2Money:RecordReceipt
request:
  namespaceName: "[string]Namespace Name"
  userId: "[string]User Id"
  contentsId: "[string]Content IDs sold on the store platform"
  receipt: "[string]Receipt"

AcquireAction

Gs2Money:DepositByUserId

Add balance to wallet by specifying user ID

Actions for which quantity can be specified: YES

Reversible action: YES

TypeDescription
namespaceNamestringNamespace Name
userIdstringSet #{userId} to replace the currently logged in user ID.
slotintSlot Number
pricefloatPurchase Price
countintQuantity of billable currency to be granted
{
    "action": "Gs2Money:DepositByUserId",
    "request": {
        "namespaceName": "[string]Namespace Name",
        "userId": "[string]User Id",
        "slot": "[int]Slot Number",
        "price": "[float]Purchase Price",
        "count": "[int]Quantity of billable currency to be granted"
    }
}
action: Gs2Money:DepositByUserId
request:
  namespaceName: "[string]Namespace Name"
  userId: "[string]User Id"
  slot: "[int]Slot Number"
  price: "[float]Purchase Price"
  count: "[int]Quantity of billable currency to be granted"

Gs2Money:RevertRecordReceipt

Record receipt

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace Name
userIdstringSet #{userId} to replace the currently logged in user ID.
receiptstringReceipt
{
    "action": "Gs2Money:RevertRecordReceipt",
    "request": {
        "namespaceName": "[string]Namespace Name",
        "userId": "[string]User Id",
        "receipt": "[string]Receipt"
    }
}
action: Gs2Money:RevertRecordReceipt
request:
  namespaceName: "[string]Namespace Name"
  userId: "[string]User Id"
  receipt: "[string]Receipt"