Payhip

App · 8 actions

Manage store coupons and verify or update software license keys.

Actions

ActionWhat it does
Create a couponCreate a coupon.
Decrease license usageDecrease license usage.
Disable a license keyDisable a license key.
Enable a license keyEnable a license key.
Get a couponGet a coupon.
Increase license usageIncrease license usage.
List couponsList coupons.
Verify a license keyVerify a license key.

Create a coupon

Create a coupon.

Inputs

CodecodetextRequired
Code.
Coupon typecoupon_typetextRequired
Coupon type.One of: single, multi, collection.
Percent offpercent_offnumber
Percent off.At most 100.
Amount offamount_offnumber
Discount in cents.At least 1.
Product keyproduct_keytext
Product key.
Collection IDcollection_idtext
Collection id.
Usage limitusage_limitnumber
Usage limit.At least 1.
Notesnotestext
Notes.

Outputs

dataobject
The response from Payhip.
Example output
{
  "data": {
    "data": {
      "amount_off": 1,
      "code": "example",
      "collection_id": "example",
      "coupon_type": "example",
      "end_date": "example",
      "id": 1,
      "notes": "example",
      "percent_off": 1.0,
      "product_key": "example",
      "start_date": "example",
      "usage_limit": 1
    }
  }
}

Decrease license usage

Decrease license usage.

Inputs

License keylicense_keytextRequired
License key.

Outputs

dataobject
The response from Payhip.
Example output
{
  "data": {
    "data": {
      "buyer_email": "example",
      "date": "example",
      "enabled": false,
      "license_key": "example",
      "product_link": "example",
      "product_name": "example",
      "uses": 1,
      "variant_id": "example",
      "variant_name": "example"
    }
  }
}

Disable a license key

Disable a license key.

Inputs

License keylicense_keytextRequired
License key.

Outputs

dataobject
The response from Payhip.
Example output
{
  "data": {
    "data": {
      "buyer_email": "example",
      "date": "example",
      "enabled": false,
      "license_key": "example",
      "product_link": "example",
      "product_name": "example",
      "uses": 1,
      "variant_id": "example",
      "variant_name": "example"
    }
  }
}

Enable a license key

Enable a license key.

Inputs

License keylicense_keytextRequired
License key.

Outputs

dataobject
The response from Payhip.
Example output
{
  "data": {
    "data": {
      "buyer_email": "example",
      "date": "example",
      "enabled": false,
      "license_key": "example",
      "product_link": "example",
      "product_name": "example",
      "uses": 1,
      "variant_id": "example",
      "variant_name": "example"
    }
  }
}

Get a coupon

Get a coupon.

Inputs

Coupon IDcoupon_idnumberRequired
Coupon id.

Outputs

dataobject
The response from Payhip.
Example output
{
  "data": {
    "data": {
      "amount_off": 1,
      "code": "example",
      "collection_id": "example",
      "coupon_type": "example",
      "end_date": "example",
      "id": 1,
      "notes": "example",
      "percent_off": 1.0,
      "product_key": "example",
      "start_date": "example",
      "usage_limit": 1
    }
  }
}

Increase license usage

Increase license usage.

Inputs

License keylicense_keytextRequired
License key.

Outputs

dataobject
The response from Payhip.
Example output
{
  "data": {
    "data": {
      "buyer_email": "example",
      "date": "example",
      "enabled": false,
      "license_key": "example",
      "product_link": "example",
      "product_name": "example",
      "uses": 1,
      "variant_id": "example",
      "variant_name": "example"
    }
  }
}

List coupons

List coupons.

Inputs

Offsetoffsetnumber
Offset.At least 0.
Limitlimitnumber
Limit.From 1 to 100.

Outputs

dataobject
The response from Payhip.
Example output
{
  "data": {
    "data": {
      "coupons": []
    }
  }
}

Verify a license key

Verify a license key.

Inputs

License keylicense_keytextRequired
License key.

Outputs

dataobject
The response from Payhip.
Example output
{
  "data": {
    "data": {
      "buyer_email": "example",
      "date": "example",
      "enabled": false,
      "license_key": "example",
      "product_link": "example",
      "product_name": "example",
      "uses": 1,
      "variant_id": "example",
      "variant_name": "example"
    }
  }
}

On this page