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
| Type | Description | |
|---|---|---|
| namespaceName | string | Namespace Name | 
| userId | string | |
| Set #{userId}to replace the currently logged in 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"
    }
}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
| Type | Description | |
|---|---|---|
| namespaceName | string | Namespace Name | 
| userId | string | |
| Set #{userId}to replace the currently logged in 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"
    }
}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
| Type | Description | |
|---|---|---|
| namespaceName | string | Namespace Name | 
| userId | string | Set #{userId}to replace the currently logged in 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"
    }
}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
| Type | Description | |
|---|---|---|
| namespaceName | string | Namespace Name | 
| userId | string | Set #{userId}to replace the currently logged in user ID. | 
| receipt | string | Receipt | 
{
    "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"