Commencer maintenant
Loyverse Tools

Loyverse Create Or Update Discount

Utilisez Loyverse Create Or Update Discount avec Loyverse 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

Creates a single discount with a FIXED_PERCENT, FIXED_AMOUNT, or VARIABLE type.

Tarifs et limites

Tarif
Action gratuite
Paiement unifié
Non pris en charge actuellement

Entrées

  • namestring
    Obligatoire
    The discount name.
  • typestring
    Obligatoire
    Discount type. FIXED_PERCENT for percentage-based discounts, FIXED_AMOUNT for fixed amount discounts, or VARIABLE for variable discounts.
  • storesarray
    Array of store IDs where discount is applicable. If not provided, discount applies to all stores.
  • discount_amountnumber
    Fixed discount amount (required for FIXED_AMOUNT type). Value should be a positive number.
  • discount_percentnumber
    Discount percentage (required for FIXED_PERCENT type). Value should be between 0 and 100.
  • restricted_accessboolean
    Whether discount has restricted access (requires password verification to apply).

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