Payhip Tools
Payhip Create Coupon
Utilisez Payhip Create Coupon avec Payhip 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 coupon for discounts in Payhip. Use when you need to create a new coupon code with either percentage or fixed amount discounts. Coupons can apply to single products, all products, or collections.
Tarifs et limites
- Tarif
- Action gratuite
- Paiement unifié
- Non pris en charge actuellement
Entrées
- The coupon code the customer is required to enter at checkoutcodestringObligatoire
- For administrative purposes you can remind yourself why you created this coupon by adding a note - not visible to customersnotesstring
- A positive integer representing the amount to subtract from the cart total in cents. For example $5 off would be 500. Required if percent_off is not provided. Cannot be used together with percent_off.amount_offinteger
- Specifies if the coupon will be applied for a single product, all your products or a single collectioncoupon_typestringObligatoire
- A positive float larger than 0, and smaller or equal to 100, that represents the discount percentage the coupon will apply. Required if amount_off is not provided. Cannot be used together with amount_off.percent_offnumber
- The unique product key. Required if coupon_type is set to 'single'product_keystring
- The maximum number of times this coupon can be redeemed before it becomes invalidusage_limitinteger
- The unique collection ID. Required if coupon_type is set to 'collection'collection_idstring
Sortie observable
- Data from the action executiondataObligatoire
- Error if any occurred during the execution of the actionerrorstring
- Whether or not the action execution was successful or notsuccessfulbooleanObligatoire
Skills qui utilisent cette Action
Cas d’usage associés
Aucun cas d’usage associé et vérifié pour le moment.