Tip4Serv · Schema

UpdateProduct

GamingMonetizationE-CommercePlatform

Properties

Name Type Description
name string Name of the product.
status boolean Indicates whether the product is enabled. If not specified, the product will be automatically enabled
slug string URL-friendly name of the product. If not specified will be automatically calculated.
price integer Current price of the product after any applicable discounts, in the store's currency.
recurring_discount boolean Indicates whether the discount is applied on each occurrence of the subscription.
donation boolean Indicates if the product is a donation-type product, this allow the user to choose the amount of the donation, `price` therefore defines the minimum donation amount.
description string Full description of the product.
youtube string URL of the video associated with the product.
category object Category the product belongs to (integer or full category object if details are enabled). If not specified, the product will be automatically added to the default category.
featured boolean Indicates whether the product is featured. If not specified will be set to false.
enable_stock integer Enable a system of limited stock for this product. By default if not set, no stock system will be implemented.
stock integer Available stock of the product. `enable_stock` must be set to true first.
enable_trial boolean Indicates whether trial days are enabled.
trial integer Number of trial days available for this product. If not specified no trial period will be set. `enable_trial` must first be set to true.
renewal_start string If trial days are enabled, defines when commands in the "Do this after each renewal payment" event start. Accepted values: `first_payment`, `second_payment`
quantity boolean Indicates whether the customer can select the quantity to purchase. If not specified customers will by default be able to purchase the product multiple times.
cmd_multiplier boolean If quantity is selectable, determines whether commands are multiplied by the chosen quantity. If set to true each command will be executed "quantity" times, by default `cmd_multiplier` is set to false
subscription boolean Indicates whether the product is a subscription. If not specified the product will not be an subscription.
disable_giftcard_payments boolean Indicates whether the product can be purchased with a giftcard. If not specified this option will be set to false by default. If set to true a customer won't be able to purchase this product with a gi
giftcard boolean Indicates whether the product supports gift cards. If not specified the product will not offer any giftcard.
giftcard_expiration boolean Indicates whether the generated gift card will eventually expire.
giftcard_expiration_duration_periodicity string Unit of time for the gift card expiration duration. Possible values: - `day` – duration in days - `week` – duration in weeks - `month` – duration in months - `year` – duration in years Example: If `du
giftcard_expiration_period_num integer Number of `duration_periodicity` units before the giftcard expires. Examples: - Giftcard expires after 3 months - Giftcard expires after 1 year Example: `period_num: 3` → charge every 3 months
custom_fields array Array of custom fields attached to the product.
custom_rules array Array of custom rules applied to the product's custom fields.
subscription_cycle string Determines whether subscriptions are recurring or expire by default. Accepted values: `each`, `expire`
cumul_sub boolean If set to false prevents customers from subscribing to the same product multiple times.
onetime_sub boolean Allows customers to purchase the product for a single billing cycle without subscribing.
duration_periodicity string Unit of time for the subscription duration. Possible values: - `day` – duration in days - `week` – duration in weeks - `month` – duration in months - `year` – duration in years Example: If `duration_p
period_num number Number of `duration_periodicity` units before the subscription expires or the next charge occurs. Examples: - Charge the customer every 3 months - Charge the customer every 1 year Accepted ranges: - 1
purchase_limit object Rules limiting the number of times a customer can purchase the product.
actions object Array of different actions to execute, indexed by it's server ID. By default if not specified no actions will be executed
View JSON Schema on GitHub

JSON Schema

tip4serv-com-update-product-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tip4serv-com/json-schema/tip4serv-com-update-product-schema.json",
  "title": "UpdateProduct",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tip4serv-com-openapi.json#/components/schemas/UpdateProduct",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the product."
    },
    "status": {
      "type": "boolean",
      "description": "Indicates whether the product is enabled. If not specified, the product will be automatically enabled",
      "default": true
    },
    "slug": {
      "type": "string",
      "description": "URL-friendly name of the product. If not specified will be automatically calculated."
    },
    "price": {
      "type": "integer",
      "description": "Current price of the product after any applicable discounts, in the store's currency."
    },
    "recurring_discount": {
      "type": "boolean",
      "description": "Indicates whether the discount is applied on each occurrence of the subscription."
    },
    "donation": {
      "type": "boolean",
      "description": "Indicates if the product is a donation-type product, this allow the user to choose the amount of the donation,  `price` therefore defines the minimum donation amount."
    },
    "description": {
      "type": "string",
      "description": "Full description of the product."
    },
    "youtube": {
      "type": "string",
      "description": "URL of the video associated with the product."
    },
    "category": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "$ref": "#/$defs/Category"
        }
      ],
      "description": "Category the product belongs to (integer or full category object if details are enabled). If not specified, the product will be automatically added to the default category."
    },
    "featured": {
      "type": "boolean",
      "description": "Indicates whether the product is featured. If not specified will be set to false."
    },
    "enable_stock": {
      "type": "integer",
      "description": "Enable a system of limited stock for this product. By default if not set, no stock system will be implemented."
    },
    "stock": {
      "type": "integer",
      "description": "Available stock of the product. `enable_stock` must be set to true first."
    },
    "enable_trial": {
      "type": "boolean",
      "description": "Indicates whether trial days are enabled."
    },
    "trial": {
      "type": "integer",
      "description": "Number of trial days available for this product. If not specified no trial period will be set. `enable_trial` must first be set to true."
    },
    "renewal_start": {
      "type": "string",
      "description": "If trial days are enabled, defines when commands in the \"Do this after each renewal payment\" event start.\n\nAccepted values:  \n`first_payment`, `second_payment`\n"
    },
    "quantity": {
      "type": "boolean",
      "description": "Indicates whether the customer can select the quantity to purchase. If not specified customers will by default be able to purchase the product multiple times."
    },
    "cmd_multiplier": {
      "type": "boolean",
      "description": "If quantity is selectable, determines whether commands are multiplied by the chosen quantity. If set to true each command will be executed \"quantity\" times, by default `cmd_multiplier` is set to false."
    },
    "subscription": {
      "type": "boolean",
      "description": "Indicates whether the product is a subscription. If not specified the product will not be an subscription."
    },
    "disable_giftcard_payments": {
      "type": "boolean",
      "description": "Indicates whether the product can be purchased with a giftcard. If not specified this option will be set to false by default. If set to true a customer won't be able to purchase this product with a giftcard.\n"
    },
    "giftcard": {
      "type": "boolean",
      "description": "Indicates whether the product supports gift cards. If not specified the product will not offer any giftcard."
    },
    "giftcard_expiration": {
      "type": "boolean",
      "description": "Indicates whether the generated gift card will eventually expire."
    },
    "giftcard_expiration_duration_periodicity": {
      "type": "string",
      "description": "Unit of time for the gift card expiration duration.\n\nPossible values:  \n- `day` – duration in days   - `week` – duration in weeks   - `month` – duration in months   - `year` – duration in years\n\nExample: If `duration_periodicity = month` and `period_num = 3`, the giftcard will expire 3 months after the purchase.\n"
    },
    "giftcard_expiration_period_num": {
      "type": "integer",
      "description": "Number of `duration_periodicity` units before the giftcard expires.\nExamples:  \n- Giftcard expires after 3 months  \n- Giftcard expires after 1 year\nExample: `period_num: 3` → charge every 3 months\n"
    },
    "custom_fields": {
      "type": "array",
      "description": "Array of custom fields attached to the product.",
      "items": {
        "$ref": "#/$defs/CreateCustomField"
      }
    },
    "custom_rules": {
      "type": "array",
      "description": "Array of custom rules applied to the product's custom fields.",
      "items": {
        "$ref": "#/$defs/CreateCustomRule"
      }
    },
    "subscription_cycle": {
      "type": "string",
      "description": "Determines whether subscriptions are recurring or expire by default. Accepted values:   `each`, `expire`"
    },
    "cumul_sub": {
      "type": "boolean",
      "description": "If set to false prevents customers from subscribing to the same product multiple times."
    },
    "onetime_sub": {
      "type": "boolean",
      "description": "Allows customers to purchase the product for a single billing cycle without subscribing."
    },
    "duration_periodicity": {
      "type": "string",
      "description": "Unit of time for the subscription duration.\n\nPossible values:  \n- `day` – duration in days  \n- `week` – duration in weeks  \n- `month` – duration in months  \n- `year` – duration in years\n\nExample: If `duration_periodicity = month` and `period_num = 3`, the subscription lasts 3 months.\n"
    },
    "period_num": {
      "type": "number",
      "description": "Number of `duration_periodicity` units before the subscription expires or the next charge occurs.\n\nExamples:  \n- Charge the customer every 3 months  \n- Charge the customer every 1 year\n\nAccepted ranges:  \n- 1–99 for days  \n- 1–52 for weeks  \n- 1–12 for months  \n- 1–1 for years\n\nExample: `period_num: 3` → charge every 3 months\n"
    },
    "purchase_limit": {
      "$ref": "#/$defs/PurchaseLimit",
      "description": "Rules limiting the number of times a customer can purchase the product."
    },
    "actions": {
      "type": "object",
      "description": "Array of different actions to execute, indexed by it's server ID. By default if not specified no actions will be executed",
      "additionalProperties": {
        "$ref": "#/$defs/Action"
      }
    }
  },
  "$defs": {
    "Action": {
      "type": "object",
      "description": "Each server ID maps to event arrays. Game servers use `{str, event}`. Discord servers support `{channel, message}`, `{give_role: role_id}` on payment, and `{del_role: role_id}` on refund or expiry. Role actions are not supported for renewal.",
      "properties": {
        "payment_role_required": {
          "type": "array",
          "description": "Discord role IDs a customer must already have to purchase this product.",
          "items": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          }
        },
        "payment_command": {
          "type": "array",
          "description": "Actions executed after payment; Discord actions may send messages or add roles.",
          "items": {
            "allOf": [
              {
                "$ref": "#/$defs/SimpleServerCommand"
              },
              {
                "not": {
                  "required": [
                    "del_role"
                  ]
                }
              }
            ]
          }
        },
        "refund_command": {
          "type": "array",
          "description": "Actions executed after a refund; Discord actions may send messages or remove roles.",
          "items": {
            "allOf": [
              {
                "$ref": "#/$defs/SimpleServerCommand"
              },
              {
                "not": {
                  "required": [
                    "give_role"
                  ]
                }
              }
            ]
          }
        },
        "renewal_command": {
          "type": "array",
          "description": "Actions executed after subscription renewal; Discord role actions are not supported.",
          "items": {
            "allOf": [
              {
                "$ref": "#/$defs/SimpleServerCommand"
              },
              {
                "not": {
                  "anyOf": [
                    {
                      "required": [
                        "give_role"
                      ]
                    },
                    {
                      "required": [
                        "del_role"
                      ]
                    }
                  ]
                }
              }
            ]
          }
        },
        "expire_command": {
          "type": "array",
          "description": "Actions executed when a subscription expires; Discord actions may send messages or remove roles.",
          "items": {
            "allOf": [
              {
                "$ref": "#/$defs/SimpleServerCommand"
              },
              {
                "not": {
                  "required": [
                    "give_role"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    "Category": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "description": "Unique identifier of the category."
        },
        "name": {
          "type": "string",
          "description": "Name of the category."
        },
        "description": {
          "type": "string",
          "description": "Description of the category."
        },
        "slug": {
          "type": "string",
          "description": "URL-friendly name of the category."
        },
        "hide": {
          "type": "boolean",
          "description": "Determines if the category is hidden."
        },
        "main_redirect": {
          "type": "boolean",
          "description": "Redirect to home page if category is accessed."
        },
        "parent_id": {
          "type": "integer",
          "format": "int64",
          "description": "Parent category ID if this is a sub-category."
        }
      },
      "required": [
        "id",
        "name",
        "slug",
        "hide",
        "main_redirect"
      ]
    },
    "CreateCustomField": {
      "type": "object",
      "properties": {
        "order": {
          "type": "integer",
          "format": "int64",
          "description": "Priority order of the custom field. If no order is provided, this custom field will have the smallest priority."
        },
        "name": {
          "type": "string",
          "description": "Name of the custom field."
        },
        "type": {
          "type": "string",
          "description": "Type of custom field. Accepted values: `text`, `checkbox`, `number`, `selection`\n"
        },
        "marker": {
          "type": "string",
          "description": "Placeholder marker used in commands."
        },
        "if_not_filled": {
          "type": "string",
          "description": "Behavior if field is left empty. Accepted values: `do_not_execute`, `remove_marker`, `use_default`"
        },
        "default_value": {
          "type": "string",
          "description": "Default value used if `if_not_filled` is set to `use_default`."
        },
        "required": {
          "type": "boolean",
          "description": "Indicates if the custom field is mandatory."
        },
        "minimum": {
          "type": "integer",
          "description": "Minimum value if field type is `number`."
        },
        "maximum": {
          "type": "integer",
          "description": "Maximum value if field type is `number`."
        },
        "step": {
          "type": "integer",
          "description": "Increment step if field type is `number`."
        },
        "number_type": {
          "type": "string",
          "description": "Specifies number input type. Accepted values: `number`, `range`"
        },
        "price": {
          "type": "integer",
          "description": "Additional price added to product if field is selected."
        },
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CreateCustomFieldOption"
          },
          "description": "Options available if field type is `selection`."
        }
      },
      "required": [
        "name",
        "type",
        "required"
      ]
    },
    "CreateCustomFieldOption": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the option."
        },
        "value": {
          "type": "integer",
          "description": "Value corresponding to the option."
        },
        "price": {
          "type": "integer",
          "description": "Price adjustment if option is selected."
        }
      },
      "required": [
        "name",
        "value",
        "price"
      ]
    },
    "CreateCustomRule": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the custom rule."
        },
        "type": {
          "type": "string",
          "description": "Type of custom rule. Accepted values: `number_limit`"
        },
        "min": {
          "type": "integer",
          "format": "int64",
          "description": "Minimum value if the rule type is `number_limit`."
        },
        "max": {
          "type": "integer",
          "format": "int64",
          "description": "Maximum value if the rule type is `number_limit`."
        },
        "fields": {
          "type": "array",
          "description": "IDs of custom fields affected by this rule.",
          "items": {
            "type": "number",
            "format": "int64"
          }
        }
      },
      "required": [
        "name",
        "type"
      ]
    },
    "PurchaseLimit": {
      "type": "object",
      "properties": {
        "purchase_times": {
          "type": "integer",
          "description": "Maximum number of times the product can be purchased."
        },
        "type": {
          "type": "string",
          "description": "Defines when the purchase limit applies.\n\nAccepted values:  \n- `every` → limit purchases to a recurring time period  \n- `only` → limit purchases permanently\n"
        },
        "cycle": {
          "type": "integer",
          "description": "Number of time units before the purchase limit resets.\n\nExample:  \n- Limit purchases to 1 time every 1 month  \n- Limit purchases to 1 time every 3 months\n\nAccepted ranges: 1–99 for days, 1–52 for weeks, 1–12 for months, 1–1 for years\n"
        },
        "periodicity": {
          "type": "string",
          "description": "Unit of time used to define the purchase limit.\n\nAccepted values: `day`, `week`, `month`, `year`\n"
        }
      },
      "required": [
        "purchase_times",
        "type",
        "cycle",
        "periodicity"
      ]
    },
    "SimpleServerCommand": {
      "type": "object",
      "description": "A game-server command or one Discord action. Discord messages require `channel` and `message`; `private_message` sends a DM. Role actions are restricted to payment, refund, and expiry events.",
      "properties": {
        "str": {
          "type": "string",
          "description": "Content of the command to be executed"
        },
        "event": {
          "type": "string",
          "description": "Event triggering the execution of the command. Can take the following values: `Execute`, `Must be online`",
          "enum": [
            "Execute",
            "Must be online",
            "Disabled"
          ]
        },
        "channel": {
          "type": "string",
          "description": "Discord channel ID, or `private_message` to DM the purchaser.",
          "pattern": "^(?:[1-9][0-9]*|private_message)$"
        },
        "message": {
          "type": "string",
          "maxLength": 2000,
          "description": "Discord message text. Provide this together with `channel`."
        },
        "give_role": {
          "type": "string",
          "description": "Discord role ID to add after payment.",
          "pattern": "^[1-9][0-9]*$"
        },
        "del_role": {
          "type": "string",
          "description": "Discord role ID to remove after refund or expiry.",
          "pattern": "^[1-9][0-9]*$"
        }
      },
      "oneOf": [
        {
          "required": [
            "str"
          ]
        },
        {
          "required": [
            "channel",
            "message"
          ]
        },
        {
          "required": [
            "give_role"
          ]
        },
        {
          "required": [
            "del_role"
          ]
        }
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/tip4serv-com-update-product"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.