立即开始
Payhip Tools

Payhip Create Coupon

通过 Aident Loadout 使用 Payhip Tools 的 Payhip Create Coupon。执行前查看输入、输出、设置、价格和风险。

写入操作风险等级 2/5API 密钥连接

服务提供商说明

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.

价格与限制

价格
免费操作
统一支付
暂不支持

输入

  • codestring
    必填
    The coupon code the customer is required to enter at checkout
  • notesstring
    For administrative purposes you can remind yourself why you created this coupon by adding a note - not visible to customers
  • amount_offinteger
    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.
  • coupon_typestring
    必填
    Specifies if the coupon will be applied for a single product, all your products or a single collection
  • percent_offnumber
    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.
  • product_keystring
    The unique product key. Required if coupon_type is set to 'single'
  • usage_limitinteger
    The maximum number of times this coupon can be redeemed before it becomes invalid
  • collection_idstring
    The unique collection ID. Required if coupon_type is set to 'collection'

可观察输出

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

使用此操作的技能

相关使用场景

尚未关联经过验证的相关使用场景。

官方来源

服务提供商来源