Payhip
App · 8 actions
Manage store coupons and verify or update software license keys.
Actions
| Action | What it does |
|---|---|
| Create a coupon | Create a coupon. |
| Decrease license usage | Decrease license usage. |
| Disable a license key | Disable a license key. |
| Enable a license key | Enable a license key. |
| Get a coupon | Get a coupon. |
| Increase license usage | Increase license usage. |
| List coupons | List coupons. |
| Verify a license key | Verify a license key. |
Create a coupon
Create a coupon.
Inputs
- Code
codetextRequired - Code.
- Coupon type
coupon_typetextRequired - Coupon type.One of:
single,multi,collection. - Percent off
percent_offnumber - Percent off.At most 100.
- Amount off
amount_offnumber - Discount in cents.At least 1.
- Product key
product_keytext - Product key.
- Collection ID
collection_idtext - Collection id.
- Usage limit
usage_limitnumber - Usage limit.At least 1.
- Notes
notestext - 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 key
license_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 key
license_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 key
license_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 ID
coupon_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 key
license_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
- Offset
offsetnumber - Offset.At least 0.
- Limit
limitnumber - 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 key
license_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"
}
}
}