Commencer maintenant
Givebutter Tools

Givebutter Create Discount Code

Utilisez Givebutter Create Discount Code avec Givebutter Tools via Aident Loadout. Vérifiez les entrées, sorties, la configuration, le tarif et le risque avant exécution.

Action d'écritureNiveau de risque 2 sur 5Connexion par clé API

Description du fournisseur

Tool to create a discount code for a campaign. Use when you need to provide promotional pricing or discounts for campaign items.

Tarifs et limites

Tarif
Action gratuite
Paiement unifié
Non pris en charge actuellement

Entrées

  • codestring
    Obligatoire
    The discount code string that users will enter. Must be unique within the campaign and no more than 255 characters.
  • typestring
    Obligatoire
    Type of discount: 'percentage' for a percentage-based discount (e.g., 10% off), or 'fixed' for a fixed amount discount (e.g., $10 off).
  • usesinteger
    Maximum number of times the discount code can be used. If not provided, there is no usage limit.
  • itemsarray
    List of item IDs that the discount code applies to. If not provided, the code applies to all items in the campaign.
  • activeboolean
    Obligatoire
    Whether the discount code is active and can be used immediately.
  • amountnumber
    Obligatoire
    Discount amount. For 'percentage' type, this is the percentage (e.g., 10 for 10% off). For 'fixed' type, this is the amount in cents (e.g., 1000 for $10.00 off).
  • campaigninteger
    Obligatoire
    The campaign ID to create the discount code for.
  • starts_atstring
    UTC datetime string when the discount code becomes active (ISO-8601 format). If not provided, the code is active immediately.
  • expires_atstring
    UTC datetime string when the discount code expires (ISO-8601 format). If not provided, the code will not expire.

Sortie observable

  • data
    Obligatoire
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    Obligatoire
    Whether or not the action execution was successful or not

Skills qui utilisent cette Action

Cas d’usage associés

Aucun cas d’usage associé et vérifié pour le moment.

Source officielle

Source du fournisseur