PayNow

UpsertGlobalCommandDto

Data transfer object used for creating new global commands or updating existing ones. Supports partial updates following PATCH semantics.

contentstringRequired
The command content to be executed.
execution_ruleenumRequired
Possible enum values
  • invalid
  • once_per_item

    Executes commands regularly, once per item (number of products * quantity times)

  • once_per_order

    Executes command only once per entire order

online_onlybooleanRequired
Indicates whether the command should only be executed when the player is online.
stageenumRequired
Defines the stages at which product commands can be executed.
Possible enum values
  • invalid

    Represents an invalid or unspecified command stage.

  • on_purchase

    Commands that should be executed when a product is purchased.

  • on_expire

    Commands that should be executed when a product expires.

  • on_refund

    Commands that should be executed when a product is refunded.

  • on_renew

    Commands that should be executed when a subscription is renewed.

  • on_chargeback

    Commands that should be executed when an order is charged back.

  • on_trial_start

    Commands that should be executed when a trial is started.

  • on_trial_expire

    Commands that should be executed when a trial expires.

override_execute_on_gameserver_idsFlakeId[]Optional
List of specific game server IDs where this command should be executed.
Example
{
  "content": "string",
  "execution_rule": "invalid",
  "online_only": true,
  "stage": "invalid",
  "override_execute_on_gameserver_ids": [
    "411486491630370816"
  ]
}