今すぐ始める
Payhip Tools

Payhip Create Coupon

Aident Loadout を通じて Payhip Tools の Payhip Create Coupon を使用します。実行前に入力、出力、設定、料金、リスクを確認できます。

書き込み Actionリスクレベル 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.

料金と制限

料金
無料 Action
統合支払い
現在未対応

入力

  • 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

この Action を使用する Skills

関連ユースケース

検証済みの関連ユースケースはまだリンクされていません。

公式ソース

プロバイダーのソース